summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2018-05-25 10:48:23 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-02 11:41:24 +0100
commitcc5e38f39f091e1b10d0d084c1d605c904ff80fd (patch)
tree868bd47a0ad1186fcbe5b49abe6f80f6c210abff
parent9e7dd7fdd3a6eac8e67ca43f67cffd068983b139 (diff)
downloadpoky-cc5e38f39f091e1b10d0d084c1d605c904ff80fd.tar.gz
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@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-extended/shadow/shadow.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc
index 673207fc9b..ca1facf232 100644
--- a/meta/recipes-extended/shadow/shadow.inc
+++ b/meta/recipes-extended/shadow/shadow.inc
@@ -127,7 +127,8 @@ do_install_append() {
127 # Ensure that the image has as a /var/spool/mail dir so shadow can 127 # Ensure that the image has as a /var/spool/mail dir so shadow can
128 # put mailboxes there if the user reconfigures shadow to its 128 # put mailboxes there if the user reconfigures shadow to its
129 # defaults (see sed below). 129 # defaults (see sed below).
130 install -d ${D}${localstatedir}/spool/mail 130 install -m 0775 -d ${D}${localstatedir}/spool/mail
131 chown root:mail ${D}${localstatedir}/spool/mail
131 132
132 if [ -e ${WORKDIR}/pam.d ]; then 133 if [ -e ${WORKDIR}/pam.d ]; then
133 install -d ${D}${sysconfdir}/pam.d/ 134 install -d ${D}${sysconfdir}/pam.d/