View Issue Details

IDProjectCategoryView StatusLast Update
0015156CentOS-7selinux-policypublic2018-08-09 14:06
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
PlatformOSOS Version7
Product Version 
Target VersionFixed in Version 
Summary0015156: SELinux is preventing /usr/sbin/lsof from 'sys_ptrace' accesses on the cap_userns Unknown.
DescriptionDescription of problem:
SELinux is preventing /usr/sbin/lsof from 'sys_ptrace' accesses on the cap_userns Unknown.

***** Plugin catchall (100. confidence) suggests **************************

If you believe that lsof should be allowed sys_ptrace access on the Unknown cap_userns by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
allow this access for now by executing:
# ausearch -c 'lsof' --raw | audit2allow -M my-lsof
# semodule -i my-lsof.pp

Additional Information:
Source Context system_u:system_r:system_cronjob_t:s0-s0:c0.c1023
Target Context system_u:system_r:system_cronjob_t:s0-s0:c0.c1023
Target Objects Unknown [ cap_userns ]
Source lsof
Source Path /usr/sbin/lsof
Port <Unknown>
Host (removed)
Source RPM Packages lsof-4.87-5.el7.x86_64
Target RPM Packages
Policy RPM selinux-policy-3.13.1-192.el7_5.4.noarch
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Host Name (removed)
Platform Linux (removed) 4.17.11-1.el7.elrepo.x86_64 #1 SMP
                              Sat Jul 28 09:33:09 EDT 2018 x86_64 x86_64
Alert Count 10
First Seen 2018-08-09 03:57:08 IST
Last Seen 2018-08-09 03:57:08 IST
Local ID e99cf86d-1aa4-4226-8b98-e4a4ba834a16

Raw Audit Messages
type=AVC msg=audit(1533767228.951:1647): avc: denied { sys_ptrace } for pid=25647 comm="lsof" capability=19 scontext=system_u:system_r:system_cronjob_t:s0-s0:c0.c1023 tcontext=system_u:system_r:system_cronjob_t:s0-s0:c0.c1023 tclass=cap_userns permissive=0

type=SYSCALL msg=audit(1533767228.951:1647): arch=x86_64 syscall=readlink success=no exit=EACCES a0=1228390 a1=7ffce20f41f0 a2=1000 a3=76 items=0 ppid=12271 pid=25647 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=135 comm=lsof exe=/usr/sbin/lsof subj=system_u:system_r:system_cronjob_t:s0-s0:c0.c1023 key=(null)

Hash: lsof,system_cronjob_t,system_cronjob_t,cap_userns,sys_ptrace

Version-Release number of selected component:
Additional Informationreporter: libreport-
hashmarkername: setroubleshoot
kernel: 4.17.11-1.el7.elrepo.x86_64
reproducible: Not sure how to reproduce the problem
type: libreport
TagsNo tags attached.


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2018-08-09 14:06 umar New Issue