Bug 540850 - SELinux is preventing /usr/libexec/polkit-1/polkitd "search" access on /usr/share.
Summary: SELinux is preventing /usr/libexec/polkit-1/polkitd "search" access on /usr/s...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:c3c66e4a933...
: 540844 540845 540847 540848 540849 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-24 10:48 UTC by Arto Aikioniemi
Modified: 2010-01-08 20:07 UTC (History)
2 users (show)

Fixed In Version: 3.6.32-66.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-01-08 20:07:40 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Arto Aikioniemi 2009-11-24 10:48:48 UTC
Yhteenveto:

SELinux is preventing /usr/libexec/polkit-1/polkitd "search" access on
/usr/share.

Yksityiskohtainen kuvaus:

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

Sallitaan pääsy:

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.

Lisätiedot:

Lähdekonteksti               system_u:system_r:policykit_t:s0-s0:c0.c1023
Kohdekonteksti                system_u:object_r:home_root_t:s0
Kohdeobjektit                 /usr/share [ dir ]
Lähde                        polkitd
Lähteen polku                /usr/libexec/polkit-1/polkitd
Portti                        <Tuntematon>
Kone                          (removed)
Lähteen RPM-paketit          polkit-0.95-0.git20090913.3.fc12
Kohteen RPM-paketit           filesystem-2.4.30-2.fc12
Käytännön RPM              selinux-policy-3.6.32-46.fc12
SELinux käytössä           True
Käytännön tyyppi           targeted
Toimeenpanotila               Enforcing
Liitännäisen nimi           catchall
Konenimi                      (removed)
Alusta                        Linux (removed) 2.6.31.5-127.fc12.x86_64 #1 SMP Sat
                              Nov 7 21:11:14 EST 2009 x86_64 x86_64
Varoitusten määrä          2258
Ensimmäinen                  ti 24. marraskuuta 2009 08.01.41
Viimeisin                     ti 24. marraskuuta 2009 12.47.16
Paikallinen tunniste          1276e537-05c5-48c4-9f75-765f1a04f1b6
Rivinumerot                   

Muokkaamattomat tarkastusvies 

node=(removed) type=AVC msg=audit(1259059636.4:21297): avc:  denied  { search } for  pid=1482 comm="polkitd" name="share" dev=dm-0 ino=8198 scontext=system_u:system_r:policykit_t:s0-s0:c0.c1023 tcontext=system_u:object_r:home_root_t:s0 tclass=dir

node=(removed) type=SYSCALL msg=audit(1259059636.4:21297): arch=c000003e syscall=254 success=no exit=-13 a0=5 a1=2111e70 a2=1002fce a3=1 items=0 ppid=1 pid=1482 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="polkitd" exe="/usr/libexec/polkit-1/polkitd" subj=system_u:system_r:policykit_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-46.fc12,catchall,polkitd,policykit_t,home_root_t,dir,search
audit2allow suggests:

#============= policykit_t ==============
allow policykit_t home_root_t:dir search;

Comment 1 Daniel Walsh 2009-11-24 15:06:48 UTC
Do you have a home dir in /usr/share?  Seems like you have a labeling problem that might be being caused by a bad homedir.

Comment 2 Daniel Walsh 2009-11-24 15:07:16 UTC
*** Bug 540849 has been marked as a duplicate of this bug. ***

Comment 3 Daniel Walsh 2009-11-24 15:07:26 UTC
*** Bug 540848 has been marked as a duplicate of this bug. ***

Comment 4 Daniel Walsh 2009-11-24 15:08:20 UTC
*** Bug 540847 has been marked as a duplicate of this bug. ***

Comment 5 Daniel Walsh 2009-11-24 15:08:30 UTC
*** Bug 540845 has been marked as a duplicate of this bug. ***

Comment 6 Daniel Walsh 2009-11-24 15:08:43 UTC
*** Bug 540844 has been marked as a duplicate of this bug. ***

Comment 7 Daniel Walsh 2009-12-23 17:07:52 UTC
You can add these rules for now using

# grep avc /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Fixed in selinux-policy-3.6.32-64.fc12.noarch

Comment 8 Fedora Update System 2010-01-04 21:51:05 UTC
selinux-policy-3.6.32-66.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-66.fc12

Comment 9 Fedora Update System 2010-01-05 22:46:56 UTC
selinux-policy-3.6.32-66.fc12 has been pushed to the Fedora 12 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/F12/FEDORA-2010-0184

Comment 10 Fedora Update System 2010-01-08 20:01:44 UTC
selinux-policy-3.6.32-66.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


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