Bug 667956

Summary: SELinux is preventing /usr/bin/k3b from using the 'execstack' accesses on a process.
Product: [Fedora] Fedora Reporter: Pavel Alexeev <pahan>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 14CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:0074275f8962e386e7c55b950a958e0f900f03f4dc9038152c9e394dff16a771
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-07 14:05:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pavel Alexeev 2011-01-07 12:19:13 UTC
SELinux is preventing /usr/bin/k3b from using the 'execstack' accesses on a process.

*****  Plugin allow_execstack (53.1 confidence) suggests  ********************

If you do not think /usr/bin/k3b should need to map stack memory that is both writable and executable.
Then you need to report a bug. This is a potentially dangerous access.
Do
contact your security administrator and report this issue.

*****  Plugin catchall_boolean (42.6 confidence) suggests  *******************

If you want to allow unconfined executables to make their stack executable.  This should never, ever be necessary. Probably indicates a badly coded executable, but could indicate an attack. This executable should be reported in bugzilla
Then you must tell SELinux about this by enabling the 'allow_execstack' boolean.
Do
setsebool -P allow_execstack 1

*****  Plugin catchall (5.76 confidence) suggests  ***************************

If you believe that k3b should be allowed execstack access on processes labeled unconfined_t 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 /usr/bin/k3b /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Objects                Unknown [ process ]
Source                        k3b
Source Path                   /usr/bin/k3b
Port                          <Неизвестно>
Host                          (removed)
Source RPM Packages           k3b-2.0.1-1.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-19.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.37-0.rc6.git0.1.fc15.i686.PAE #1
                              SMP Thu Dec 16 15:49:01 UTC 2010 i686 i686
Alert Count                   1
First Seen                    Птн 07 Янв 2011 15:14:27
Last Seen                     Птн 07 Янв 2011 15:14:27
Local ID                      8aa50890-3e59-4fa7-a589-726d68054c51

Raw Audit Messages
type=AVC msg=audit(1294402467.293:18496): avc:  denied  { execstack } for  pid=16302 comm="k3b" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=process

k3b,unconfined_t,unconfined_t,process,execstack
type=SYSCALL msg=audit(1294402467.293:18496): arch=i386 syscall=mprotect success=yes exit=0 a0=bfcd9000 a1=1000 a2=1000007 a3=bfcd8184 items=0 ppid=16296 pid=16302 auid=501 uid=501 gid=501 euid=501 suid=501 fsuid=501 egid=501 sgid=501 fsgid=501 tty=(none) ses=1 comm=k3b exe=/usr/bin/k3b subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)
k3b,unconfined_t,unconfined_t,process,execstack

#============= unconfined_t ==============
#!!!! This avc can be allowed using the boolean 'allow_execstack'

allow unconfined_t self:process execstack;

Comment 1 Miroslav Grepl 2011-01-07 14:05:25 UTC

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