mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-06 11:09:05 +03:00
SystemServer: Create a /dev/full device using numbers 1, 7
Previously, the device wasn't being created. The new numbers correspond to those in the FullDevice (which is also a Linux's full device number). Also, I've tweaked the permissions to give everyone read-write access to it.
This commit is contained in:
parent
ee66ed6248
commit
f9940390a3
Notes:
sideshowbarker
2024-07-17 10:43:01 +09:00
Author: https://github.com/krkk Commit: https://github.com/SerenityOS/serenity/commit/f9940390a3 Pull-request: https://github.com/SerenityOS/serenity/pull/14087
@ -221,15 +221,6 @@ static void populate_devtmpfs_devices_based_on_devctl()
|
||||
create_devtmpfs_block_device(String::formatted("/dev/fb{}", minor_number), 0666, 29, minor_number);
|
||||
break;
|
||||
}
|
||||
|
||||
switch (minor_number) {
|
||||
case 0: {
|
||||
create_devtmpfs_char_device("/dev/full", 0660, 29, 0);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
warnln("Unknown character device {}:{}", major_number, minor_number);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 229: {
|
||||
@ -283,6 +274,10 @@ static void populate_devtmpfs_devices_based_on_devctl()
|
||||
create_devtmpfs_char_device("/dev/null", 0666, 1, 3);
|
||||
break;
|
||||
}
|
||||
case 7: {
|
||||
create_devtmpfs_char_device("/dev/full", 0666, 1, 7);
|
||||
break;
|
||||
}
|
||||
case 8: {
|
||||
create_devtmpfs_char_device("/dev/random", 0666, 1, 8);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user