Bug 1065567 - SELinux is preventing /usr/sbin/dumpcap from 'create' accesses on the packet_socket .
Summary: SELinux is preventing /usr/sbin/dumpcap from 'create' accesses on the packet_...
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:a522176822880bf665e813a0359...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-15 00:13 UTC by Carl G.
Modified: 2014-03-12 12:19 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.12.1-127.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-12 12:19:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Carl G. 2014-02-15 00:13:26 UTC
Description of problem:
Trying to run wireshark from a confined staff_u user. 

Beside create, theres also ioctl, bind, getopt and setopt.
SELinux is preventing /usr/sbin/dumpcap from 'create' accesses on the packet_socket .

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

If you believe that dumpcap should be allowed create access on the  packet_socket 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 dumpcap /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                staff_u:staff_r:staff_t:s0-s0:c0.c1023
Target Context                staff_u:staff_r:staff_t:s0-s0:c0.c1023
Target Objects                 [ packet_socket ]
Source                        dumpcap
Source Path                   /usr/sbin/dumpcap
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           wireshark-1.10.5-2.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-122.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.12.10-300.fc20.x86_64 #1 SMP Thu
                              Feb 6 22:11:48 UTC 2014 x86_64 x86_64
Alert Count                   2
First Seen                    2014-02-14 19:03:16 EST
Last Seen                     2014-02-14 19:04:04 EST
Local ID                      a1b74c82-576c-4141-9822-fd20f950e1fd

Raw Audit Messages
type=AVC msg=audit(1392422644.186:4659): avc:  denied  { create } for  pid=32139 comm="dumpcap" scontext=staff_u:staff_r:staff_t:s0-s0:c0.c1023 tcontext=staff_u:staff_r:staff_t:s0-s0:c0.c1023 tclass=packet_socket


type=SYSCALL msg=audit(1392422644.186:4659): arch=x86_64 syscall=socket success=yes exit=ESRCH a0=11 a1=3 a2=300 a3=7fff007b6f70 items=0 ppid=32130 pid=32139 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=9 tty=pts4 comm=dumpcap exe=/usr/sbin/dumpcap subj=staff_u:staff_r:staff_t:s0-s0:c0.c1023 key=(null)

Hash: dumpcap,staff_t,staff_t,packet_socket,create

Additional info:
reporter:       libreport-2.1.12
hashmarkername: setroubleshoot
kernel:         3.12.10-300.fc20.x86_64
type:           libreport

Comment 1 Daniel Walsh 2014-02-17 20:19:28 UTC
c6188e30c20d4327d7c6b24bd5802b16f8eb3bf6 allows this in git.

Comment 2 Fedora Update System 2014-02-18 22:10:14 UTC
selinux-policy-3.12.1-126.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-126.fc20

Comment 3 Fedora Update System 2014-02-22 00:42:30 UTC
Package selinux-policy-3.12.1-126.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-126.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-2801/selinux-policy-3.12.1-126.fc20
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-02-26 13:50:38 UTC
Package selinux-policy-3.12.1-127.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-127.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-2801/selinux-policy-3.12.1-127.fc20
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2014-03-12 12:19:16 UTC
selinux-policy-3.12.1-127.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.