Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 120175 - wront label for /usr/tmp
Summary: wront label for /usr/tmp
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: High normal
Assignee: SE Linux Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-24 05:30 UTC by Panard
Modified: 2007-04-29 12:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Panard 2006-01-24 05:30:48 UTC
sec-policy/selinux-base-policy-20051022-r1

/usr/tmp is labeled as 'system_u:object_r:usr_t' instead of 'system_u:object_r:tmp_t'
The reason is in file_contexts/types.fc (line 366) :
/usr/tmp                -d      system_u:object_r:tmp_t

As /usr/tmp is a symbolic link, this rules doesn't match.
/usr/tmp                -l      system_u:object_r:tmp_t
seems ok to me.
Comment 1 Chris PeBenito (RETIRED) gentoo-dev 2007-04-29 12:49:17 UTC
usr_t is the correct type since it is a symlink.  the important thing is that the target is tmp_t.  if the target is not /tmp or /var/tmp, you will have to customize your policy.