Bug 713898 - SELinux is preventing /usr/sbin/tmpwatch from 'setattr' accesses on the dossier accounts.
Summary: SELinux is preventing /usr/sbin/tmpwatch from 'setattr' accesses on the dossi...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:38a4bc04525...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-16 18:06 UTC by Nicolas Mailhot
Modified: 2011-06-17 18:53 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-17 18:53:58 UTC
Type: ---


Attachments (Terms of Use)

Description Nicolas Mailhot 2011-06-16 18:06:15 UTC
SELinux is preventing /usr/sbin/tmpwatch from 'setattr' accesses on the dossier accounts.

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

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

Additional Information:
Source Context                system_u:system_r:tmpreaper_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:telepathy_mission_control_ho
                              me_t:s0
Target Objects                accounts [ dir ]
Source                        tmpwatch
Source Path                   /usr/sbin/tmpwatch
Port                          <Inconnu>
Host                          (removed)
Source RPM Packages           tmpwatch-2.10.2-1.fc16
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-28.fc16
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.0-0.rc3.git0.3.fc16.x86_64 #1
                              SMP Tue Jun 14 17:13:27 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    jeu. 16 juin 2011 03:42:14 CEST
Last Seen                     jeu. 16 juin 2011 03:42:14 CEST
Local ID                      0003344c-7198-4525-b20a-f6db6f60077f

Raw Audit Messages
type=AVC msg=audit(1308188534.342:869): avc:  denied  { setattr } for  pid=13640 comm="tmpwatch" name="accounts" dev=dm-1 ino=920069 scontext=system_u:system_r:tmpreaper_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:telepathy_mission_control_home_t:s0 tclass=dir


type=SYSCALL msg=audit(1308188534.342:869): arch=x86_64 syscall=utime success=yes exit=0 a0=40458b a1=7fffdbe7a380 a2=10450 a3=200 items=0 ppid=13638 pid=13640 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=54 comm=tmpwatch exe=/usr/sbin/tmpwatch subj=system_u:system_r:tmpreaper_t:s0-s0:c0.c1023 key=(null)

Hash: tmpwatch,tmpreaper_t,telepathy_mission_control_home_t,dir,setattr

audit2allow

#============= tmpreaper_t ==============
allow tmpreaper_t telepathy_mission_control_home_t:dir setattr;

audit2allow -R

#============= tmpreaper_t ==============
allow tmpreaper_t telepathy_mission_control_home_t:dir setattr;

Comment 1 Dominick Grift 2011-06-16 20:25:08 UTC
Allow tmpreaper to set attributes of all user home content directories and allow it to delete all user home content files, dirs, symlinks and sock files.

http://git.fedorahosted.org/git/?p=selinux-policy.git;a=commitdiff;h=a6687c87a03566c97523e28ed25e76abbc99abea

Comment 2 Daniel Walsh 2011-06-17 18:53:58 UTC
Fixed in selinux-policy-3.9.16-30.fc16


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