Bug 1071054 - SELinux is preventing /usr/libexec/gdm-session-worker from using the 'net_admin' capabilities.
Summary: SELinux is preventing /usr/libexec/gdm-session-worker from using the 'net_adm...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:9b6b8a4b1974dc725469ac4ad91...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-28 03:12 UTC by Jim Tyler
Modified: 2014-03-21 09:25 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.12.1-135.fc20
Clone Of:
Environment:
Last Closed: 2014-03-21 09:25:41 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jim Tyler 2014-02-28 03:12:52 UTC
Description of problem:
I just loged on to the computer and let it sit.
SELinux is preventing /usr/libexec/gdm-session-worker from using the 'net_admin' capabilities.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that gdm-session-worker should have the net_admin 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 gdm-session-wor /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Objects                 [ capability ]
Source                        gdm-session-wor
Source Path                   /usr/libexec/gdm-session-worker
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           gdm-3.10.0.1-1.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-122.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.13.3-201.fc20.x86_64 #1 SMP Fri
                              Feb 14 19:08:32 UTC 2014 x86_64 x86_64
Alert Count                   2
First Seen                    2014-02-27 14:03:16 PST
Last Seen                     2014-02-27 14:03:16 PST
Local ID                      7801fb22-21ca-4e77-b51c-bf86c9a32f89

Raw Audit Messages
type=AVC msg=audit(1393538596.16:618): avc:  denied  { net_admin } for  pid=3903 comm="gdm-session-wor" capability=12  scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tclass=capability


type=SYSCALL msg=audit(1393538596.16:618): arch=x86_64 syscall=setsockopt success=no exit=EPERM a0=f a1=1 a2=20 a3=7fff96505260 items=0 ppid=3815 pid=3903 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=3 tty=(none) comm=gdm-session-wor exe=/usr/libexec/gdm-session-worker subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)

Hash: gdm-session-wor,xdm_t,xdm_t,capability,net_admin

Additional info:
reporter:       libreport-2.1.12
hashmarkername: setroubleshoot
kernel:         3.13.3-201.fc20.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2014-02-28 12:21:21 UTC
#============= xdm_t ==============

#!!!! This avc is allowed in the current policy
allow xdm_t self:capability net_admin;

Comment 2 Fedora Update System 2014-03-12 07:19:49 UTC
selinux-policy-3.12.1-135.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-135.fc20

Comment 3 Fedora Update System 2014-03-13 05:10:57 UTC
Package selinux-policy-3.12.1-135.fc20:
* should fix your issue,
* was pushed to the Fedora 20 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.12.1-135.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-3813/selinux-policy-3.12.1-135.fc20
then log in and leave karma (feedback).

Comment 4 morgan read 2014-03-16 20:18:11 UTC
Description of problem:
logged in as root

Additional info:
reporter:       libreport-2.1.12
hashmarkername: setroubleshoot
kernel:         3.13.6-200.fc20.x86_64
type:           libreport

Comment 5 Fedora Update System 2014-03-21 09:25:41 UTC
selinux-policy-3.12.1-135.fc20 has been pushed to the Fedora 20 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.