Bug 606248 - avc: denied { unlink } for ... comm="abrtd" name="abrt.socket" ...
avc: denied { unlink } for ... comm="abrtd" name="abrt.socket" ...
Status: CLOSED CURRENTRELEASE
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: selinux-policy (Show other bugs)
6.0
All Linux
high Severity high
: rc
: ---
Assigned To: Miroslav Grepl
Milos Malik
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-06-21 04:37 EDT by Milos Malik
Modified: 2017-04-19 09:35 EDT (History)
5 users (show)

See Also:
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 16:34:47 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Milos Malik 2010-06-21 04:37:42 EDT
Description of problem:


Version-Release number of selected component (if applicable):
selinux-policy-3.7.19-26.el6
abrt-1.1.6-1.el6

How reproducible:
always

Steps to Reproduce:
1) run the following test:
/CoreOS/selinux-policy/Regression/bz579998-abrtd-cannot-read-sosreport-files
2) search for new AVCs:
----
time->Mon Jun 21 04:16:41 2010
type=SYSCALL msg=audit(1277108201.766:110): arch=40000003 syscall=10 success=no exit=-13 a0=8067876 a1=bfb8131e a2=8 a3=6e items=0 ppid=9824 pid=9825 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=13 comm="abrtd" exe="/usr/sbin/abrtd" subj=unconfined_u:system_r:abrt_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1277108201.766:110): avc:  denied  { unlink } for  pid=9825 comm="abrtd" name="abrt.socket" dev=sda3 ino=139132 scontext=unconfined_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_run_t:s0 tclass=sock_file
----
time->Mon Jun 21 04:16:57 2010
type=SYSCALL msg=audit(1277108217.354:112): arch=40000003 syscall=10 success=no exit=-13 a0=8067876 a1=bfbf376e a2=9 a3=6e items=0 ppid=9865 pid=9866 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:abrt_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1277108217.354:112): avc:  denied  { unlink } for  pid=9866 comm="abrtd" name="abrt.socket" dev=sda3 ino=139132 scontext=system_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_run_t:s0 tclass=sock_file
----

Actual results:
2 AVCs

Expected results:
no AVCs
Comment 2 RHEL Product and Program Management 2010-06-21 05:03:20 EDT
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 6 Daniel Walsh 2010-06-21 09:24:04 EDT
Why isn't this being created in /var/run/abrt/?
Comment 7 Miroslav Grepl 2010-06-21 09:31:03 EDT
(In reply to comment #6)
> Why isn't this being created in /var/run/abrt/?    

Good question. I hope ABRT guys will add it.
Comment 8 Milos Malik 2010-06-21 09:34:59 EDT
Agree. We have to ask ABRT guys:

# service abrtd status
abrtd is stopped
# service abrtd start
Starting abrt daemon: abrtd: Failed to start: timeout waiting for child
                                                           [FAILED]
# ausearch -m avc -ts recent
----
time->Mon Jun 21 09:32:06 2010
type=SYSCALL msg=audit(1277127126.332:236): arch=40000003 syscall=10 success=no
exit=-13 a0=8067876 a1=bfb7e2ee a2=8 a3=6e items=0 ppid=14343 pid=14344 auid=0
uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1
comm="abrtd" exe="/usr/sbin/abrtd"
subj=unconfined_u:system_r:abrt_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1277127126.332:236): avc:  denied  { unlink } for  pid=14344
comm="abrtd" name="abrt.socket" dev=sda3 ino=139149
scontext=unconfined_u:system_r:abrt_t:s0-s0:c0.c1023
tcontext=system_u:object_r:var_run_t:s0 tclass=sock_file
# find /var -inum 139149
/var/run/abrt.socket
#
Comment 9 Miroslav Grepl 2010-06-21 10:08:09 EDT
Actually the abrt.socket will be created with the right context and it will work. It will get the wrong context after restorecon.

I am fixing the label.
Comment 10 Daniel Walsh 2010-06-21 11:06:35 EDT
I agree with fixing the label, but the abrt guys should be creating all of their temporary content in /var/run/abrt/ directory
Comment 11 Miroslav Grepl 2010-06-22 02:33:22 EDT
Fixed in selinux-policy-3.7.19-27.el6.
Comment 18 releng-rhel@redhat.com 2010-11-10 16:34:47 EST
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.

Note You need to log in before you can comment on or make changes to this bug.