Description of problem: Connecting a USB printer. Additional info: libreport version: 2.0.16 kernel: 3.6.2-2.fc18.x86_64 description: :SELinux is preventing /usr/bin/python2.7 from using the 'sys_nice' capabilities. : :***** Plugin catchall (100. confidence) suggests *************************** : :If you believe that python2.7 should have the sys_nice capability by default. :Then you should report this as a bug. :You can generate a local policy module to allow this access. :Do :allow this access for now by executing: :# grep udev-add-printe /var/log/audit/audit.log | audit2allow -M mypol :# semodule -i mypol.pp : :Additional Information: :Source Context system_u:system_r:cupsd_config_t:s0 :Target Context system_u:system_r:cupsd_config_t:s0 :Target Objects [ capability ] :Source udev-add-printe :Source Path /usr/bin/python2.7 :Port <Unknown> :Host (removed) :Source RPM Packages python-2.7.3-13.fc18.x86_64 :Target RPM Packages :Policy RPM selinux-policy-3.11.1-36.fc18.noarch :Selinux Enabled True :Policy Type targeted :Enforcing Mode Enforcing :Host Name (removed) :Platform Linux (removed) 3.6.2-2.fc18.x86_64 #1 SMP Wed Oct : 17 05:56:07 UTC 2012 x86_64 x86_64 :Alert Count 1 :First Seen 2012-10-23 15:04:08 BST :Last Seen 2012-10-23 15:04:08 BST :Local ID 69f63ebb-6a36-4c77-9eeb-cd5b75d244a0 : :Raw Audit Messages :type=AVC msg=audit(1351001048.794:421): avc: denied { sys_nice } for pid=9497 comm="udev-add-printe" capability=23 scontext=system_u:system_r:cupsd_config_t:s0 tcontext=system_u:system_r:cupsd_config_t:s0 tclass=capability : : :type=AVC msg=audit(1351001048.794:421): avc: denied { setsched } for pid=9497 comm="udev-add-printe" scontext=system_u:system_r:cupsd_config_t:s0 tcontext=system_u:system_r:cupsd_config_t:s0 tclass=process : : :type=SYSCALL msg=audit(1351001048.794:421): arch=x86_64 syscall=sched_setscheduler success=no exit=EACCES a0=2519 a1=0 a2=7fff0663c750 a3=1 items=0 ppid=1 pid=9497 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=udev-add-printe exe=/usr/bin/python2.7 subj=system_u:system_r:cupsd_config_t:s0 key=(null) : :Hash: udev-add-printe,cupsd_config_t,cupsd_config_t,capability,sys_nice : :audit2allow : :#============= cupsd_config_t ============== :allow cupsd_config_t self:capability sys_nice; :allow cupsd_config_t self:process setsched; : :audit2allow -R : :#============= cupsd_config_t ============== :allow cupsd_config_t self:capability sys_nice; :allow cupsd_config_t self:process setsched; :
Created attachment 632138 [details] File: type
Created attachment 632139 [details] File: hashmarkername
Needed to reproduce it: systemd-195-1.fc18.x86_64 system-config-printer-1.3.12-2.fc18
Fixed in selinux-policy-3.11.1-44.fc18.noarch
selinux-policy-3.11.1-46.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-46.fc18
Package selinux-policy-3.11.1-46.fc18: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing selinux-policy-3.11.1-46.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-16862/selinux-policy-3.11.1-46.fc18 then log in and leave karma (feedback).
I connected a hp lsaerjet 1015 Package: (null) OS Release: Fedora release 17 (Beefy Miracle)
(FRENCH) Bonjour. Auparavant, j'avais Fedora 16. J'ai voulu faire une mise à niveau en utilisant le live-cd en français (pour voir s'il y avait une différence, outre le faite qu'elle démarre en français et nonpas en anglais. J'ai donc réinstallé la distribution. L'installation faite, j'ai ouvert ma session. j'ai branché physiquement mon imprimante (un HP psc 1215 all-in-one) Je l'ai allumée. J'ai eu la notifaication me demandant de la paramétrer. Une seconde après, j'ai reçu une notification SELinux : Processus source : /usr/bin/python2.7 A tenté l'accès suivant : sys_nice sur ce capacity : (rien, vide) ??? Autre chose, je n'arrive plus à paramétrer mon imprimante. En vain, alors qu'elle fonctionnait sans problème avec Fedora 16. Elle est bien détectée. Le gestionnaire me propose bien hp, modèle psc, mais me propose un pilote laserjet. J'ai essayé tous les pilotes de ce modèle ... en vain. J'ai trouvé en fin de liste les pilote de la psc ... mais pas celui de mon imprimante. Il n'y a rien entre 950xi et 2110. Merci d'avance pour ce que vous pourrez faire. Jean-Luc CHOPIN Package: (null) Architecture: i686 OS Release: Fedora release 17 (Beefy Miracle)
Install HP LaserJet1020 printer in Fedora Package: (null) Architecture: i686 OS Release: Fedora release 17 (Beefy Miracle)
Connected USB printer to computer and had this AVC denial. Package: (null) OS Release: Fedora release 17 (Beefy Miracle)
selinux-policy-3.11.1-46.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.