Bug 981997 - new nsd policy need to be able to read urand
Summary: new nsd policy need to be able to read urand
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-07 16:18 UTC by Michael S.
Modified: 2013-07-14 03:39 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-3.12.1-63.fc19
Clone Of:
Environment:
Last Closed: 2013-07-14 03:39:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Michael S. 2013-07-07 16:18:41 UTC
Running nsd show several AVC, some about urand ( I will investigate the others later )

type=AVC msg=audit(1373206145.425:40): avc:  denied  { getattr } for  pid=520 comm="nsd" path="/dev/urandom" dev="devtmpfs" ino=4650 scontext=system_u:system_r:nsd_t:s0 tcontext=system_u:object_r:urandom_device_t:s0 tclass=chr_file

type=AVC msg=audit(1373206145.420:39): avc:  denied  { open } for  pid=520 comm="nsd" path="/dev/urandom" dev="devtmpfs" ino=4650 scontext=system_u:system_r:nsd_t:s0 tcontext=system_u:object_r:urandom_device_t:s0 tclass=chr_file

type=AVC msg=audit(1373206145.420:39): avc:  denied  { read } for  pid=520 comm="nsd" name="urandom" dev="devtmpfs" ino=4650 scontext=system_u:system_r:nsd_t:s0 tcontext=system_u:object_r:urandom_device_t:s0 tclass=chr_file
type=AVC msg=audit(1373206143.801:36): avc:  denied  { getattr } for  pid=474 comm="nsd-checkconf" path="/dev/urandom" dev="devtmpfs" ino=4650 scontext=system_u:system_r:nsd_t:s0 tcontext=system_u:object_r:urandom_device_t:s0 tclass=chr_file


I think a simple dev_read_urand(nsd_t) should be enough ?

( or nss_auth ? )

Comment 1 Daniel Walsh 2013-07-08 19:15:39 UTC
fd09aedb4fe49883e8a097bc32ebbaea149d3e57 fixes this in git.

Comment 2 Fedora Update System 2013-07-11 08:58:35 UTC
selinux-policy-3.12.1-63.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-63.fc19

Comment 3 Fedora Update System 2013-07-12 02:58:06 UTC
Package selinux-policy-3.12.1-63.fc19:
* should fix your issue,
* was pushed to the Fedora 19 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-63.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-12762/selinux-policy-3.12.1-63.fc19
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-07-14 03:39:35 UTC
selinux-policy-3.12.1-63.fc19 has been pushed to the Fedora 19 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.