Bugzilla (bugzilla.redhat.com) will be under maintenance for infrastructure upgrades and will not be available on July 31st between 12:30 AM - 05:30 AM UTC. We appreciate your understanding and patience. You can follow status.redhat.com for details.
Bug 585583 - SELinux is preventing /bin/bash "execute" access on /bin/hostname.
Summary: SELinux is preventing /bin/bash "execute" access on /bin/hostname.
Status: CLOSED DUPLICATE of bug 581303
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: x86_64
OS: Linux
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
Whiteboard: setroubleshoot_trace_hash:d2f18edee27...
Depends On:
TreeView+ depends on / blocked
Reported: 2010-04-24 21:49 UTC by marco
Modified: 2010-04-26 07:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2010-04-26 07:39:15 UTC
Type: ---

Attachments (Terms of Use)

Description marco 2010-04-24 21:49:06 UTC

SELinux is preventing /bin/bash "execute" access on /bin/hostname.

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by shorewall. It is not expected that this
access is required by shorewall 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

Additional Information:

Source Context                system_u:system_r:shorewall_t:s0
Target Context                system_u:object_r:hostname_exec_t:s0
Target Objects                /bin/hostname [ file ]
Source                        shorewall
Source Path                   /bin/bash
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           bash-4.0.35-3.fc12
Target RPM Packages           net-tools-1.60-99.fc12
Policy RPM                    selinux-policy-3.6.32-108.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) #1
                              SMP Mon Apr 5 19:59:38 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Sat 17 Apr 2010 11:27:36 PM CEST
Last Seen                     Sat 17 Apr 2010 11:27:36 PM CEST
Local ID                      919221e1-75f9-4e5b-9276-823186177b10
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1271539656.206:6): avc:  denied  { execute } for  pid=1379 comm="shorewall" name="hostname" dev=sdb2 ino=137476 scontext=system_u:system_r:shorewall_t:s0 tcontext=system_u:object_r:hostname_exec_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1271539656.206:6): arch=c000003e syscall=21 success=yes exit=0 a0=18b9460 a1=1 a2=7fffb602acd0 a3=e items=0 ppid=1369 pid=1379 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="shorewall" exe="/bin/bash" subj=system_u:system_r:shorewall_t:s0 key=(null)

Hash String generated from  catchall,shorewall,shorewall_t,hostname_exec_t,file,execute
audit2allow suggests:

#============= shorewall_t ==============
allow shorewall_t hostname_exec_t:file execute;

Comment 1 Miroslav Grepl 2010-04-26 07:39:15 UTC

*** This bug has been marked as a duplicate of bug 581303 ***

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