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   
Whiteboard:
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: ---
Attachments:
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. 

systemd-35-1.fc16.x86_64
dracut-013-8.fc16.noarch
selinux-policy-3.10.0-25.fc16.noarch
libselinux-2.1.5-4.fc16.x86_64
kernel-3.1.0-0.rc6.git0.0.fc16.x86_64
Comment 1 Mads Kiilerich 2011-09-13 04:50:21 EDT
Created attachment 522875 [details]
dmesg
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.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-28.fc16
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:
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-28.fc16
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.