mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
Base: Only allow members of the "wheel" group to use /bin/su
This commit is contained in:
parent
d4b4883d55
commit
69af59d061
Notes:
sideshowbarker
2024-07-19 10:22:35 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/69af59d0614
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
wheel_gid=1
|
||||||
tty_gid=2
|
tty_gid=2
|
||||||
phys_gid=3
|
phys_gid=3
|
||||||
audio_gid=4
|
audio_gid=4
|
||||||
@ -99,7 +100,8 @@ elif [ "$(uname -s)" = "OpenBSD" ]; then
|
|||||||
else
|
else
|
||||||
find ../Userland/ -type f -executable -exec cp {} mnt/bin/ \;
|
find ../Userland/ -type f -executable -exec cp {} mnt/bin/ \;
|
||||||
fi
|
fi
|
||||||
chmod 4755 mnt/bin/su
|
chown 0:$wheel_gid mnt/bin/su
|
||||||
|
chmod 4750 mnt/bin/su
|
||||||
chmod 4755 mnt/bin/ping
|
chmod 4755 mnt/bin/ping
|
||||||
echo "done"
|
echo "done"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user