Bug 747408

Summary: SELinux is preventing /usr/sbin/tzdata-update from read access on the directory /home/gholms.
Product: [Fedora] Fedora Reporter: Garrett Holmstrom <gholms>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-23 15:45:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.