Bug 191447

Summary: selinux ate my X font server.
Product: [Fedora] Fedora Reporter: Dave Jones <davej>
Component: selinux-policy-targetedAssignee: Daniel Walsh <dwalsh>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: pfrields
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: 2006-07-16 01:20:27 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:

Description Dave Jones 2006-05-12 02:18:07 UTC
X won't start up with the latest rawhide, as the font server gets prevented from
starting..

type=AVC msg=audit(1147399778.490:11): avc:  denied  { getattr } for  pid=2265
comm="xfs" name=".font-unix" dev=dm-0 ino=17432587
scontext=system_u:system_r:xfs_t:s0 tcontext=system_u:object_r:initrc_tmp_t:s0
tclass=dir
type=AVC msg=audit(1147399951.366:22): avc:  denied  { getattr } for  pid=2761
comm="xfs" name=".font-unix" dev=dm-0 ino=17432587
scontext=user_u:system_r:xfs_t:s0 tcontext=user_u:object_r:initrc_tmp_t:s0
tclass=dir
type=AVC msg=audit(1147399989.671:24): avc:  denied  { getattr } for  pid=2937
comm="xfs" name=".font-unix" dev=dm-0 ino=17432579
scontext=user_u:system_r:xfs_t:s0 tcontext=user_u:object_r:initrc_tmp_t:s0
tclass=dir
type=AVC msg=audit(1147399989.671:25): avc:  denied  { search } for  pid=2937
comm="xfs" name=".font-unix" dev=dm-0 ino=17432579
scontext=user_u:system_r:xfs_t:s0 tcontext=user_u:object_r:initrc_tmp_t:s0
tclass=dir
type=AVC msg=audit(1147399989.671:26): avc:  denied  { write } for  pid=2937
comm="xfs" name=".font-unix" dev=dm-0 ino=17432579
scontext=user_u:system_r:xfs_t:s0 tcontext=user_u:object_r:initrc_tmp_t:s0
tclass=dir
type=AVC msg=audit(1147399989.671:26): avc:  denied  { add_name } for  pid=2937
comm="xfs" name="fs7100" scontext=user_u:system_r:xfs_t:s0
tcontext=user_u:object_r:initrc_tmp_t:s0 tclass=dir
type=AVC msg=audit(1147399989.671:26): avc:  denied  { create } for  pid=2937
comm="xfs" name="fs7100" scontext=user_u:system_r:xfs_t:s0
tcontext=user_u:object_r:initrc_tmp_t:s0 tclass=sock_file

Comment 1 Daniel Walsh 2006-05-12 15:25:01 UTC
What does 

matchpathcon  /tmp/.font-unix

Show?

Comment 2 Dave Jones 2006-05-13 02:48:49 UTC
file_contexts:  invalid context system_u:object_r:xfs_tmp_t:s0
matchpathcon:  matchpathcon(/tmp/.font-unix) failed


Comment 3 Daniel Walsh 2006-06-16 01:38:34 UTC
Are you still seeing this problem?  Looks like the /tmp/.font-unix directory was
mislabeled.  Should be labeled xfs_tmp_t