Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem: Selinux blocks running udevd (start_udev) and reported AVCs when unconfined and unlabelednet selinux modules are disabled. The pest passes without any AVC when both modules are enabled. AVCs in permissive mode: ---- time->Wed Sep 12 08:34:44 2012 type=PATH msg=audit(1347431684.203:5228): item=2 name=(null) inode=327047 dev=08:03 mode=0100755 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:ld_so_t:s0 type=PATH msg=audit(1347431684.203:5228): item=1 name=(null) inode=156823 dev=08:03 mode=0100755 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:shell_exec_t:s0 type=PATH msg=audit(1347431684.203:5228): item=0 name="/sbin/start_udev" inode=6076 dev=08:03 mode=0100755 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:udev_exec_t:s0 type=CWD msg=audit(1347431684.203:5228): cwd="/" type=EXECVE msg=audit(1347431684.203:5228): argc=3 a0="/bin/bash" a1="/sbin/start_udev" type=EXECVE msg=audit(1347431684.203:5228): argc=4 a0="/bin/bash" a1="/sbin/start_udev" type=SYSCALL msg=audit(1347431684.203:5228): arch=c000003e syscall=59 success=yes exit=0 a0=7fffa993018a a1=7fffa9930360 a2=7fffa9930380 a3=7fffa992ffc0 items=3 ppid=20131 pid=20132 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts6 ses=3 comm="start_udev" exe="/bin/bash" subj=system_u:system_r:initrc_t:s0 key=(null) type=AVC msg=audit(1347431684.203:5228): avc: denied { entrypoint } for pid=20132 comm="run_init" path="/sbin/start_udev" dev=sda3 ino=6076 scontext=system_u:system_r:initrc_t:s0 tcontext=system_u:object_r:udev_exec_t:s0 tclass=file ---- time->Wed Sep 12 08:34:44 2012 type=PATH msg=audit(1347431684.251:5229): item=0 name="/proc/kcore" inode=4026532037 dev=00:03 mode=0100400 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:proc_kcore_t:s0 type=CWD msg=audit(1347431684.251:5229): cwd="/" type=SYSCALL msg=audit(1347431684.251:5229): arch=c000003e syscall=4 success=yes exit=0 a0=7fff8dd4c608 a1=7fff8dd4bb40 a2=7fff8dd4bb40 a3=a items=1 ppid=20132 pid=20153 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts6 ses=3 comm="ln" exe="/bin/ln" subj=system_u:system_r:initrc_t:s0 key=(null) type=AVC msg=audit(1347431684.251:5229): avc: denied { getattr } for pid=20153 comm="ln" path="/proc/kcore" dev=proc ino=4026532037 scontext=system_u:system_r:initrc_t:s0 tcontext=system_u:object_r:proc_kcore_t:s0 tclass=file Version-Release number of selected component (if applicable): udev-147-2.42.el6.x86_64 selinux-policy-3.7.19-161.el6.noarch selinux-policy-minimum-3.7.19-161.el6.noarch selinux-policy-targeted-3.7.19-161.el6.noarch selinux-policy-mls-3.7.19-161.el6.noarch selinux-policy-doc-3.7.19-161.el6.noarch How reproducible: always Steps to Reproduce: 1. semodule -d unconfined; semoudle -d unlabelednet 2. killall udevd 3. run_init start_udev Actual results: execvp: Permission denied and AVCs are reported Expected results: udevd is started without AVCs