Debian Bug report logs - #677580
cups: please run restorecon after creating a /var/run directory

version graph

Package: cups; Maintainer for cups is Debian Printing Team <>; Source for cups is src:cups.

Reported by: Russell Coker <>

Date: Fri, 15 Jun 2012 00:21:07 UTC

Severity: normal

Tags: patch

Found in version cups/1.5.3-1

Fixed in version cups/1.7.0-2

Done: Didier Raboud <>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox

Report forwarded to, Debian CUPS Maintainers <>:
Bug#677580; Package cups. (Fri, 15 Jun 2012 00:21:10 GMT) Full text and rfc822 format available.

Acknowledgement sent to Russell Coker <>:
New Bug report received and forwarded. Copy sent to Debian CUPS Maintainers <>. (Fri, 15 Jun 2012 00:21:10 GMT) Full text and rfc822 format available.

Message #5 received at (full text, mbox):

From: Russell Coker <>
To: Debian Bug Tracking System <>
Subject: cups: please run restorecon after creating a /var/run directory
Date: Thu, 14 Jun 2012 22:41:01 +1000
Package: cups
Version: 1.5.3-1
Severity: normal

Please apply the following patch to the cups init script.  On systems which
don't run SE Linux this will not change the operation of the script.  But on
SE Linux systems this will cause the directory to be correctly labelled so
everything will work well.

Sorry for the late bug report, it would be nice if we could get this in

--- /etc/init.d/cups.orig       2012-06-14 22:35:54.000000000 +1000
+++ /etc/init.d/cups    2012-06-14 22:36:57.000000000 +1000
@@ -23,6 +23,7 @@
 test -x $DAEMON || exit 0
 mkdir -p /var/run/cups/certs
+[ -x /sbin/restorecon ] && /sbin/restorecon -R /var/run/cups
 if [ -r /etc/default/cups ]; then
   . /etc/default/cups

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages cups depends on:
ii  adduser                3.113+nmu3
ii  bc                     1.06.95-2+b1
ii  cups-client            1.5.3-1
ii  cups-common            1.5.3-1
ii  cups-filters           1.0.18-2+b2
ii  cups-ppdc              1.5.3-1
ii  debconf [debconf-2.0]  1.5.43
ii  dpkg         
ii  ghostscript            9.05~dfsg-6
ii  libacl1                2.2.51-7
ii  libavahi-client3       0.6.31-1
ii  libavahi-common3       0.6.31-1
ii  libc6                  2.13-33
ii  libcups2               1.5.3-1
ii  libcupscgi1            1.5.3-1
ii  libcupsimage2          1.5.3-1
ii  libcupsmime1           1.5.3-1
ii  libcupsppdc1           1.5.3-1
ii  libdbus-1-3            1.6.0-1
ii  libgcc1                1:4.7.0-13
ii  libgnutls26            2.12.20-1
ii  libgssapi-krb5-2       1.10.1+dfsg-1
ii  libkrb5-3              1.10.1+dfsg-1
ii  libldap-2.4-2          2.4.28-1.3
ii  libpam0g               1.1.3-7.1
ii  libpaper1              1.1.24+nmu2
ii  libslp1                1.2.1-9
ii  libstdc++6             4.7.0-13
ii  libusb-1.0-0           2:1.0.11-1
ii  lsb-base               4.1+Debian7
ii  poppler-utils          0.18.4-2
ii  procps                 1:3.3.3-1
ii  ssl-cert               1.0.29

Versions of packages cups recommends:
pn  avahi-daemon               <none>
pn  colord                     <none>
ii  foomatic-filters           4.0.15-1
ii  ghostscript-cups           9.05~dfsg-6
pn  printer-driver-gutenprint  <none>

Versions of packages cups suggests:
ii  cups-bsd               1.5.3-1
ii  cups-pdf               2.6.1-6
ii  foomatic-db            20120523-1
pn  hplip                  <none>
ii  printer-driver-hpcups  3.12.4-2
ii  smbclient              2:3.6.5-7
ii  udev                   175-3.1

-- Configuration Files:
/etc/init.d/cups changed:
DESC="Common Unix Printing System"
unset TMPDIR
test -x $DAEMON || exit 0
mkdir -p /var/run/cups/certs
[ -x /sbin/restorecon ] && /sbin/restorecon -R /var/run/cups
if [ -r /etc/default/cups ]; then
  . /etc/default/cups
