Bug 441135

Summary: Application domains write user domain objects with type user_home_DIR_t in $HOME
Product: [Fedora] Fedora Reporter: Dominick Grift <domg444>
Component: selinux-policy-targetedAssignee: Daniel Walsh <dwalsh>
Status: CLOSED RAWHIDE QA Contact: Ben Levenson <benl>
Severity: low Docs Contact:
Priority: low    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-04-08 02:57:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dominick Grift 2008-04-06 17:31:44 UTC
Description of problem:
I noted how application domains write userdomain objects with type
user_home_DIR_t in user home ($HOMWE), instead of user_home_t

For example: Eclipse (java_t) writes its "~/Workspace" user_home_DIR_t 

How reproducible:
In a confined role, export your GPG key to for example ~/my_gpg_pub.key:

type=AVC msg=audit(1207501135.643:226): avc:  denied  { create } for  pid=9902 c
omm="gpg" name="domg472-gmail-public.key" scontext=staff_u:staff_r:gpg_t:s0 tcon
text=staff_u:object_r:user_home_dir_t:s0 tclass=file
type=SYSCALL msg=audit(1207501135.643:226): arch=c000003e syscall=2 success=no e
xit=-13 a0=7fffc57d8638 a1=241 a2=1b6 a3=1323a10 items=0 ppid=8946 pid=9902 auid
=502 uid=502 gid=504 euid=502 suid=502 fsuid=502 egid=504 sgid=504 fsgid=504 tty
=pts1 ses=1 comm="gpg" exe="/usr/bin/gpg" subj=staff_u:staff_r:gpg_t:s0 key=(nul
l)

If you do the same to ~/Desktop/my_gpg_pub.key, it will work (user_home_t)

Comment 1 Daniel Walsh 2008-04-08 02:57:47 UTC
Fixed in selinux-policy-3.3.1-29.fc9