Bug 281511

Summary: avc denials for xorg, ssh-keygen, etc on f8test2 rc1
Product: [Fedora] Fedora Reporter: Jesse Keating <jkeating>
Component: selinux-policy-targetedAssignee: Daniel Walsh <dwalsh>
Status: CLOSED RAWHIDE QA Contact: Ben Levenson <benl>
Severity: low Docs Contact:
Priority: medium    
Version: rawhideCC: dcantrell
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-09-07 19:10:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 257221    

Description Jesse Keating 2007-09-06 21:47:54 UTC
# grep den /var/log/audit/audit.log 
type=AVC msg=audit(1189100042.312:9): avc:  denied  { read write } for  pid=2355
comm="ssh-keygen" path="/dev/pts/0" dev=devpts ino=2
scontext=system_u:system_r:ssh_keygen_t:s0
tcontext=system_u:object_r:rhgb_devpts_t:s0 tclass=chr_file
type=AVC msg=audit(1189100043.427:10): avc:  denied  { read write } for 
pid=2359 comm="ssh-keygen" path="/dev/pts/0" dev=devpts ino=2
scontext=system_u:system_r:ssh_keygen_t:s0
tcontext=system_u:object_r:rhgb_devpts_t:s0 tclass=chr_file
type=AVC msg=audit(1189100044.552:11): avc:  denied  { read write } for 
pid=2363 comm="ssh-keygen" path="/dev/pts/0" dev=devpts ino=2
scontext=system_u:system_r:ssh_keygen_t:s0
tcontext=system_u:object_r:rhgb_devpts_t:s0 tclass=chr_file
type=AVC msg=audit(1189100055.391:12): avc:  denied  { unix_read unix_write }
for  pid=1495 comm="Xorg" key=0 scontext=system_u:system_r:xdm_xserver_t:s0
tcontext=system_u:system_r:firstboot_t:s0 tclass=shm
type=AVC msg=audit(1189100093.657:14): avc:  denied  { unix_read unix_write }
for  pid=1495 comm="Xorg" key=0 scontext=system_u:system_r:xdm_xserver_t:s0
tcontext=system_u:system_r:firstboot_t:s0 tclass=shm

This is on a fresh install of f8test2 rc1 (rawhide 20070906) a default install
and a run through firstboot including creating a user.

# audit2allow < /var/log/audit/audit.log 


#============= ssh_keygen_t ==============
allow ssh_keygen_t rhgb_devpts_t:chr_file { read write };

#============= xdm_xserver_t ==============
allow xdm_xserver_t firstboot_t:shm { unix_read unix_write };

Comment 1 Daniel Walsh 2007-09-06 23:26:22 UTC
Fixed in selinux-policy-3.0.7-5.fc8

Comment 2 Jesse Keating 2007-09-07 19:10:46 UTC
Confirmed.