Bug 819328 - SELinux is preventing /bin/systemd-tmpfiles from 'setattr' accesses on the directory linux.
SELinux is preventing /bin/systemd-tmpfiles from 'setattr' accesses on the di...
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
16
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
abrt_hash:fcf0ab2c7a62ec5494d5bcd6c2a...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-06 12:24 EDT by Michele
Modified: 2012-05-07 05:29 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-05-07 05:29:51 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Michele 2012-05-06 12:24:54 EDT
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.3.2-6.fc16.x86_64
reason:         SELinux is preventing /bin/systemd-tmpfiles from 'setattr' accesses on the directory linux.
time:           dom 06 mag 2012 18:24:43 CEST

description:
:SELinux is preventing /bin/systemd-tmpfiles from 'setattr' accesses on the directory linux.
:
:*****  Plugin catchall_labels (83.8 confidence) suggests  ********************
:
:If you want to allow systemd-tmpfiles to have setattr access on the linux directory
:Then you need to change the label on linux
:Do
:# semanage fcontext -a -t FILE_TYPE 'linux'
:where FILE_TYPE is one of the following: man_t, var_auth_t, tmp_t, tmpfs_t, config_home_t, lockfile, pidfile, tmpfile, sandbox_file_t, httpd_cache_t, faillog_t. 
:Then execute: 
:restorecon -v 'linux'
:
:
:*****  Plugin catchall (17.1 confidence) suggests  ***************************
:
:If you believe that systemd-tmpfiles should be allowed setattr access on the linux directory by default.
:Then you should report this as a bug.
:You can generate a local policy module to allow this access.
:Do
:allow this access for now by executing:
:# grep systemd-tmpfile /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:systemd_tmpfiles_t:s0
:Target Context                system_u:object_r:usr_t:s0
:Target Objects                linux [ dir ]
:Source                        systemd-tmpfile
:Source Path                   /bin/systemd-tmpfiles
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           systemd-units-37-19.fc16.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-84.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.2-6.fc16.x86_64 #1
:                              SMP Sat Apr 21 12:43:20 UTC 2012 x86_64 x86_64
:Alert Count                   14
:First Seen                    dom 06 mag 2012 18:15:45 CEST
:Last Seen                     dom 06 mag 2012 18:15:45 CEST
:Local ID                      e7483843-0a6a-4793-b098-217d8674a21b
:
:Raw Audit Messages
:type=AVC msg=audit(1336320945.769:92): avc:  denied  { setattr } for  pid=2520 comm="systemd-tmpfile" name="linux" dev="dm-1" ino=1206327 scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=system_u:object_r:usr_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1336320945.769:92): arch=x86_64 syscall=utimensat success=no exit=EACCES a0=6 a1=0 a2=7fffb9830940 a3=0 items=0 ppid=1 pid=2520 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=systemd-tmpfile exe=/bin/systemd-tmpfiles subj=system_u:system_r:systemd_tmpfiles_t:s0 key=(null)
:
:Hash: systemd-tmpfile,systemd_tmpfiles_t,usr_t,dir,setattr
:
:audit2allow
:
:#============= systemd_tmpfiles_t ==============
:allow systemd_tmpfiles_t usr_t:dir setattr;
:
:audit2allow -R
:
:#============= systemd_tmpfiles_t ==============
:allow systemd_tmpfiles_t usr_t:dir setattr;
:
Comment 1 Miroslav Grepl 2012-05-07 05:29:51 EDT
It looks you moved the "linux" directory from /usr to /tmp. 


You will need to change labeling

# chcon -R -t user_tmp_t /tmp/linux

or remove this directory.

Note You need to log in before you can comment on or make changes to this bug.