Bug 441135 - Application domains write user domain objects with type user_home_DIR_t in $HOME
Application domains write user domain objects with type user_home_DIR_t in $HOME
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Daniel Walsh
Ben Levenson
Depends On:
  Show dependency treegraph
Reported: 2008-04-06 13:31 EDT by Dominick Grift
Modified: 2008-04-07 22:57 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-04-07 22:57:47 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Dominick Grift 2008-04-06 13:31:44 EDT
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

If you do the same to ~/Desktop/my_gpg_pub.key, it will work (user_home_t)
Comment 1 Daniel Walsh 2008-04-07 22:57:47 EDT
Fixed in selinux-policy-3.3.1-29.fc9

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