mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:17:44 +00:00
keymap: Add back a tiny utility for setting the system keyboard layout
This patch removes the setuid-root flag from the KeyboardSettings GUI application and adds back the old "keymap" program. It doesn't feel very safe and sound to have a GUI program runnable as setuid-root, so in the next patch I'll be making KeyboardSettings call out to the "keymap" program to do its bidding.
This commit is contained in:
parent
0609eefd57
commit
6e78279614
4 changed files with 40 additions and 20 deletions
|
@ -37,7 +37,7 @@ chown $window_uid:$window_gid mnt/etc/WindowServer/WindowServer.ini
|
|||
echo "/bin/sh" > mnt/etc/shells
|
||||
|
||||
chown 0:$wheel_gid mnt/bin/su
|
||||
chown 0:$wheel_gid mnt/bin/KeyboardSettings
|
||||
chown 0:$phys_gid mnt/bin/keymap
|
||||
chown 0:$phys_gid mnt/bin/shutdown
|
||||
chown 0:$phys_gid mnt/bin/reboot
|
||||
chown 0:0 mnt/boot/Kernel
|
||||
|
@ -48,7 +48,7 @@ chmod 4750 mnt/bin/su
|
|||
chmod 4755 mnt/bin/ping
|
||||
chmod 4750 mnt/bin/reboot
|
||||
chmod 4750 mnt/bin/shutdown
|
||||
chmod 4750 mnt/bin/KeyboardSettings
|
||||
chmod 4750 mnt/bin/keymap
|
||||
|
||||
echo "done"
|
||||
|
||||
|
@ -161,7 +161,6 @@ ln -s Debugger mnt/bin/sdb
|
|||
ln -s SystemMonitor mnt/bin/sm
|
||||
ln -s ProfileViewer mnt/bin/pv
|
||||
ln -s WebServer mnt/bin/ws
|
||||
ln -s KeyboardSettings mnt/bin/keymap
|
||||
ln -s Solitaire mnt/bin/sl
|
||||
ln -s WebView mnt/bin/wv
|
||||
echo "done"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue