Bug 770010 - SELinux is preventing /sbin/setfiles from 'relabelto' accesses on the lnk_file /usr/local.
Summary: SELinux is preventing /sbin/setfiles from 'relabelto' accesses on the lnk_fil...
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:0fb3f984b0945f1f24868c2adc8...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-23 00:53 UTC by cisco66
Modified: 2012-03-15 15:20 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-15 15:20:36 UTC
Type: ---


Attachments (Terms of Use)

Description cisco66 2011-12-23 00:53:58 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.5-6.fc16.x86_64
reason:         SELinux is preventing /sbin/setfiles from 'relabelto' accesses on the lnk_file /usr/local.
time:           Thu 22 Dec 2011 04:53:31 PM PST

description:
:SELinux is preventing /sbin/setfiles from 'relabelto' accesses on the lnk_file /usr/local.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that setfiles should be allowed relabelto access on the local lnk_file 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 restorecon /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                unconfined_u:unconfined_r:setfiles_t:s0-s0:c0.c102
:                              3
:Target Context                unconfined_u:object_r:systemd_tmpfiles_t:s0
:Target Objects                /usr/local [ lnk_file ]
:Source                        restorecon
:Source Path                   /sbin/setfiles
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           policycoreutils-2.1.4-12.fc16
:Target RPM Packages           filesystem-2.4.44-1.fc16
:Policy RPM                    selinux-policy-3.10.0-64.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux azul.insean.it 3.1.5-6.fc16.x86_64 #1 SMP
:                              Thu Dec 15 16:14:44 UTC 2011 x86_64 x86_64
:Alert Count                   3
:First Seen                    Thu 22 Dec 2011 01:36:06 PM PST
:Last Seen                     Thu 22 Dec 2011 01:37:17 PM PST
:Local ID                      0f43b345-9c2c-4e80-828a-893c31d60c2b
:
:Raw Audit Messages
:type=AVC msg=audit(1324589837.719:130): avc:  denied  { relabelto } for  pid=9548 comm="restorecon" name="local" dev=dm-1 ino=131661 scontext=unconfined_u:unconfined_r:setfiles_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:systemd_tmpfiles_t:s0 tclass=lnk_file
:
:
:type=SYSCALL msg=audit(1324589837.719:130): arch=x86_64 syscall=lsetxattr success=no exit=EACCES a0=7f824dcb2bc0 a1=7f824ce703fb a2=7f824db93e70 a3=2c items=0 ppid=9547 pid=9548 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=2 comm=restorecon exe=/sbin/setfiles subj=unconfined_u:unconfined_r:setfiles_t:s0-s0:c0.c1023 key=(null)
:
:Hash: restorecon,setfiles_t,systemd_tmpfiles_t,lnk_file,relabelto
:
:audit2allow
:
:#============= setfiles_t ==============
:allow setfiles_t systemd_tmpfiles_t:lnk_file relabelto;
:
:audit2allow -R
:
:#============= setfiles_t ==============
:allow setfiles_t systemd_tmpfiles_t:lnk_file relabelto;
:

Comment 1 Daniel Walsh 2011-12-29 18:04:18 UTC
How to you have /usr/local setup?


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