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 11:58:27 +0100 |
commit | ba510849a8bc238997b6d1669300e24c46bcf328 (patch) | |
tree | a6287c1d4057ddae1f6b2cd2321471085452957b | |
parent | 117282486b68e4da468c21795ea87bfc85625885 (diff) | |
download | openembedded-core-ba510849a8bc238997b6d1669300e24c46bcf328.tar.gz openembedded-core-ba510849a8bc238997b6d1669300e24c46bcf328.tar.bz2 openembedded-core-ba510849a8bc238997b6d1669300e24c46bcf328.zip |
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.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
-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 () { rm -fr ${D}/${localstatedir}/run rmdir ${D}/${libdir}/${BPN}/driver + # Fix the pam configuration file permissions + if ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'true', 'false', d)}; then + chmod 0644 ${D}${sysconfdir}/pam.d/cups + fi + # Remove sysinit script and symlinks if sysvinit is not in DISTRO_FEATURES if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','false','true',d)}; then rm -rf ${D}${sysconfdir}/init.d/ |