Bug 906993 - SELinux is preventing /usr/bin/uuidgen from 'getattr' accesses on the chr_file /dev/random.
Summary: SELinux is preventing /usr/bin/uuidgen from 'getattr' accesses on the chr_fil...
Keywords:
Status: CLOSED CURRENTRELEASE
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:ca09f9516b54584c2c685f385df...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-02 12:08 UTC by Vugar Dzhamalov
Modified: 2013-02-11 04:55 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-02-11 04:55:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Vugar Dzhamalov 2013-02-02 12:08:54 UTC
Description of problem:
I have install openvswithtch and started the service via systemctl
SELinux is preventing /usr/bin/uuidgen from 'getattr' accesses on the chr_file /dev/random.

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

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

Additional Information:
Source Context                system_u:system_r:openvswitch_t:s0
Target Context                system_u:object_r:random_device_t:s0
Target Objects                /dev/random [ chr_file ]
Source                        uuidgen
Source Path                   /usr/bin/uuidgen
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           util-linux-2.22.2-2.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-74.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.7.5-201.fc18.x86_64 #1 SMP Mon
                              Jan 28 19:54:41 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-02-03 01:05:37 NZDT
Last Seen                     2013-02-03 01:05:37 NZDT
Local ID                      2c04445b-521c-43db-a43e-adfc96f6200a

Raw Audit Messages
type=AVC msg=audit(1359806737.320:348): avc:  denied  { getattr } for  pid=3147 comm="uuidgen" path="/dev/random" dev="devtmpfs" ino=1032 scontext=system_u:system_r:openvswitch_t:s0 tcontext=system_u:object_r:random_device_t:s0 tclass=chr_file


type=SYSCALL msg=audit(1359806737.320:348): arch=x86_64 syscall=stat success=yes exit=0 a0=30c9602acb a1=7fff08b22030 a2=7fff08b22030 a3=b items=0 ppid=3024 pid=3147 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=uuidgen exe=/usr/bin/uuidgen subj=system_u:system_r:openvswitch_t:s0 key=(null)

Hash: uuidgen,openvswitch_t,random_device_t,chr_file,getattr

audit2allow

#============= openvswitch_t ==============
allow openvswitch_t random_device_t:chr_file getattr;

audit2allow -R

#============= openvswitch_t ==============
allow openvswitch_t random_device_t:chr_file getattr;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.7.5-201.fc18.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-02-04 11:03:49 UTC
Fixed in selinux-policy-3.11.1-75.fc18.noarch

Comment 2 Fedora Update System 2013-02-05 09:23:58 UTC
selinux-policy-3.11.1-76.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-76.fc18

Comment 3 Fedora Update System 2013-02-08 02:36:23 UTC
Package selinux-policy-3.11.1-76.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-76.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-2101/selinux-policy-3.11.1-76.fc18
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-02-11 04:55:36 UTC
selinux-policy-3.11.1-76.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.