diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-03-29 18:59:51 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-29 19:38:56 +0200 |
commit | 754f87875ffe4a312c7be33d1a211c35a89f9ed9 (patch) | |
tree | 3230709b2ae3b2bb20c856e0cdb69c689d63ad8e /Userland/Services | |
parent | b88de8a91fec2fc6115aec7829e0a0dac964a456 (diff) | |
download | serenity-754f87875ffe4a312c7be33d1a211c35a89f9ed9.zip |
SystemServer: chown all available TTY devices to the tty group
Since we have 6 TTYs available 2 of the 6 were not being chowned and as
such they were not available to the tty group.
Diffstat (limited to 'Userland/Services')
-rw-r--r-- | Userland/Services/SystemServer/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Services/SystemServer/main.cpp b/Userland/Services/SystemServer/main.cpp index b7da5d2965..52e46b1114 100644 --- a/Userland/Services/SystemServer/main.cpp +++ b/Userland/Services/SystemServer/main.cpp @@ -125,11 +125,13 @@ static void prepare_devfs() // FIXME: Find a better way to chown without hardcoding the gid! chown_wrapper("/dev/mouse", 0, 3); - for (size_t index = 0; index < 4; index++) { + // FIXME: Count TTYs instead of using a hardcoded amount + for (size_t index = 0; index < 6; index++) { // FIXME: Find a better way to chown without hardcoding the gid! chown_wrapper(String::formatted("/dev/tty{}", index).characters(), 0, 2); } + // FIXME: Count serial TTYs instead of using a hardcoded amount for (size_t index = 0; index < 4; index++) { // FIXME: Find a better way to chown without hardcoding the gid! chown_wrapper(String::formatted("/dev/ttyS{}", index).characters(), 0, 2); |