Bug 510737 - setroubleshoot: SELinux is preventing mrtg (mrtg_t) "read" user_home_dir_t.
setroubleshoot: SELinux is preventing mrtg (mrtg_t) "read" user_home_dir_t.
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
rawhide
x86_64 Linux
low Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Fedora Extras Quality Assurance
setroubleshoot_trace_hash:9ce11438367...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-10 10:17 EDT by Joachim Frieben
Modified: 2009-07-10 14:48 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-07-10 14:48:03 EDT
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 Joachim Frieben 2009-07-10 10:17:17 EDT
The following was filed automatically by setroubleshoot:

Summary:

SELinux is preventing mrtg (mrtg_t) "read" user_home_dir_t.

Detailed Description:

[SELinux is in permissive mode, the operation would have been denied but was
permitted due to permissive mode.]

SELinux denied access requested by mrtg. It is not expected that this access is
required by mrtg 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://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Or you can disable
SELinux protection altogether. Disabling SELinux protection is not recommended.
Please file a bug report (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi)
against this package.

Additional Information:

Source Context                system_u:system_r:mrtg_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:user_home_dir_t:s0
Target Objects                /root [ dir ]
Source                        mrtg
Source Path                   /usr/bin/perl
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           perl-5.10.0-73.fc12
Target RPM Packages           filesystem-2.4.23-1.fc12
Policy RPM                    selinux-policy-3.6.21-3.fc12
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.31-0.62.rc2.git4.fc12.x86_64 #1
                              SMP Thu Jul 9 22:19:08 EDT 2009 x86_64 x86_64
Alert Count                   4
First Seen                    Fri 10 Jul 2009 04:05:02 PM CEST
Last Seen                     Fri 10 Jul 2009 04:10:02 PM CEST
Local ID                      4a0c39dc-6f4c-4785-955f-525832bdc551
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1247235002.94:26): avc:  denied  { read } for  pid=2193 comm="mrtg" name="root" dev=dm-0 ino=71 scontext=system_u:system_r:mrtg_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=dir

node=(removed) type=AVC msg=audit(1247235002.94:26): avc:  denied  { open } for  pid=2193 comm="mrtg" name="root" dev=dm-0 ino=71 scontext=system_u:system_r:mrtg_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=dir

node=(removed) type=SYSCALL msg=audit(1247235002.94:26): arch=c000003e syscall=2 success=yes exit=0 a0=7f18fe7d353b a1=0 a2=5 a3=7fff18e3ccc0 items=0 ppid=2191 pid=2193 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=3 comm="mrtg" exe="/usr/bin/perl" subj=system_u:system_r:mrtg_t:s0-s0:c0.c1023 key=(null)


audit2allow suggests:

#============= mrtg_t ==============
allow mrtg_t user_home_dir_t:dir { read open };
Comment 1 Joachim Frieben 2009-07-10 10:19:34 EDT
The security alert has occurred immediately after relabeling the entire filesystem (touch /.autorelabel followed by a reboot).
Comment 2 Daniel Walsh 2009-07-10 10:20:46 EDT
If you run matchpathcon /root, what do you get?
Comment 3 Daniel Walsh 2009-07-10 10:22:04 EDT
What version of policycoreutils do you have installed?

rpm -q policycoreutils
Comment 4 Joachim Frieben 2009-07-10 10:47:35 EDT
$ matchpathcon /root
/root    unconfined_u:object_r:user_home_dir_t:s0

$ rpm -q policycoreutils
policycoreutils-2.0.64-2.fc12.x86_64
Comment 5 Daniel Walsh 2009-07-10 10:58:06 EDT
If you run genhomedircon and then matchpathcon /root does it still say the same?
Comment 6 Joachim Frieben 2009-07-10 11:57:59 EDT
$ genhomedircon
$ matchpathcon /root
/root	unconfined_u:object_r:user_home_dir_t:s0
Comment 7 Daniel Walsh 2009-07-10 14:48:03 EDT
fixed in libsemanage-2.0.33-2.fc12

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