Bug 1002242

Summary: SELinux is preventing /usr/bin/touch from 'write' accesses on the file shorewall.
Product: [Fedora] Fedora Reporter: Ashley <ashley>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: dominick.grift, dwalsh, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:48c69cd34c0314962100c2e2f508192dfd66f69c511d32f3b40dd34784857929
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-28 20:09:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Ashley 2013-08-28 17:22:37 UTC
Description of problem:
SELinux is preventing /usr/bin/touch from 'write' accesses on the file shorewall.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that touch should be allowed write access on the shorewall 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 touch /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:shorewall_t:s0
Target Context                system_u:object_r:var_lock_t:s0
Target Objects                shorewall [ file ]
Source                        touch
Source Path                   /usr/bin/touch
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           coreutils-8.21-11.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-73.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.9.5-301.fc19.x86_64 #1 SMP Tue
                              Jun 11 19:39:38 UTC 2013 x86_64 x86_64
Alert Count                   2
First Seen                    2013-08-28 16:53:42 SAST
Last Seen                     2013-08-28 16:53:42 SAST
Local ID                      adb18a9d-5fe6-4908-a531-9d07598c82db

Raw Audit Messages
type=AVC msg=audit(1377701622.413:1184): avc:  denied  { write } for  pid=7598 comm="touch" name="shorewall" dev="tmpfs" ino=76036 scontext=system_u:system_r:shorewall_t:s0 tcontext=system_u:object_r:var_lock_t:s0 tclass=file


type=SYSCALL msg=audit(1377701622.413:1184): arch=x86_64 syscall=utimensat success=no exit=EACCES a0=ffffffffffffff9c a1=7fff56ce1564 a2=0 a3=0 items=0 ppid=7513 pid=7598 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=pts3 comm=touch exe=/usr/bin/touch subj=system_u:system_r:shorewall_t:s0 key=(null)

Hash: touch,shorewall_t,var_lock_t,file,write

Additional info:
reporter:       libreport-2.1.5
hashmarkername: setroubleshoot
kernel:         3.9.5-301.fc19.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-08-28 20:09:42 UTC
Looks like this file is mislabeld

restorecon -R -v /var/lock/