[oe-commits] [openembedded-core] 05/06: shadow: update ownership and permission of /var/spool/mail

git at git.openembedded.org git at git.openembedded.org
Wed Oct 10 12:27:23 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch rocko
in repository openembedded-core.

commit 1af360c925a044fa4fa093cd109f3f2a5cbe7944
Author: Kai Kang <kai.kang at windriver.com>
AuthorDate: Fri May 25 10:48:23 2018 +0800

    shadow: update ownership and permission of /var/spool/mail
    
    Update shadow to change ownership of /var/spool/mail from root:root to
    root:mail and permission from 0755 to 0775 just as in most popular
    distributions such as fedora and debian(It also set setgid bit in debian
    but we don't need it).
    
    (From OE-Core rev: b3ab5fe359c38cdd5cd86cb8ffe076d7a2baac18)
    
    (From OE-Core rev: a77eff19be1d5812999bf584364000440f218fbb)
    
    Signed-off-by: Kai Kang <kai.kang at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
    Signed-off-by: Armin Kuster <akuster808 at gmail.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
    Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
 meta/recipes-extended/shadow/shadow.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc
index d7fbca7..18eba72 100644
--- a/meta/recipes-extended/shadow/shadow.inc
+++ b/meta/recipes-extended/shadow/shadow.inc
@@ -132,7 +132,8 @@ do_install_append() {
 	# Ensure that the image has as a /var/spool/mail dir so shadow can
 	# put mailboxes there if the user reconfigures shadow to its
 	# defaults (see sed below).
-	install -d ${D}${localstatedir}/spool/mail
+	install -m 0775 -d ${D}${localstatedir}/spool/mail
+	chown root:mail ${D}${localstatedir}/spool/mail
 
 	if [ -e ${WORKDIR}/pam.d ]; then
 		install -d ${D}${sysconfdir}/pam.d/

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list