diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2015-09-25 10:55:32 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-28 12:00:26 +0100 |
commit | cfa3ed00b37ae91db23eb1357698a7aee06f18f1 (patch) | |
tree | 3383d9bc5ab4fae800397e973297bf723d9317ed /meta/recipes-extended/cups | |
parent | 8227d49edc525bd0369d01fee8e6d6184b0f1723 (diff) | |
download | poky-cfa3ed00b37ae91db23eb1357698a7aee06f18f1.tar.gz |
cups: fix pam configuration file's permission
The files under /etc/pam.d should be 0644. The /etc/pam.d/cups file has
0444 after 'make install'. This patch fixes this problem.
(From OE-Core rev: ba510849a8bc238997b6d1669300e24c46bcf328)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/cups')
-rw-r--r-- | meta/recipes-extended/cups/cups.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-extended/cups/cups.inc b/meta/recipes-extended/cups/cups.inc index 57cdf2650e..c0765dc743 100644 --- a/meta/recipes-extended/cups/cups.inc +++ b/meta/recipes-extended/cups/cups.inc | |||
@@ -64,6 +64,11 @@ do_install () { | |||
64 | rm -fr ${D}/${localstatedir}/run | 64 | rm -fr ${D}/${localstatedir}/run |
65 | rmdir ${D}/${libdir}/${BPN}/driver | 65 | rmdir ${D}/${libdir}/${BPN}/driver |
66 | 66 | ||
67 | # Fix the pam configuration file permissions | ||
68 | if ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'true', 'false', d)}; then | ||
69 | chmod 0644 ${D}${sysconfdir}/pam.d/cups | ||
70 | fi | ||
71 | |||
67 | # Remove sysinit script and symlinks if sysvinit is not in DISTRO_FEATURES | 72 | # Remove sysinit script and symlinks if sysvinit is not in DISTRO_FEATURES |
68 | if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','false','true',d)}; then | 73 | if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','false','true',d)}; then |
69 | rm -rf ${D}${sysconfdir}/init.d/ | 74 | rm -rf ${D}${sysconfdir}/init.d/ |