Bug 679593 - SELinux is preventing /usr/sbin/setsebool from 'read' accesses on the file /etc/selinux/targeted/modules/active/ldd.te.
Summary: SELinux is preventing /usr/sbin/setsebool from 'read' accesses on the file /e...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:dc6165a329d...
: 679594 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-22 22:40 UTC by John Freed
Modified: 2011-02-23 13:27 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-23 13:27:03 UTC
Type: ---


Attachments (Terms of Use)

Description John Freed 2011-02-22 22:40:23 UTC
SELinux is preventing /usr/sbin/setsebool from 'read' accesses on the file /etc/selinux/targeted/modules/active/ldd.te.

*****  Plugin restorecon (99.5 confidence) suggests  *************************

If you want to fix the label. 
/etc/selinux/targeted/modules/active/ldd.te default label should be semanage_store_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /etc/selinux/targeted/modules/active/ldd.te

*****  Plugin catchall (1.49 confidence) suggests  ***************************

If you believe that setsebool should be allowed read access on the ldd.te file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep setsebool /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:setsebool_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:admin_home_t:s0
Target Objects                /etc/selinux/targeted/modules/active/ldd.te [ file
                              ]
Source                        setsebool
Source Path                   /usr/sbin/setsebool
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           policycoreutils-2.0.83-33.10.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-29.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.11-83.fc14.x86_64 #1 SMP Mon
                              Feb 7 07:06:44 UTC 2011 x86_64 x86_64
Alert Count                   2
First Seen                    Tue 22 Feb 2011 11:32:43 PM CET
Last Seen                     Tue 22 Feb 2011 11:33:25 PM CET
Local ID                      1b648c55-ddeb-4c8e-bf2b-5caf5d0c9fd0

Raw Audit Messages
type=AVC msg=audit(1298414005.735:121874): avc:  denied  { read } for  pid=29407 comm="setsebool" name="ldd.te" dev=dm-0 ino=9869 scontext=system_u:system_r:setsebool_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:admin_home_t:s0 tclass=file


type=SYSCALL msg=audit(1298414005.735:121874): arch=x86_64 syscall=open success=no exit=EACCES a0=7fffa19b29f0 a1=0 a2=7fffa19b090c a3=6d742f73656c7564 items=0 ppid=29406 pid=29407 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=setsebool exe=/usr/sbin/setsebool subj=system_u:system_r:setsebool_t:s0-s0:c0.c1023 key=(null)

Hash: setsebool,setsebool_t,admin_home_t,file,read

audit2allow

#============= setsebool_t ==============
allow setsebool_t admin_home_t:file read;

audit2allow -R

#============= setsebool_t ==============
allow setsebool_t admin_home_t:file read;

Comment 1 John Freed 2011-02-22 22:55:38 UTC
Error is the same as this report:

http://bugs.centos.org/view.php?id=4026

This was a fresh install. I found a couple of stray LOCK files (probably from the day I installed) in the /etc/selinux/targeted/modules directory. Dunno if that's relevant. 

Also got a delete-file error (probably the next bug)

Comment 2 John Freed 2011-02-22 22:56:38 UTC
FYI, the error popped up when I tried to execute the following:

# setsebool -P wine_mmap_zero_ignore 1

Comment 3 Miroslav Grepl 2011-02-23 08:18:10 UTC
It looks your system is mislabeled. 

You will need to run

# fixfiles restore

Comment 4 Miroslav Grepl 2011-02-23 08:19:12 UTC
*** Bug 679594 has been marked as a duplicate of this bug. ***

Comment 5 John Freed 2011-02-23 13:27:03 UTC
shoulda done that first, obviously. Seems to have worked. Thanks.


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