Bug 676953

Summary: SELinux is preventing /usr/local/Eaton/IntelligentPowerProtector/Eaton-IPP from using the 'execstack' accesses on a process.
Product: [Fedora] Fedora Reporter: Greg Flint <el_gallo_azul>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:80d8a0ca0803d6b3ac2dce97a5a21eaf3cf31a36e70a53dac086dcd9b412f659
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-14 12:51:48 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 Greg Flint 2011-02-12 01:37:46 UTC
SELinux is preventing /usr/local/Eaton/IntelligentPowerProtector/Eaton-IPP from using the 'execstack' accesses on a process.

*****  Plugin catchall_boolean (89.3 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 (11.6 confidence) suggests  ***************************

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

Additional Information:
Source Context                system_u:system_r:initrc_t:s0
Target Context                system_u:system_r:initrc_t:s0
Target Objects                Unknown [ process ]
Source                        Eaton-IPP
Source Path                   /usr/local/Eaton/IntelligentPowerProtector/Eaton-
                              IPP
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-29.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux DellOptiplexGX270.GregFlint
                              2.6.35.11-83.fc14.i686 #1 SMP Mon Feb 7 07:04:18
                              UTC 2011 i686 i686
Alert Count                   1
First Seen                    Sat 12 Feb 2011 10:40:32 CST
Last Seen                     Sat 12 Feb 2011 10:40:32 CST
Local ID                      1db81e1e-dd2f-40c6-b83d-1c422067185b

Raw Audit Messages
type=AVC msg=audit(1297473032.450:11): avc:  denied  { execstack } for  pid=1158 comm="Eaton-IPP" scontext=system_u:system_r:initrc_t:s0 tcontext=system_u:system_r:initrc_t:s0 tclass=process


type=SYSCALL msg=audit(1297473032.450:11): arch=i386 syscall=mprotect success=no exit=EACCES a0=bfed4000 a1=1000 a2=1000007 a3=bfed0b80 items=0 ppid=1157 pid=1158 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=Eaton-IPP exe=/usr/local/Eaton/IntelligentPowerProtector/Eaton-IPP subj=system_u:system_r:initrc_t:s0 key=(null)

Hash: Eaton-IPP,initrc_t,initrc_t,process,execstack

audit2allow

#============= initrc_t ==============
#!!!! This avc is allowed in the current policy

allow initrc_t self:process execstack;

audit2allow -R

#============= initrc_t ==============
#!!!! This avc is allowed in the current policy

allow initrc_t self:process execstack;

Comment 1 Greg Flint 2011-02-12 01:40:04 UTC
Eaton 'Intelligent Power Protector' worked OK when I first installed it (for my Eaton UPS), but when I rebooted and tried to run it again, I couldn't.

Comment 2 Miroslav Grepl 2011-02-14 12:51:48 UTC
Sealert tells me it is allowed

#============= initrc_t ==============
#!!!! This avc is allowed in the current policy

allow initrc_t self:process execstack;

Is there any other AVC msg? Anyways it does not like something what Fedora ships.

Comment 3 Daniel Walsh 2011-02-14 14:07:25 UTC
If this worked for a while and stopped working, it is probably caused by a library you installed.

Look at 

https://bugzilla.redhat.com/show_bug.cgi?id=652297

For a description on how to find the library.