summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2018-05-25 02:48:23 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-10-10 12:27:02 (GMT)
commitfbe29a7e5f668fb3076e0647a56c8f4c845c55c9 (patch)
treeb93cab874854f204e9a6656eded5bde8d645ea6c
parent9833879d81547b6558c079cc2e71951452e70655 (diff)
downloadpoky-fbe29a7e5f668fb3076e0647a56c8f4c845c55c9.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) (From OE-Core rev: 1af360c925a044fa4fa093cd109f3f2a5cbe7944) 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> 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 d7fbca7..18eba72 100644
--- a/meta/recipes-extended/shadow/shadow.inc
+++ b/meta/recipes-extended/shadow/shadow.inc
@@ -132,7 +132,8 @@ do_install_append() {
132 # Ensure that the image has as a /var/spool/mail dir so shadow can 132 # Ensure that the image has as a /var/spool/mail dir so shadow can
133 # put mailboxes there if the user reconfigures shadow to its 133 # put mailboxes there if the user reconfigures shadow to its
134 # defaults (see sed below). 134 # defaults (see sed below).
135 install -d ${D}${localstatedir}/spool/mail 135 install -m 0775 -d ${D}${localstatedir}/spool/mail
136 chown root:mail ${D}${localstatedir}/spool/mail
136 137
137 if [ -e ${WORKDIR}/pam.d ]; then 138 if [ -e ${WORKDIR}/pam.d ]; then
138 install -d ${D}${sysconfdir}/pam.d/ 139 install -d ${D}${sysconfdir}/pam.d/