Bug 691588

Summary: SELinux is preventing /usr/sbin/abrtd "create" access on abrt.socket.
Product: [Fedora] Fedora Reporter: Armel KARERWA <armelka>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 12CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:49292c4f7b5e0a3283513fd63fb93f994ebe7f9c3bfd0cd68d51719dd5910e9d
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-29 11:08:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Armel KARERWA 2011-03-28 22:00:27 UTC
Résumé:

SELinux is preventing /usr/sbin/abrtd "create" access on abrt.socket.

Description détaillée:

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

Informations complémentaires:

Contexte source               unconfined_u:system_r:abrt_t:s0
Contexte cible                unconfined_u:object_r:abrt_var_run_t:s0
Objets du contexte            abrt.socket [ sock_file ]
source                        abrtd
Chemin de la source           /usr/sbin/abrtd
Port                          <Inconnu>
Hôte                         (removed)
Paquetages RPM source         abrt-1.1.13-1.fc12
Paquetages RPM cible          
Politique RPM                 selinux-policy-3.6.32-127.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.5-127.fc12.x86_64 #1 SMP Sat Nov 7 21:11:14
                              EST 2009 x86_64 x86_64
Compteur d'alertes            1
Première alerte              lun. 28 mars 2011 02:01:38 CAT
Dernière alerte              lun. 28 mars 2011 02:01:38 CAT
ID local                      a31e9d0e-15d2-47b1-8525-2f40eb201e4d
Numéros des lignes           

Messages d'audit bruts        

node=(removed) type=AVC msg=audit(1301270498.337:289): avc:  denied  { create } for  pid=7920 comm="abrtd" name="abrt.socket" scontext=unconfined_u:system_r:abrt_t:s0 tcontext=unconfined_u:object_r:abrt_var_run_t:s0 tclass=sock_file

node=(removed) type=SYSCALL msg=audit(1301270498.337:289): arch=c000003e syscall=49 success=yes exit=0 a0=8 a1=7fffb344df20 a2=6e a3=7fffb344dcb0 items=0 ppid=7919 pid=7920 auid=503 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=9 comm="abrtd" exe="/usr/sbin/abrtd" subj=unconfined_u:system_r:abrt_t:s0 key=(null)



Hash String generated from  selinux-policy-3.6.32-127.fc12,catchall,abrtd,abrt_t,abrt_var_run_t,sock_file,create
audit2allow suggests:

#============= abrt_t ==============
allow abrt_t abrt_var_run_t:sock_file create;

Comment 1 Armel KARERWA 2011-03-28 22:30:39 UTC
I was running the update ofmy abrt service.

Comment 2 Miroslav Grepl 2011-03-29 11:08:50 UTC
F12 is no longer supported. Please update to newer version of Fedora.

Anyways,
you can allow it using

# grep abrt /var/log/audit/audit.log | audit2allow -M myabrt
# semodule -i myabrt.pp