Bug 408931 - Multiple AVC denials with "mock init"
Summary: Multiple AVC denials with "mock init"
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 8
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-12-03 17:35 UTC by Jerry James
Modified: 2008-01-30 19:19 UTC (History)
0 users

Fixed In Version: Current
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-01-30 19:19:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jerry James 2007-12-03 17:35:28 UTC
Description of problem:
Running "mock -r /etc/mock/fedora-8-x86_64.cfg init" resulted in 5 AVC denials.
 They are (briefly):

1) /usr/sbin/groupadd (groupadd_t) cannot "write" to /dev/null (var_lib_t).
2) /usr/sbin/groupadd (groupadd_t) cannot "ioctl" to /dev/null (var_lib_t).
3) /usr/sbin/useradd (useradd_t) cannot "ioctl" to /dev/null (var_lib_t).
4) /usr/sbin/useradd (useradd_t) cannot "read write" to (var_log_t).
5) /usr/sbin/useradd (useradd_t) cannot "write" to /dev/null (var_lib_t).

Detailed information:
avc: denied { write } for comm=groupadd dev=dm-0 egid=0 euid=0
exe=/usr/sbin/groupadd exit=0 fsgid=0 fsuid=0 gid=0 items=0 path=/dev/null
pid=1706 scontext=system_u:system_r:groupadd_t:s0 sgid=0
subj=system_u:system_r:groupadd_t:s0 suid=0 tclass=chr_file
tcontext=system_u:object_r:var_lib_t:s0 tty=pts3 uid=0 

avc: denied { ioctl } for comm=groupadd dev=dm-0 path=/dev/null pid=1706
scontext=system_u:system_r:groupadd_t:s0 tclass=chr_file
tcontext=system_u:object_r:var_lib_t:s0 

avc: denied { ioctl } for comm=useradd dev=dm-0 path=/dev/null pid=1947
scontext=system_u:system_r:useradd_t:s0 tclass=chr_file
tcontext=system_u:object_r:var_lib_t:s0 

avc: denied { read write } for comm=useradd dev=dm-0 name=faillog pid=1947
scontext=system_u:system_r:useradd_t:s0 tclass=file
tcontext=system_u:object_r:var_log_t:s0 

avc: denied { write } for comm=useradd dev=dm-0 egid=0 euid=0
exe=/usr/sbin/useradd exit=0 fsgid=0 fsuid=0 gid=0 items=0 path=/dev/null
pid=1947 scontext=system_u:system_r:useradd_t:s0 sgid=0
subj=system_u:system_r:useradd_t:s0 suid=0 tclass=chr_file
tcontext=system_u:object_r:var_lib_t:s0 tty=pts3 uid=0 

Version-Release number of selected component (if applicable):
selinux-policy-3.0.8-58.fc8

How reproducible:
Always

Steps to Reproduce:
1. mock -r /etc/mock/fedora-8-x86_64.cfg init
  
Actual results:
The AVC denials list above are issued.

Expected results:
There should be no AVC denials.

Additional info:
mock-0.8.9-1.fc8

Comment 1 Daniel Walsh 2007-12-10 20:08:54 UTC
Fixed in selinux-policy-3.0.8-68.fc8


Comment 2 Daniel Walsh 2008-01-30 19:19:13 UTC
Bulk closing all bugs in Fedora updates in the modified state.  If you bug is
not fixed, please reopen.


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