commit:     1356682e697263cf3cbf3f252365a5aaac55350a
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 11 11:01:47 2018 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Wed Apr 11 11:02:19 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1356682e

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

 app-admin/sudo/{sudo-1.8.22.ebuild => sudo-1.8.22-r1.ebuild} | 7 ++++---
 app-admin/sudo/sudo-1.8.23_beta2.ebuild                      | 7 ++++---
 app-admin/sudo/sudo-9999.ebuild                              | 7 ++++---
 3 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/app-admin/sudo/sudo-1.8.22.ebuild 
b/app-admin/sudo/sudo-1.8.22-r1.ebuild
similarity index 97%
rename from app-admin/sudo/sudo-1.8.22.ebuild
rename to app-admin/sudo/sudo-1.8.22-r1.ebuild
index b9b8ff18c94..c10b8c22211 100644
--- a/app-admin/sudo/sudo-1.8.22.ebuild
+++ b/app-admin/sudo/sudo-1.8.22-r1.ebuild
@@ -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() {

diff --git a/app-admin/sudo/sudo-1.8.23_beta2.ebuild 
b/app-admin/sudo/sudo-1.8.23_beta2.ebuild
index 81a7dffe121..eaac5af0379 100644
--- a/app-admin/sudo/sudo-1.8.23_beta2.ebuild
+++ b/app-admin/sudo/sudo-1.8.23_beta2.ebuild
@@ -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() {

diff --git a/app-admin/sudo/sudo-9999.ebuild b/app-admin/sudo/sudo-9999.ebuild
index 8897a711558..82d9551bad8 100644
--- a/app-admin/sudo/sudo-9999.ebuild
+++ b/app-admin/sudo/sudo-9999.ebuild
@@ -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() {

Reply via email to