0e05ee88cb
- fixes a bunch of CVEs. - the chmod 4111 in INSTALL changed sudo from 4755 to 4111. It was always suid, it just stopped being world readable for some reason (with a window of time where it could still be read, since INSTALL isn't run immediately after unpacking). Furthermore, chmod'ing sudoedit doesn't change anything in the final package, since it's a symlink to sudo. - clean up outdated patches.
13 lines
306 B
Text
13 lines
306 B
Text
#
|
|
# This script sets up correct perms for /etc/sudoers.
|
|
#
|
|
case "${ACTION}" in
|
|
post)
|
|
if [ -f etc/sudoers ]; then
|
|
echo "Setting up permissions to /etc/sudoers..."
|
|
chmod 0440 etc/sudoers
|
|
fi
|
|
[ ! -d etc/sudoers.d ] && install -d etc/sudoers.d
|
|
[ ! -d var/db/sudo ] && install -dm750 var/db/sudo
|
|
;;
|
|
esac
|