. /lib/lsb/init-functions
if [ -z "$TZ" -a -e /etc/timezone ]; then
    TZ=`cat /etc/timezone`
    export TZ
restart_xprint() {
    if [ -n "$success" ] && [ -x /etc/init.d/xprint ]; then
        invoke-rc.d xprint force-reload || true
coldplug_usb_printers() {
    if type udevadm > /dev/null 2>&1 && [ -x /lib/udev/udev-configure-printer ]; then
	for printer in `udevadm trigger --verbose --dry-run --subsystem-match=usb \
		--attr-match=bInterfaceClass=07 --attr-match=bInterfaceSubClass=01 2>/dev/null || true; \
	                udevadm trigger --verbose --dry-run --subsystem-match=usb \
		--sysname-match='lp[0-9]*' 2>/dev/null || true`; do
	    /lib/udev/udev-configure-printer add "${printer#/sys}"
case "$1" in
	log_begin_msg "Starting $DESC: $NAME"
	mkdir -p `dirname "$PIDFILE"`
	if [ "$LOAD_LP_MODULE" = "yes" -a -f /usr/lib/cups/backend/parallel \
             -a -f /proc/devices -a -f /proc/modules -a -x /sbin/modprobe ]; then
	  modprobe -q -b lp || true
	  modprobe -q -b ppdev || true
	  modprobe -q -b parport_pc || true
	start-stop-daemon --start --quiet --oknodo --pidfile "$PIDFILE" --exec $DAEMON && success=1
	log_end_msg $?
	log_begin_msg "Stopping $DESC: $NAME"
	start-stop-daemon --stop --quiet --retry 5 --oknodo --pidfile $PIDFILE --name $NAME && success=1
	log_end_msg $?
       log_begin_msg "Reloading $DESC: $NAME"
       start-stop-daemon --stop --quiet --pidfile $PIDFILE --name $NAME --signal 1 && success=1
       log_end_msg $?
	log_begin_msg "Restarting $DESC: $NAME"
	if start-stop-daemon --stop --quiet --retry 5 --oknodo --pidfile $PIDFILE --name $NAME; then
		start-stop-daemon --start --quiet --pidfile "$PIDFILE" --exec $DAEMON && success=1
	log_end_msg $?
	echo -n "Status of $DESC: "
	if [ ! -r "$PIDFILE" ]; then
		echo "$NAME is not running."
		exit 3
	if read pid < "$PIDFILE" && ps -p "$pid" > /dev/null 2>&1; then
		echo "$NAME is running."
		exit 0
		echo "$NAME is not running but $PIDFILE exists."
		exit 1
	echo "Usage: $N {start|stop|restart|force-reload|status}" >&2
	exit 1
exit 0

-- debconf information excluded

Information forwarded to, Debian CUPS Maintainers <>:
Bug#677580; Package cups. (Wed, 12 Dec 2012 19:39:09 GMT) Full text and rfc822 format available.

Acknowledgement sent to Pierre Frenkiel <>:
Extra info received and forwarded to list. Copy sent to Debian CUPS Maintainers <>. (Wed, 12 Dec 2012 19:39:09 GMT) Full text and rfc822 format available.

Message #10 received at (full text, mbox):

From: Pierre Frenkiel <>
Subject: bug #677580
Date: Wed, 12 Dec 2012 20:04:25 +0100 (CET)
after installing Wheezy, I get the same problem, which is not fixed by the
proposed patch

best regards,
Pierre Frenkiel

Added tag(s) patch. Request was from Brian Potkin <> to (Mon, 19 Aug 2013 13:33:05 GMT) Full text and rfc822 format available.

Reply sent to Didier Raboud <>:
You have taken responsibility. (Sat, 04 Jan 2014 15:21:17 GMT) Full text and rfc822 format available.

Notification sent to Russell Coker <>:
Bug acknowledged by developer. (Sat, 04 Jan 2014 15:21:17 GMT) Full text and rfc822 format available.

Message #17 received at (full text, mbox):

From: Didier Raboud <>
Subject: Bug#677580: fixed in cups 1.7.0-2
Date: Sat, 04 Jan 2014 15:19:53 +0000
Source: cups
Source-Version: 1.7.0-2

We believe that the bug you reported is fixed in the latest version of
cups, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
Didier Raboud <> (supplier of updated cups package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing

Hash: SHA256

Format: 1.8
Date: Sat, 04 Jan 2014 15:46:02 +0100
Source: cups
Binary: libcups2 libcupsimage2 libcupscgi1 libcupsmime1 libcupsppdc1 cups cups-daemon cups-client libcups2-dev libcupsimage2-dev libcupscgi1-dev libcupsmime1-dev libcupsppdc1-dev cups-bsd cups-common cups-server-common cups-ppdc cups-dbg
Architecture: source amd64 all
Version: 1.7.0-2
Distribution: unstable
Urgency: low
Maintainer: Debian Printing Team <>
Changed-By: Didier Raboud <>
 cups       - Common UNIX Printing System(tm) - server
 cups-bsd   - Common UNIX Printing System(tm) - BSD commands
 cups-client - Common UNIX Printing System(tm) - client programs (SysV)
 cups-common - Common UNIX Printing System(tm) - common files
 cups-daemon - Common UNIX Printing System(tm) - daemon
 cups-dbg   - Common UNIX Printing System(tm) - debugging symbols
 cups-ppdc  - Common UNIX Printing System(tm) - PPD manipulation utilities
 cups-server-common - Common UNIX Printing System(tm) - server common files
 libcups2   - Common UNIX Printing System(tm) - Core library
 libcups2-dev - Common UNIX Printing System(tm) - Development files CUPS library
 libcupscgi1 - Common UNIX Printing System(tm) - CGI library
 libcupscgi1-dev - Common UNIX Printing System(tm) - Development files for CGI libra
 libcupsimage2 - Common UNIX Printing System(tm) - Raster image library
 libcupsimage2-dev - Common UNIX Printing System(tm) - Development files CUPS image li
 libcupsmime1 - Common UNIX Printing System(tm) - MIME library
 libcupsmime1-dev - Common UNIX Printing System(tm) - Development files MIME library
 libcupsppdc1 - Common UNIX Printing System(tm) - PPD manipulation library
 libcupsppdc1-dev - Common UNIX Printing System(tm) - Development files PPD library
Closes: 570157 677580 718798
 cups (1.7.0-2) unstable; urgency=low
   [ Russell Coker ]
   * In the cups init script, run restorecon after creating a /var/run
     directory (Closes: #677580)
   [ Bastien ROUCARIÈS ]
   * Add patch to drop two dangling references in
     (Closes: #570157)
   [ Nicolas Boulenguez ]
   * Enhance cups' init-script(Closes: #718798)
     - Specify SCRIPTNAME instead of relying on N=${0##*/} bashism
     - Replace restart_xprint() implicit parameter (success) with an
       explicit first parameter for readability
     - Replace log_begin_msg() calls by log_daemon_msg() to use the
       vendor-specific formatting
     - Clarify exit statuses handling by making sure only the result of
       start-stop-daemon is returned
     - Don't call coldplug_usb_printers when the daemon fails to start
     - Use status_of_proc from lsb-base >= 3.2.14 instead of a
       hand-written implementation
     - Unimplemented actions must return 3
   [ Didier Raboud ]
   * Let uscan verify PGP signatures on signed upstream tarballs
   * Update manpage-hyphen-minus.patch to fix three missing fixes in
   * Add patch to fix expres{,s}ion typo
   * Fix two occurences of pointer-from-integer in the color-management
     extension patch
   * Update drop_unnecessary_dependencies patch to make sure
     libcupsimage2 is linked against pthread
   * Bump Standards-Version to 3.9.5 without changes needed
 5456f30a0b2bdfdff3e61920f748b9b80806a608 3188 cups_1.7.0-2.dsc
 be18729e171d3e8dc99cf8c96126ee714190ed8f 441178 cups_1.7.0-2.debian.tar.gz
 dff9f5df379c13ee049f2738a1c928f4e9a5263a 269098 libcups2_1.7.0-2_amd64.deb
 a1479b2bfc84d412f6f28158bf1e6e0387f5deb0 106864 libcupsimage2_1.7.0-2_amd64.deb
 4fd91f580b8339711d0b2849a3fc87a7d3b771e5 117750 libcupscgi1_1.7.0-2_amd64.deb
 1fefd9b36bd5182243e22e1c6da0dbb7d10de656 103738 libcupsmime1_1.7.0-2_amd64.deb
 1b484a55d18b165f7c84af653bcc71021cf950e0 135814 libcupsppdc1_1.7.0-2_amd64.deb
 8efbfb1ff9c9906fbd5a92889f02fd9fdf5491b4 294652 cups_1.7.0-2_amd64.deb
 de15e67a0d82a3fb6d3b3d02f0ae48cdd5ff6d45 354492 cups-daemon_1.7.0-2_amd64.deb
 8d73caeccd5af652241cb4fef066877cc36fa805 286708 cups-client_1.7.0-2_amd64.deb
 3b433029b2ea2d8ad1e789fd3b29c78ec7a573c8 307212 libcups2-dev_1.7.0-2_amd64.deb
 26fc206b088d8d92f9f26fb5e17c04896b4e10db 18112 libcupsimage2-dev_1.7.0-2_amd64.deb
 cdc507e50c822592c36d05839003b796df307027 120224 libcupscgi1-dev_1.7.0-2_amd64.deb
 ee70e7ff65a3c0ee879700fd9863c1ae18930a1d 104380 libcupsmime1-dev_1.7.0-2_amd64.deb
 573d3a5e3f3900903745866c97125ff6a71889ea 140888 libcupsppdc1-dev_1.7.0-2_amd64.deb
 dd5d76c05deee0b3dc2641124d6eb09529178596 26562 cups-bsd_1.7.0-2_amd64.deb
 99e3904545fcda7fac5391a63a84e70ab6aaed5c 235436 cups-common_1.7.0-2_all.deb
 79039d968e273782b8c6df4ea640a69d93039d7e 589902 cups-server-common_1.7.0-2_all.deb
 f62d2135a58a2a86dbee4f59d0344f5bd13c7961 117016 cups-ppdc_1.7.0-2_amd64.deb
 a0fffe2a8ecc836dae3a39d3e484cf729266bd6e 2123558 cups-dbg_1.7.0-2_amd64.deb
 e050ecfd82e6805b4a4857bd682550305baee2804d912e51eef78d118d1ad439 3188 cups_1.7.0-2.dsc
 b908a493c502a2ceabf471a2b1d4007f02ce947c58b55547c6cd13db72e8ce1f 441178 cups_1.7.0-2.debian.tar.gz
 761ff4e38561ae0b2eeb0fc0f9cd2b1cea188573e22f840e785e0611db0db37e 269098 libcups2_1.7.0-2_amd64.deb
 2ba1005c1d0cd8094f621bb11d4f90bd826be0e41f5fb04f535c19eb8b9cca20 106864 libcupsimage2_1.7.0-2_amd64.deb
 927f1f1b61ca6b5814250c5cbbb27173a47f9152b98baa08249e07f9c06fe607 117750 libcupscgi1_1.7.0-2_amd64.deb
 c47fe95fa154149f0f47c281a605f62f88e868bf73f5b3e61a7eb4195c26f8c4 103738 libcupsmime1_1.7.0-2_amd64.deb
 458a8fd64703c28e683911f73c7b41d5dfbc2ad370e0888485beead34b02e0c1 135814 libcupsppdc1_1.7.0-2_amd64.deb
 c95c1b0a1a50f612bc2e7b20ca4d4c766d5c057bddd8d0ba3c5c2082807a2e04 294652 cups_1.7.0-2_amd64.deb
 dab8f230eb098333d2e20ee7093aa3ea9ca3429e79b14b6733a502993f6ef88c 354492 cups-daemon_1.7.0-2_amd64.deb
 f67c94e65e883b1f3087ef2697b6bb7a80530d737c8b63e166a498b631974af9 286708 cups-client_1.7.0-2_amd64.deb
 917dd217a00ecc54b96abd9accfe99a63ef6c5ae6fa7865e1a699821420c94a4 307212 libcups2-dev_1.7.0-2_amd64.deb
 775c0481708ba678001b07411e7b007ab9fcbc0714572532d007cffca9429845 18112 libcupsimage2-dev_1.7.0-2_amd64.deb
 755261ec8790dfe8a35f9eb7e33ca38e8619316dc43c7a664a67a1b26c266119 120224 libcupscgi1-dev_1.7.0-2_amd64.deb
 a3e7df316cd9f164def320b41cfa5b18ef258727659966e3ccc33634fe053daf 104380 libcupsmime1-dev_1.7.0-2_amd64.deb
 899b7cbbff6f622229daa016d76e4d7fb7e52dce5e322f7b772ca2b36b41c5f3 140888 libcupsppdc1-dev_1.7.0-2_amd64.deb
 e6377f614eb734aa5a9c199a0d2ca122731816fc3a1424ae4e891a6c2810523f 26562 cups-bsd_1.7.0-2_amd64.deb
 d439373bf70d993050c0932c6fd0af93434234944dd6d1dcc2f346600d132ff7 235436 cups-common_1.7.0-2_all.deb
 1bbcba66ee3a4c89db2e79761051a89eba27a872658277148c68d57bbf498fb7 589902 cups-server-common_1.7.0-2_all.deb
 a2aba825bbe2eb3d46f432b0b961b181aef9b347c8443dffb2294f4c6d57f119 117016 cups-ppdc_1.7.0-2_amd64.deb
 ab83291b7e74c2b12093bfdc3a2ae584147f9c0b140b438240fe88f638d06d33 2123558 cups-dbg_1.7.0-2_amd64.deb
 ef2b504613bd520b50b709117aaf96a2 3188 net optional cups_1.7.0-2.dsc
 1fa1b53661d459f0f1e01f91e69469c0 441178 net optional cups_1.7.0-2.debian.tar.gz
 e267886153f1dbf49c75efde186d6852 269098 libs optional libcups2_1.7.0-2_amd64.deb
 8ff703476e349f357d9b1940d8a3ad9c 106864 libs optional libcupsimage2_1.7.0-2_amd64.deb
 bf8528ba7e1c28a95327b0ea584e26c2 117750 libs optional libcupscgi1_1.7.0-2_amd64.deb
 df22274fe4cc4054679b7b8e1a496a5c 103738 libs optional libcupsmime1_1.7.0-2_amd64.deb
 eb8400125a6d7571b45ec48ca4eb6e17 135814 libs optional libcupsppdc1_1.7.0-2_amd64.deb
 81373725e5f006615a79bca47736be40 294652 net optional cups_1.7.0-2_amd64.deb
 bb5909c8ac04e3aefbd11a71a6e0e9b6 354492 net optional cups-daemon_1.7.0-2_amd64.deb
 f4361965741cf4c51c77b8829854f2c4 286708 net optional cups-client_1.7.0-2_amd64.deb
 b9adbbcaf45e4be5a4d1ff31abd65d25 307212 libdevel optional libcups2-dev_1.7.0-2_amd64.deb
 d172b15b298d2a78f3dc9ff90afd7995 18112 libdevel optional libcupsimage2-dev_1.7.0-2_amd64.deb
 4df5b834aa2bb3e91d127e5597d62fbf 120224 libdevel optional libcupscgi1-dev_1.7.0-2_amd64.deb
 c55bc5b63b3dcf244a2d4f5d6ec26696 104380 libdevel optional libcupsmime1-dev_1.7.0-2_amd64.deb
 4aa8b8702db716080d0ce5c4d6625d5c 140888 libdevel optional libcupsppdc1-dev_1.7.0-2_amd64.deb
 925379a3e0d58cfe0fd81f95d2978a10 26562 net extra cups-bsd_1.7.0-2_amd64.deb
 8c33eaf6b843189eb25387c2a4d7af9e 235436 net optional cups-common_1.7.0-2_all.deb
 5ce38ee99c0ba3c31eecf325fa75a372 589902 net optional cups-server-common_1.7.0-2_all.deb
 fa444e205424fa8fbf3a39da6448ae5b 117016 utils optional cups-ppdc_1.7.0-2_amd64.deb
 fecf0d5b83077e7ddd13f5f646547ffb 2123558 debug extra cups-dbg_1.7.0-2_amd64.deb

Version: GnuPG v1.4.15 (GNU/Linux)


Bug archived. Request was from Debbugs Internal Request <> to (Sun, 02 Feb 2014 07:32:31 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.

Debian bug tracking system administrator <>. Last modified: Sat Apr 19 12:20:51 2014; Machine Name:

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.