Bug 441135 - Application domains write user domain objects with type user_home_DIR_t in $HOME
Summary: Application domains write user domain objects with type user_home_DIR_t in $HOME
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-04-06 17:31 UTC by Dominick Grift
Modified: 2008-04-08 02:57 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-04-08 02:57:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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


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