Skip to contentSkip to conversation

r_dir_file() and sym-links

DISCUSSION Russell Coker 1 participant 1 message Dec 26, 2004 SELinux security module

lore
Share & tools
lore
#0 lore raw

In retrospect it was a mistake to make r_dir_file() and friends operate on lnk_file types as well. We should have had separate macros for sym-links and without sym-link access.

Currently there are many instances in the policy of r_dir_file() being used for cases where sym-links are not possible (EG for some parts of /proc).

Also r_dir_perms and r_file_perms grant more access than is usually required. Maybe we should have a macro like the following:

define(s_dir_r_file',
allow $1 $2:dir search;
allow $1 $2:file { getattr read };
')

What do you think?

Signature · 9 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.