Bug 747408 - SELinux is preventing /usr/sbin/tzdata-update from read access on the directory /home/gholms.
Summary: SELinux is preventing /usr/sbin/tzdata-update from read access on the directo...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-19 18:03 UTC by Garrett Holmstrom
Modified: 2011-11-23 15:45 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-23 15:45:34 UTC
Type: ---


Attachments (Terms of Use)

Description Garrett Holmstrom 2011-10-19 18:03:02 UTC
Description of problem:

A yum update that pulled in a new tzdata package (and a new selinux-policy package, if that's relevant) appears to have caused a denial:

type=SYSCALL msg=audit(1319045815.015:3892): arch=c000003e syscall=59 success=yes exit=0 a0=408aeb a1=7fffb1405610 a2=7fffb1405618 a3=7fffb13e4210 items=0 ppid=22070 pid=22504 auid=1032 uid=0 gid=0 euid=0 su
id=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts4 ses=2 comm="tzdata-update" exe="/usr/sbin/tzdata-update" subj=unconfined_u:system_r:tzdata_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1319045815.015:3892): avc:  denied  { read } for  pid=22504 comm="tzdata-update" path="/home/gholms" dev=dm-6 ino=1048577 scontext=unconfined_u:system_r:tzdata_t:s0-s0:c0.c1023 tcontext=un
confined_u:object_r:user_home_dir_t:s0 tclass=dir
type=AVC msg=audit(1319045815.015:3892): avc:  denied  { read } for  pid=22504 comm="tzdata-update" path="/home/gholms" dev=dm-6 ino=1048577 scontext=unconfined_u:system_r:tzdata_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=dir

I suspect it tried to read /home/gholms because I ran the update from there.  ``restorecon -rv /'' afterwards picked up some dotfiles in my home directory and some unrelated libs, but not the home directory itself.

Version-Release number of selected component (if applicable):
selinux-policy-3.10.0-38.fc16.noarch
glibc-2.14.90-10.x86_64
tzdata-2011k-0.1.20110921.fc16.noarch

...which updated to:
selinux-policy-3.10.0-40.fc16.noarch
glibc-2.14.90-12.999.x86_64
tzdata-2011l-2.fc16.noarch


Additional info:

I'm not sure if this is a bug in another package or if it should just be dontaudit, so I apologize if I'm filing this against the wrong thing.

Comment 1 Daniel Walsh 2011-10-20 15:42:27 UTC
Miroslav lets remove this domain and replace with the filename_trans rules.


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