Bug 810032 - SELinux is preventing /usr/bin/bash from 'execute_no_trans' accesses on the file /usr/bin/mount.
Summary: SELinux is preventing /usr/bin/bash from 'execute_no_trans' accesses on the f...
Keywords:
Status: CLOSED DUPLICATE of bug 809832
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:9d835617592a9f361cc42d3dcf8...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-04 23:30 UTC by Michal Ambroz
Modified: 2012-04-04 23:53 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-04 23:53:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michal Ambroz 2012-04-04 23:30:10 UTC
libreport version: 2.0.10
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.3.0-8.fc17.x86_64
time:           Thu 05 Apr 2012 01:29:54 AM CEST

description:
:SELinux is preventing /usr/bin/bash from 'execute_no_trans' accesses on the file /usr/bin/mount.
:
:*****  Plugin leaks (86.2 confidence) suggests  ******************************
:
:If you want to ignore bash trying to execute_no_trans access the mount file, because you believe it should not need this access.
:Then you should report this as a bug.  
:You can generate a local policy module to dontaudit this access.
:Do
:# grep /usr/bin/bash /var/log/audit/audit.log | audit2allow -D -M mypol
:# semodule -i mypol.pp
:
:*****  Plugin catchall (14.7 confidence) suggests  ***************************
:
:If you believe that bash should be allowed execute_no_trans access on the mount 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 script.sh /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:tuned_t:s0
:Target Context                system_u:object_r:mount_exec_t:s0
:Target Objects                /usr/bin/mount [ file ]
:Source                        script.sh
:Source Path                   /usr/bin/bash
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           bash-4.2.24-1.fc17.x86_64
:Target RPM Packages           util-linux-2.21.1-1.fc17.x86_64
:Policy RPM                    selinux-policy-3.10.0-110.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.0-8.fc17.x86_64 #1 SMP
:                              Thu Mar 29 18:18:26 UTC 2012 x86_64 x86_64
:Alert Count                   4
:First Seen                    Thu 05 Apr 2012 01:29:39 AM CEST
:Last Seen                     Thu 05 Apr 2012 01:29:39 AM CEST
:Local ID                      cd0e6539-e08e-42f3-bb63-d1c4998bd4c5
:
:Raw Audit Messages
:type=AVC msg=audit(1333582179.989:1888): avc:  denied  { execute_no_trans } for  pid=19999 comm="script.sh" path="/usr/bin/mount" dev="dm-0" ino=190482 scontext=system_u:system_r:tuned_t:s0 tcontext=system_u:object_r:mount_exec_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1333582179.989:1888): arch=x86_64 syscall=execve success=no exit=EACCES a0=1759b90 a1=1753000 a2=1737ea0 a3=28 items=0 ppid=19915 pid=19999 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=script.sh exe=/usr/bin/bash subj=system_u:system_r:tuned_t:s0 key=(null)
:
:Hash: script.sh,tuned_t,mount_exec_t,file,execute_no_trans
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:

Comment 1 Michal Ambroz 2012-04-04 23:53:35 UTC
Should be probably solved together with other events triggered by 
"tuned-adm profile something".

Marking as duplicate of 809832.

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


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