summaryrefslogtreecommitdiff
path: root/Kernel/build-root-filesystem.sh
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-12-31 01:42:34 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-12-31 01:42:34 +0100
commit3f254bfbc8efa77dbad6952da12a45b0e4783a18 (patch)
tree1bd170a7da0a85b96e423581c346e1dff3fa78b8 /Kernel/build-root-filesystem.sh
parent5c918d0e71f6199201a7a9f02d4bf3bee384072d (diff)
downloadserenity-3f254bfbc8efa77dbad6952da12a45b0e4783a18.zip
Kernel+ping: Only allow superuser to create SOCK_RAW sockets
/bin/ping is now setuid-root, and will drop privileges immediately after opening a raw socket.
Diffstat (limited to 'Kernel/build-root-filesystem.sh')
-rwxr-xr-xKernel/build-root-filesystem.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/build-root-filesystem.sh b/Kernel/build-root-filesystem.sh
index a4f561fa1e..428bae1d1d 100755
--- a/Kernel/build-root-filesystem.sh
+++ b/Kernel/build-root-filesystem.sh
@@ -82,6 +82,7 @@ else
find ../Userland/ -type f -perm +111 -exec cp {} mnt/bin/ \;
fi
chmod 4755 mnt/bin/su
+chmod 4755 mnt/bin/ping
echo "done"
printf "installing applications... "