void-packages/srcpkgs/sudo/INSTALL
Érico Rolim 0e05ee88cb sudo: update to 1.9.5p1, set permissions during do_install.
- 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.
2021-01-17 15:58:02 -03:00

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