Bug 869297 - SELinux is preventing /usr/bin/python2.7 from using the 'sys_nice' capabilities.
Summary: SELinux is preventing /usr/bin/python2.7 from using the 'sys_nice' capabilities.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:816660c889265d077f115a0957c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-23 14:06 UTC by Tim Waugh
Modified: 2012-12-20 16:13 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-12-20 16:13:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-10-23 14:06 UTC, Tim Waugh
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-10-23 14:06 UTC, Tim Waugh
no flags Details

Description Tim Waugh 2012-10-23 14:06:32 UTC
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;
:

Comment 1 Tim Waugh 2012-10-23 14:06:35 UTC
Created attachment 632138 [details]
File: type

Comment 2 Tim Waugh 2012-10-23 14:06:38 UTC
Created attachment 632139 [details]
File: hashmarkername

Comment 3 Tim Waugh 2012-10-23 14:15:18 UTC
Needed to reproduce it:

systemd-195-1.fc18.x86_64
system-config-printer-1.3.12-2.fc18

Comment 4 Miroslav Grepl 2012-10-24 18:00:27 UTC
Fixed in selinux-policy-3.11.1-44.fc18.noarch

Comment 5 Fedora Update System 2012-10-26 15:39:24 UTC
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

Comment 6 Fedora Update System 2012-10-26 19:28:55 UTC
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).

Comment 7 Julio Arias 2012-10-27 23:58:50 UTC
I connected a hp lsaerjet 1015

Package: (null)
OS Release: Fedora release 17 (Beefy Miracle)

Comment 8 hkjlml 2012-10-28 13:38:52 UTC
(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)

Comment 9 qwerty_144 2012-10-29 18:48:38 UTC
Install HP LaserJet1020 printer in Fedora

Package: (null)
Architecture: i686
OS Release: Fedora release 17 (Beefy Miracle)

Comment 10 António Lima 2012-10-29 23:35:31 UTC
Connected USB printer to computer and had this AVC denial.

Package: (null)
OS Release: Fedora release 17 (Beefy Miracle)

Comment 11 Fedora Update System 2012-12-20 16:13:06 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.