Bug 714135 - SELinux is preventing /usr/sbin/lldpad from 'create' accesses on the shared memory Unknown.
Summary: SELinux is preventing /usr/sbin/lldpad from 'create' accesses on the shared m...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:fca9ad7e91e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-17 12:06 UTC by Frank Murphy
Modified: 2011-06-17 17:50 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-17 17:50:20 UTC
Type: ---


Attachments (Terms of Use)

Description Frank Murphy 2011-06-17 12:06:46 UTC
SELinux is preventing /usr/sbin/lldpad from 'create' accesses on the shared memory Unknown.

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

If you believe that lldpad should be allowed create access on the Unknown shm 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 lldpad /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:lldpad_t:s0
Target Context                system_u:system_r:lldpad_t:s0
Target Objects                Unknown [ shm ]
Source                        lldpad
Source Path                   /usr/sbin/lldpad
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           lldpad-0.9.42-1.fc16
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-29.1.fc16
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              3.0-0.rc3.git0.3.fc16.x86_64 #1 SMP Tue Jun 14
                              17:13:27 UTC 2011 x86_64 x86_64
Alert Count                   4
First Seen                    Thu 16 Jun 2011 11:28:46 IST
Last Seen                     Fri 17 Jun 2011 12:53:03 IST
Local ID                      be40f15d-3f99-4743-84d6-3f8f36ab8645

Raw Audit Messages
type=AVC msg=audit(1308311583.662:14): avc:  denied  { create } for  pid=1234 comm="lldpad" key=1819043126  scontext=system_u:system_r:lldpad_t:s0 tcontext=system_u:system_r:lldpad_t:s0 tclass=shm


type=SYSCALL msg=audit(1308311583.662:14): arch=x86_64 syscall=shmget success=yes exit=0 a0=6c6c6536 a1=1000 a2=780 a3=7fffbee5d300 items=0 ppid=1220 pid=1234 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=lldpad exe=/usr/sbin/lldpad subj=system_u:system_r:lldpad_t:s0 key=(null)

Hash: lldpad,lldpad_t,lldpad_t,shm,create

audit2allow

#============= lldpad_t ==============
allow lldpad_t self:shm create;

audit2allow -R

#============= lldpad_t ==============
allow lldpad_t self:shm create;

Comment 1 Daniel Walsh 2011-06-17 17:50:20 UTC
Fixed in selinux-policy-3.9.16-30.fc16


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