Bug 666819 - SELinux is preventing /bin/touch "write" access on /var/lock/subsys/shorewall.
Summary: SELinux is preventing /bin/touch "write" access on /var/lock/subsys/shor...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 13
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:4f1f8743c2b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-03 10:24 UTC by Doncho Gunchev
Modified: 2011-05-31 07:45 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-31 07:45:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Doncho Gunchev 2011-01-03 10:24:54 UTC
Summary:

SELinux is preventing /bin/touch "write" access on /var/lock/subsys/shorewall.

Detailed Description:

SELinux denied access requested by touch. It is not expected that this access is
required by touch and this access may signal an intrusion attempt. It is also
possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                unconfined_u:system_r:shorewall_t:s0
Target Context                system_u:object_r:var_lock_t:s0
Target Objects                /var/lock/subsys/shorewall [ file ]
Source                        touch
Source Path                   /bin/touch
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           coreutils-8.4-10.fc13
Target RPM Packages           
Policy RPM                    selinux-policy-3.7.19-76.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.34.7-66.fc13.x86_64 #1 SMP Wed Dec 15 07:04:30
                              UTC 2010 x86_64 x86_64
Alert Count                   2
First Seen                    Mon 03 Jan 2011 12:23:57 PM EET
Last Seen                     Mon 03 Jan 2011 12:23:57 PM EET
Local ID                      9345fc6d-b346-4be0-b4bc-9ff55113ce2f
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1294050237.242:61): avc:  denied  { write } for  pid=4340 comm="touch" name="shorewall" dev=dm-1 ino=1400 scontext=unconfined_u:system_r:shorewall_t:s0 tcontext=system_u:object_r:var_lock_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1294050237.242:61): arch=c000003e syscall=280 success=no exit=-13 a0=ffffffffffffff9c a1=7fffecfb6f3f a2=0 a3=0 items=0 ppid=4279 pid=4340 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm="touch" exe="/bin/touch" subj=unconfined_u:system_r:shorewall_t:s0 key=(null)



Hash String generated from  catchall,touch,shorewall_t,var_lock_t,file,write
audit2allow suggests:

#============= shorewall_t ==============
allow shorewall_t var_lock_t:file write;

Comment 1 Doncho Gunchev 2011-01-03 10:31:48 UTC
Also:
#============= shorewall_t ==============
allow shorewall_t var_lock_t:file getattr;
allow shorewall_t var_lock_t:file unlink;
allow shorewall_t var_lock_t:file write;

Comment 2 Daniel Walsh 2011-01-03 20:45:52 UTC
Looks like we need

/var/lock/subsys/shorewall		--	gen_context(system_u:object_r:shorewall_lock_t,s0)

Comment 3 Miroslav Grepl 2011-01-04 14:05:33 UTC
It looks so.

Fixed in selinux-policy-3.7.19-81.fc13

Comment 4 Bug Zapper 2011-05-30 12:14:23 UTC
This message is a reminder that Fedora 13 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 13.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '13'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 13's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 13 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping


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