Bug 130421

Summary: should run "restorecon $FONT_UNIX_DIR" for SE Linux
Product: [Fedora] Fedora Reporter: Russell Coker <russell>
Component: xorg-x11Assignee: X/OpenGL Maintenance List <xgl-maint>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: leonard-rh-bugzilla
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-09-15 02:49:43 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 130887, 131774    

Description Russell Coker 2004-08-20 08:54:51 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.3; Linux) (KHTML, like Gecko)

Description of problem:
After creating $FONT_UNIX_DIR the start script should run:
text -s /sbin/restorecon && /sbin/restorecon $FONT_UNIX_DIR

This will set the SE Linux context of the new directory to the correct type.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
Boot SE Linux and run "ls -ldZ /tmp/.font-unix", observe that the context is system_u:object_r:initrc_tmp_t not system_u:object_r:xfs_tmp_t .

Additional info:
Comment 1 Mike A. Harris 2004-09-15 02:49:43 EDT
Added to 6.8.0-5 in CVS, will appear in rawhide after FC3t2.
Comment 2 Mike A. Harris 2004-09-15 17:59:21 EDT
*** Bug 130969 has been marked as a duplicate of this bug. ***
Comment 3 Mike A. Harris 2004-09-15 18:02:41 EDT
I've updated the fix for this to move the call to restorecon down
after the chmod/chown as the patch in bug 130969 does, in case
chmod/chown cause problems after restorecon, just to be safe.

This new fix will be in 6.8.0-6