Skip to contentSkip to conversation

cups: fix pam configuration file's permission

PATCH New Chen Qi 1 participant 2 messages Sep 25, 2015

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

cover cups: fix pam configuration file's permission

The following changes since commit 2ad7308ee7166641eff99f3b9fe6794de143f6bc:

oeqa/utils/qemurunner.py: Remove duplicate message on LoggingThread start (2015-09-22 18:13:02 +0100)

are available in the git repository at:

git://git.openembedded.org/openembedded-core-contrib ChenQi/cups-pam
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=ChenQi/cups-pam

Chen Qi (1):
cups: fix pam configuration file's permission

 meta/recipes-extended/cups/cups.inc | 5 +++++
 1 file changed, 5 insertions(+)
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 1/1 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.

---
 meta/recipes-extended/cups/cups.inc | 5 +++++
 1 file changed, 5 insertions(+)
meta/recipes-extended/cups/cups.inc +5 -0
index 57cdf26..c0765dc 100644
@@ -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/
Signature · 1 line
1.9.1