Bug 737837

Summary: systemd-tmpfiles: Failed to set security context ... for /var: Permission denied
Product: [Fedora] Fedora Reporter: Mads Kiilerich <mads>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, harald, johannbg, kay, lemenkov, lpoetter, metherid, mgrepl, mschmidt, notting, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: selinux-policy-3.10.0-28.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-15 11:14:24 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Description Flags
dmesg none

Description Mads Kiilerich 2011-09-13 04:44:37 EDT
On a system (just installed from f15 livecd, updated, yum reposynced to f16, enabled -testing, and updated kernel from koji) I get several lines with:

[   25.269536] systemd-tmpfiles[729]: Failed to set security context system_u:object_r:var_t:s0 for /var: Permission denied
[   25.282056] systemd-tmpfiles[729]: Failed to set security context system_u:object_r:var_run_t:s0 for /run: Permission denied

I have
drwxr-xr-x. root root system_u:object_r:var_t:s0       /var
drwxr-xr-x. root root system_u:object_r:var_run_t:s0   /run

With bug 733086 fixed this seems to be the primary issue in this area on this machine. 

Comment 1 Mads Kiilerich 2011-09-13 04:50:21 EDT
Created attachment 522875 [details]
Comment 2 Daniel Walsh 2011-09-13 10:29:06 EDT
Since does not happen in permissive mode it is also an SELinux problem.
Comment 3 Fedora Update System 2011-09-13 16:41:50 EDT
selinux-policy-3.10.0-28.fc16 has been submitted as an update for Fedora 16.
Comment 4 Fedora Update System 2011-09-13 18:20:52 EDT
Package selinux-policy-3.10.0-28.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-28.fc16'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
Comment 5 Fedora Update System 2011-09-15 11:13:47 EDT
selinux-policy-3.10.0-28.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.