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 15:14:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
dmesg none

Description Mads Kiilerich 2011-09-13 08:44:37 UTC
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 08:50:21 UTC
Created attachment 522875 [details]
dmesg

Comment 2 Daniel Walsh 2011-09-13 14:29:06 UTC
Since does not happen in permissive mode it is also an SELinux problem.

Comment 3 Fedora Update System 2011-09-13 20:41:50 UTC
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 22:20:52 UTC
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 15:13:47 UTC
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.