]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
cups: fix pam configuration file's permission ChenQi/cups-pam
authorChen Qi <Qi.Chen@windriver.com>
Fri, 25 Sep 2015 02:31:30 +0000 (10:31 +0800)
committerChen Qi <Qi.Chen@windriver.com>
Fri, 25 Sep 2015 02:45:48 +0000 (10:45 +0800)
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>
meta/recipes-extended/cups/cups.inc

index 57cdf2650e194e52745c132a4267f984e0c8565d..c0765dc743f57cb998f9078cc45b3ea21633b317 100644 (file)
@@ -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/