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:
Karol Kosek 2022-04-29 17:35:15 +02:00 committed by Andreas Kling
parent ee66ed6248
commit f9940390a3
Notes: sideshowbarker 2024-07-17 10:43:01 +09:00

View File

@ -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;