Bug 581660 - SELinux is preventing /usr/libexec/accounts-daemon "dac_override" access .
Summary: SELinux is preventing /usr/libexec/accounts-daemon "dac_override" access .
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 13
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:719d9701610...
: 581662 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-04-12 21:26 UTC by Ira Malinich
Modified: 2010-04-21 22:35 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.7.19-2.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-04-21 22:01:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ira Malinich 2010-04-12 21:26:51 UTC
Summary:

SELinux is preventing /usr/libexec/accounts-daemon "dac_override" access .

Detailed Description:

[accounts-daemon has a permissive type (accountsd_t). This access was not
denied.]

SELinux denied access requested by accounts-daemon. It is not expected that this
access is required by accounts-daemon 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.

Allowing Access:

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.

Additional Information:

Source Context                system_u:system_r:accountsd_t:s0-s0:c0.c1023
Target Context                system_u:system_r:accountsd_t:s0-s0:c0.c1023
Target Objects                None [ capability ]
Source                        accounts-daemon
Source Path                   /usr/libexec/accounts-daemon
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           accountsservice-0.6-2.fc13
Target RPM Packages           
Policy RPM                    selinux-policy-3.7.16-2.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.33.1-24.fc13.x86_64 #1 SMP Tue
                              Mar 30 18:21:22 UTC 2010 x86_64 x86_64
Alert Count                   3
First Seen                    Mon 12 Apr 2010 03:23:17 PM MDT
Last Seen                     Mon 12 Apr 2010 03:23:17 PM MDT
Local ID                      4995e311-e3cc-4fca-98c8-0c8ecfb4a333
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1271107397.633:23668): avc:  denied  { dac_override } for  pid=2151 comm="accounts-daemon" capability=1  scontext=system_u:system_r:accountsd_t:s0-s0:c0.c1023 tcontext=system_u:system_r:accountsd_t:s0-s0:c0.c1023 tclass=capability

node=(removed) type=AVC msg=audit(1271107397.633:23668): avc:  denied  { read } for  pid=2151 comm="accounts-daemon" name="shadow" dev=sdb1 ino=66 scontext=system_u:system_r:accountsd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:shadow_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1271107397.633:23668): avc:  denied  { open } for  pid=2151 comm="accounts-daemon" name="shadow" dev=sdb1 ino=66 scontext=system_u:system_r:accountsd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:shadow_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1271107397.633:23668): arch=c000003e syscall=2 success=yes exit=9 a0=7fc681e995ca a1=80000 a2=1b6 a3=0 items=0 ppid=1 pid=2151 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="accounts-daemon" exe="/usr/libexec/accounts-daemon" subj=system_u:system_r:accountsd_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  catchall,accounts-daemon,accountsd_t,accountsd_t,capability,dac_override
audit2allow suggests:

#============= accountsd_t ==============
allow accountsd_t self:capability dac_override;
allow accountsd_t shadow_t:file { read open };

Comment 1 Ira Malinich 2010-04-12 21:32:58 UTC
I had installed the accountsdialog and accountsservice packages and used the UI to give myself "administrator" status.  After logging in following a reboot, this AVC message appears.

This message is accompanied by the one in Bug 581662.

Comment 2 Miroslav Grepl 2010-04-13 11:57:46 UTC
*** Bug 581662 has been marked as a duplicate of this bug. ***

Comment 3 Daniel Walsh 2010-04-13 13:09:11 UTC
Fixed in selinux-policy-3.7.18-1.fc13

Comment 4 Ira Malinich 2010-04-16 20:53:45 UTC
I found selinux-policy-3.7.19-1.fc13 in koji, which fixed this bug for me, so presumably selinux-policy-3.7.18-1.fc13 would have worked too.

Comment 5 Ira Malinich 2010-04-16 21:10:24 UTC
I am however getting this AVC when using the Account Information dialogue to either create or remove users.

Comment 6 Daniel Walsh 2010-04-19 01:58:07 UTC
Ira, Does selinux-policy-3.7.19-1.fc13  fix the problem or not?

Comment 7 Fedora Update System 2010-04-19 02:41:32 UTC
selinux-policy-3.7.19-2.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/selinux-policy-3.7.19-2.fc13

Comment 8 Ira Malinich 2010-04-19 18:26:52 UTC
With selinux-policy-3.7.19-1.fc13, I don't get the AVC errors as soon as I log in, but I seem to get the same AVC error (setroubleshooter points me back to this bug when I report it) when I add or remove users using the Account Information dialogue (accounts-dialog).

I'll try selinux-policy-3.7.19-2.fc13 and see how it goes.

Comment 9 Ira Malinich 2010-04-19 19:49:50 UTC
With selinux-policy-3.7.19-2.fc13 I'm still getting the AVC when adding or removing users.

Comment 10 Daniel Walsh 2010-04-20 12:00:11 UTC
Ira, what does 

#audit2allow -la 

output?

Comment 11 Fedora Update System 2010-04-20 13:25:45 UTC
selinux-policy-3.7.19-2.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/selinux-policy-3.7.19-2.fc13

Comment 12 Ira Malinich 2010-04-20 17:50:21 UTC
# audit2allow -la


#============= accountsd_t ==============
allow accountsd_t self:capability dac_override;

Comment 13 Daniel Walsh 2010-04-20 18:18:22 UTC
Fixed in selinux-policy-3.7.19-4.fc13.noarch

Comment 14 Ira Malinich 2010-04-21 19:19:42 UTC
Is this package available somewhere?  I don't see it in Bodhi or Koji.

Comment 15 Daniel Walsh 2010-04-21 20:14:45 UTC
It should be in Koji now.

Comment 16 Fedora Update System 2010-04-21 21:59:46 UTC
selinux-policy-3.7.19-2.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 17 Ira Malinich 2010-04-21 22:35:34 UTC
I've tested creating and deleting users and I haven't had any AVC errors.  It works for me.


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