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.

Bug 605621

Summary: SELinux is preventing /usr/bin/avahi-browse "lock" access on /usr/lib64/avahi/service-types.db.
Product: Red Hat Enterprise Linux 6 Reporter: Matěj Cepl <mcepl>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: cpebenito, mmalik
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:b96eee9c89a0c539506656fae4a4723a2c2441c95f6da2d8a3f74a78ee9b50c5
Fixed In Version: selinux-policy-3.7.19-27.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-10 21:34:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Matěj Cepl 2010-06-18 12:30:15 UTC
Souhrn:

SELinux is preventing /usr/bin/avahi-browse "lock" access on
/usr/lib64/avahi/service-types.db.

Podrobný popis:

[SELinux je v tolerantním režimu. Přístup byl povolen.]

SELinux denied access requested by avahi-browse. It is not expected that this
access is required by avahi-browse and this access may signal an intrusion
attempt. It is also possible that the specific version or configuration of the
application is causing it to require additional access.

Povolení přístupu:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Další informace:

Kontext zdroje                staff_u:staff_r:staff_t:s0-s0:c0.c1023
Kontext cíle                 system_u:object_r:lib_t:s0
Objekty cíle                 /usr/lib64/avahi/service-types.db [ file ]
Zdroj                         avahi-browse
Cesta zdroje                  /usr/bin/avahi-browse
Port                          <Neznámé>
Počítač                    (removed)
RPM balíčky zdroje          avahi-tools-0.6.25-6.el6
RPM balíčky cíle           avahi-0.6.25-6.el6
RPM politiky                  selinux-policy-3.7.19-25.el6
Selinux povolen               True
Typ politiky                  targeted
Vynucovací režim            Permissive
Název zásuvného modulu     catchall
Název počítače            (removed)
Platforma                     Linux (removed) 2.6.32-33.el6.x86_64 #1
                              SMP Thu Jun 3 13:00:03 EDT 2010 x86_64 x86_64
Počet upozornění           1
Poprvé viděno               Pá 18. červen 2010, 14:29:33 CEST
Naposledy viděno             Pá 18. červen 2010, 14:29:33 CEST
Místní ID                   8dba7b32-fcb4-47dd-832c-4957af03a0c2
Čísla řádků              

Původní zprávy auditu      

node=(removed) type=AVC msg=audit(1276864173.367:68304): avc:  denied  { lock } for  pid=10524 comm="avahi-browse" path="/usr/lib64/avahi/service-types.db" dev=dm-1 ino=693787 scontext=staff_u:staff_r:staff_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1276864173.367:68304): arch=c000003e syscall=72 success=yes exit=0 a0=8 a1=6 a2=7fff093b94f0 a3=fffffffffffffff0 items=0 ppid=10435 pid=10524 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=pts7 ses=1 comm="avahi-browse" exe="/usr/bin/avahi-browse" subj=staff_u:staff_r:staff_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  catchall,avahi-browse,staff_t,lib_t,file,lock
audit2allow suggests:

#============= staff_t ==============
allow staff_t lib_t:file lock;

Comment 2 RHEL Program Management 2010-06-18 12:43:21 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 3 Daniel Walsh 2010-06-18 14:14:46 UTC
Miroslav, can you add

	libs_read_lib_files(domain)


to domain.te

Comment 4 Miroslav Grepl 2010-06-22 06:34:43 UTC
Fixed in selinux-policy-3.7.19-27.el6.noarch

Comment 7 releng-rhel@redhat.com 2010-11-10 21:34:44 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.