Bug 521463

Summary: setroubleshoot: SELinux is preventing abrtd "lock" access on /var/lib/rpm/Packages.
Product: [Fedora] Fedora Reporter: Nicolas Mailhot <nicolas.mailhot>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dwalsh, jkubin, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:86a5c9302c8b7820b0027e80521ba02bebf8c99b525bce04fc2c70719785ad4d
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-06 19:28:25 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 Nicolas Mailhot 2009-09-06 07:45:00 UTC
The following was filed automatically by setroubleshoot:

Résumé:

SELinux is preventing abrtd "lock" access on /var/lib/rpm/Packages.

Description détaillée:

[abrtd has a permissive type (initrc_t). 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.

Autoriser l'accès:

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.

Informations complémentaires:

Contexte source               system_u:system_r:initrc_t:s0
Contexte cible                system_u:object_r:rpm_var_lib_t:s0
Objets du contexte            /var/lib/rpm/Packages [ file ]
source                        abrtd
Chemin de la source           /usr/sbin/abrtd
Port                          <Inconnu>
Hôte                         (removed)
Paquetages RPM source         abrt-0.0.8.5-1.fc12
Paquetages RPM cible          rpm-4.7.1-4.fc12
Politique RPM                 selinux-policy-3.6.30-2.fc12
Selinux activé               True
Type de politique             targeted
MLS activé                   True
Mode strict                   Enforcing
Nom du plugin                 catchall
Nom de l'hôte                (removed)
Plateforme                    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
Compteur d'alertes            1
Première alerte              dim. 06 sept. 2009 09:42:03 CEST
Dernière alerte              dim. 06 sept. 2009 09:42:03 CEST
ID local                      cd7e436c-c863-4596-b311-b9261b4d755e
Numéros des lignes           

Messages d'audit bruts        

node=(removed) type=AVC msg=audit(1252222923.874:63): avc:  denied  { lock } for  pid=1565 comm="abrtd" path="/var/lib/rpm/Packages" dev=dm-3 ino=26 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(1252222923.874:63): arch=c000003e syscall=72 success=yes exit=0 a0=7 a1=6 a2=7fff34ffe580 a3=7fff34ffe2d0 items=0 ppid=1 pid=1565 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="/usr/sbin/abrtd" subj=system_u:system_r:initrc_t:s0 key=(null)


audit2allow suggests:

#============= initrc_t ==============
allow initrc_t rpm_var_lib_t:file lock;

Comment 1 Daniel Walsh 2009-09-06 19:28:25 UTC
Fixed in selinux-policy-3.6.30-4.fc12.noarch