Bug 701059 - SELinux is preventing /usr/sbin/vnstatd from 'getattr' accesses on the filesystem /.
Summary: SELinux is preventing /usr/sbin/vnstatd from 'getattr' accesses on the filesy...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:7faa78fafd3...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-30 18:40 UTC by mdeggers
Modified: 2011-07-12 05:16 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.9.7-42.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-12 05:16:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description mdeggers 2011-04-30 18:40:14 UTC
SELinux is preventing /usr/sbin/vnstatd from 'getattr' accesses on the filesystem /.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that vnstatd should be allowed getattr access on the  filesystem 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 vnstatd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:system_r:vnstatd_t:s0
Target Context                system_u:object_r:fs_t:s0
Target Objects                / [ filesystem ]
Source                        vnstatd
Source Path                   /usr/sbin/vnstatd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           vnstat-1.10-1.fc13
Target RPM Packages           filesystem-2.4.35-1.fc14
Policy RPM                    selinux-policy-3.9.7-40.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.12-90.fc14.i686
                              #1 SMP Fri Apr 22 16:14:44 UTC 2011 i686 i686
Alert Count                   1
First Seen                    Sat 30 Apr 2011 11:35:30 AM PDT
Last Seen                     Sat 30 Apr 2011 11:35:30 AM PDT
Local ID                      17d444d1-6388-4115-844b-f43bf93406bd

Raw Audit Messages
type=AVC msg=audit(1304188530.858:536): avc:  denied  { getattr } for  pid=20618 comm="vnstatd" name="/" dev=dm-0 ino=2 scontext=unconfined_u:system_r:vnstatd_t:s0 tcontext=system_u:object_r:fs_t:s0 tclass=filesystem


type=SYSCALL msg=audit(1304188530.858:536): arch=i386 syscall=statfs success=yes exit=0 a0=bfa5c42c a1=bfa5c36c a2=36cff4 a3=bfa5c42c items=0 ppid=1 pid=20618 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm=vnstatd exe=/usr/sbin/vnstatd subj=unconfined_u:system_r:vnstatd_t:s0 key=(null)

Hash: vnstatd,vnstatd_t,fs_t,filesystem,getattr

audit2allow

#============= vnstatd_t ==============
allow vnstatd_t fs_t:filesystem getattr;

audit2allow -R

#============= vnstatd_t ==============
allow vnstatd_t fs_t:filesystem getattr;

Comment 1 Miroslav Grepl 2011-05-02 08:05:32 UTC
Fixed in selinux-policy-3.9.7-41.fc14 and also in F15 policy.

Comment 2 Fedora Update System 2011-05-27 15:45:27 UTC
selinux-policy-3.9.7-42.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-42.fc14

Comment 3 Fedora Update System 2011-05-27 20:27:27 UTC
Package selinux-policy-3.9.7-42.fc14:
* should fix your issue,
* was pushed to the Fedora 14 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.9.7-42.fc14'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-42.fc14
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2011-07-12 05:14:47 UTC
selinux-policy-3.9.7-42.fc14 has been pushed to the Fedora 14 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.