mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00: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
1 changed files with 4 additions and 9 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue