Bug 521774

Summary: setroubleshoot: SELinux is preventing abrtd "read write" access on /var/lib/rpm/__db.001.
Product: [Fedora] Fedora Reporter: Matěj Cepl <mcepl>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dwalsh, jkubin, mcepl, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:6bcd2927e6113d839c9a387f89c9a50e9e97843a73595429afe1b07c08dcca68
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-08 14:41: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 2009-09-08 09:42:36 UTC
The following was filed automatically by setroubleshoot:

Souhrn:

SELinux is preventing abrtd "read write" access on /var/lib/rpm/__db.001.

Podrobný popis:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by abrtd. It is not expected that this access is
required by abrtd 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://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Please file a bug
report (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi) against this package.

Další informace:

Kontext zdroje                system_u:system_r:initrc_t:s0
Kontext cíle                 system_u:object_r:rpm_var_lib_t:s0
Objekty cíle                 /var/lib/rpm/__db.001 [ file ]
Zdroj                         abrtd
Cesta zdroje                  /usr/sbin/abrtd (deleted)
Port                          <Neznámé>
Počítač                    (removed)
RPM balíčky zdroje          
RPM balíčky cíle           rpm-4.7.1-4.fc12
RPM politiky                  selinux-policy-3.6.30-2.fc12
Selinux povolen               True
Typ politiky                  targeted
MLS povoleno                  True
Vynucovací režim            Permissive
Název zásuvného modulu     catchall
Název počítače            (removed)
Platforma                     Linux (removed) 2.6.31-0.204.rc9.fc12.x86_64 #1 SMP
                              Sat Sep 5 20:45:55 EDT 2009 x86_64 x86_64
Počet upozornění           10
Poprvé viděno               Po 7. září 2009, 16:25:00 CEST
Naposledy viděno             Po 7. září 2009, 21:29:23 CEST
Místní ID                   c2166174-6357-4d8e-84f6-1cb3cc67c4dc
Čísla řádků              

Původní zprávy auditu      

node=(removed) type=AVC msg=audit(1252351763.120:539): avc:  denied  { read write } for  pid=1588 comm="abrtd" name="__db.001" dev=dm-1 ino=549 scontext=system_u:system_r:initrc_t:s0 tcontext=system_u:object_r:rpm_var_lib_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1252351763.120:539): avc:  denied  { open } for  pid=1588 comm="abrtd" name="__db.001" dev=dm-1 ino=549 scontext=system_u:system_r:initrc_t:s0 tcontext=system_u:object_r:rpm_var_lib_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1252351763.120:539): arch=c000003e syscall=2 success=yes exit=0 a0=206b8f0 a1=2 a2=0 a3=0 items=0 ppid=1 pid=1588 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="abrtd" exe=2F7573722F7362696E2F6162727464202864656C6574656429 subj=system_u:system_r:initrc_t:s0 key=(null)


audit2allow suggests:

#============= initrc_t ==============
allow initrc_t rpm_var_lib_t:file { read write open };

Comment 1 Daniel Walsh 2009-09-08 14:41:44 UTC

*** This bug has been marked as a duplicate of bug 521775 ***