Bug 442235

Summary: cron spool doesn't get relabelled on upgrade
Product: [Fedora] Fedora Reporter: Dave Jones <davej>
Component: selinux-policy-targetedAssignee: Daniel Walsh <dwalsh>
Status: CLOSED RAWHIDE QA Contact: Ben Levenson <benl>
Severity: low Docs Contact:
Priority: low    
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: 2008-04-14 16:34:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Dave Jones 2008-04-13 04:27:25 UTC
I yum updated from f8 -> rawhide, and ran an autorelabel afterwards.
After booting, I got this..

inode_doinit_with_dentry: 
context_to_sid(unconfined_u:object_r:unconfined_cron_spool_t:s0) returned 22 for
dev=dm-0 ino=7824314
inode_doinit_with_dentry: 
context_to_sid(unconfined_u:object_r:unconfined_cron_spool_t:s0) returned 22 for
dev=dm-0 ino=7824333

sure enough, the contents of /var/spool/cron/ were system_u:object_r:unlabeled_t
Running restorecon on them, or even just rewriting them with crontab -e causes
them to be correctly labelled as unconfined_u:object_r:cron_spool_t

Comment 1 Daniel Walsh 2008-04-14 16:34:30 UTC
Fixed in selinux-policy-3.3.1-35.fc9