Bug 825452 - SELinux is preventing /root/rpmbuild/BUILD/php-5.4.3/build-fpm/conftest from using the 'ptrace' accesses on a process.
SELinux is preventing /root/rpmbuild/BUILD/php-5.4.3/build-fpm/conftest from ...
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
17
i686 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
abrt_hash:ac17b788d9c9c6ae05efdbb02de...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-26 08:16 EDT by Mikhail
Modified: 2012-05-28 03:42 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-05-28 03:42:07 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Mikhail 2012-05-26 08:16:09 EDT
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.3.7-1.fc17.i686.PAE
time:           Сб. 26 мая 2012 18:15:56

description:
:SELinux is preventing /root/rpmbuild/BUILD/php-5.4.3/build-fpm/conftest from using the 'ptrace' accesses on a process.
:
:*****  Plugin catchall_boolean (89.3 confidence) suggests  *******************
:
:If you want to allow sysadm to debug or ptrace all processes.
:Then you must tell SELinux about this by enabling the 'deny_ptrace' boolean.You can read 'unconfined_selinux' man page for more details.
:Do
:setsebool -P deny_ptrace 0
:
:*****  Plugin catchall (11.6 confidence) suggests  ***************************
:
:If you believe that conftest should be allowed ptrace 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 conftest /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                 [ process ]
:Source                        conftest
:Source Path                   /root/rpmbuild/BUILD/php-5.4.3/build-fpm/conftest
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-125.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.7-1.fc17.i686.PAE #1 SMP Mon May 21
:                              22:42:05 UTC 2012 i686 i686
:Alert Count                   1
:First Seen                    Сб. 26 мая 2012 18:15:18
:Last Seen                     Сб. 26 мая 2012 18:15:18
:Local ID                      4e86fca3-405f-40a8-a002-51e7afbf7648
:
:Raw Audit Messages
:type=AVC msg=audit(1338034518.431:339): avc:  denied  { ptrace } for  pid=391 comm="conftest" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=process
:
:
:type=SYSCALL msg=audit(1338034518.431:339): arch=i386 syscall=ptrace success=no exit=EACCES a0=10 a1=188 a2=0 a3=0 items=0 ppid=390 pid=391 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts4 ses=2 comm=conftest exe=/root/rpmbuild/BUILD/php-5.4.3/build-fpm/conftest subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)
:
:Hash: conftest,unconfined_t,unconfined_t,process,ptrace
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:
Comment 1 Miroslav Grepl 2012-05-28 03:42:07 EDT
You can allow it using

# setsebool deny_ptrace 1

or make it default by 

setsebool -P deny_ptrace 0

which we have in new F17 installations by default.

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