[cups-devel] [UNKN] STR #4679: cups_finalize_client_conf checks the DOMAINSOCKET for execution bit

Didier Raboud noreply at cups.org
Sat Jul 18 08:57:01 PDT 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Yves-Alexis Perez reported that since 2.x, cups clients don't connect to
the correct socket: https://bugs.debian.org/792730.

I've tried to debug this, and my analysis is that since 2.x, `lpstat -H`
reports localhost:631 instead of /var/run/cups/cups.sock , even with the
socket file as follows in both 1.7 and 2.0:

srw-rw-rw- 1 root root 0 jui 18 12:36 /var/run/cups/cups.sock

I've traced this to be correctible by changing the access checks in
cups_finalize_client_conf, with the attached patch.

Does this make sense?

Link: https://www.cups.org/str.php?L4679
Version: 2.1-current
Attachment: https://www.cups.org/strfiles.php/3537/fix_local_domainsocket_access_checking.patch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJVqndNAAoJENujp6sI12IjWL8P/2COE76UNVPkJkMeICURyB4G
qYNMJ6YrzV85fPfCJ4BzGW/Emo8i3UGwZ8zytCAKujjvgVP0r6KVnZhb8jbWgbSi
eJfCV3cM7vzP6rj91XPUC7NmnQu88/52QlYad42aQhZHP2B+21ysy7VzYs/WL/4j
4SrNQD5N8OgO26Iwd2R2yAsxsVOs9Bj7wUGeRVUhLik63d+inrhdBo1HnxoOjB2f
F/FFmi7QnzM0P3nqK9HWkOPMMTzsfHjs4oyl4jbRdcsF6byH9oJdY/3ze3hvlNNp
goRhSKuU9ylNvpJsIO7WhOMLCeSSHHGi25IpRJhzFjh5Alhdoz1iyGAkmtSrVZ7W
FKzv0jlGT3ZcFP3D5wFCFpA53GyB7Ev7CXYG0PoN+EBDUBsuixFcVU66qcHRwaNU
Ser08A4PLh4UjD9KpW4+XjzyalArsZ9DXZIs+XL6XGsNNoaq7WgqeuMOmllcmt0J
23ICOa0/MBjeSiFyhWZ1qXomx8Hq9oKJoO5ZWPz+6TFQrmFppkCRMZzeSRfZHfLq
1wO+YcU6K5Q4+itAbGBK00fgCdJoszzuNz4dKNcHP0GYXsStoM5HLxMy2B9oeiF1
tAwIcEDC85fyWFar0baoux3trkymCaN/H64b3DDWIH/EfDpr1UO+kFWTDcJvlGb6
1MRnaBNehNzb/ONLEdLI
=O+VG
-----END PGP SIGNATURE-----




More information about the cups mailing list