app-admin/sudo: Fixed permissions of /var/db/sudo

Closes: https://bugs.gentoo.org/652958
Package-Manager: Portage-2.3.28, Repoman-2.3.9
This commit is contained in:
Lars Wendler
2018-04-11 13:01:47 +02:00
parent 166fbf0ad2
commit 1356682e69
3 changed files with 12 additions and 9 deletions

View File

@@ -169,12 +169,13 @@ src_install() {
pamd_mimic system-auth sudo auth account session
keepdir /var/db/sudo
fperms 0700 /var/db/sudo
keepdir /var/db/sudo/lectured
fperms 0700 /var/db/sudo/lectured
fperms 0711 /var/db/sudo #652958
# Don't install into /var/run as that is a tmpfs most of the time
# (bug #504854)
rm -rf "${D}"/var/run
rm -rf "${ED}"/var/run
}
pkg_postinst() {

View File

@@ -169,12 +169,13 @@ src_install() {
pamd_mimic system-auth sudo auth account session
keepdir /var/db/sudo
fperms 0700 /var/db/sudo
keepdir /var/db/sudo/lectured
fperms 0700 /var/db/sudo/lectured
fperms 0711 /var/db/sudo #652958
# Don't install into /var/run as that is a tmpfs most of the time
# (bug #504854)
rm -rf "${D}"/var/run
rm -rf "${ED}"/var/run
}
pkg_postinst() {

View File

@@ -175,12 +175,13 @@ src_install() {
pamd_mimic system-auth sudo auth account session
keepdir /var/db/sudo
fperms 0700 /var/db/sudo
keepdir /var/db/sudo/lectured
fperms 0700 /var/db/sudo/lectured
fperms 0711 /var/db/sudo #652958
# Don't install into /var/run as that is a tmpfs most of the time
# (bug #504854)
rm -rf "${D}"/var/run
rm -rf "${ED}"/var/run
}
pkg_postinst() {