Skip to contentSkip to conversation

I would like to suggest a new file attribute like usersafe.

DISCUSSION Daniel J Walsh 2 participants 2 messages Mar 24, 2004 SELinux security module

lore
Share & tools
lore
#0 lore raw

One of the things I have thinking about at is the ability to globally say a context can read these files. For instance allowing the slocate policy to read files. Rather then trying to figure out all of the file types that are safe to read and listing them in policy, if we had a attribute, similar to sysadminfile, that indicated it was safe for users access we could have a simpler rules.

usersafefile?

So as policy developers decide to add a new context for XYZ app, they can add attribute that will allow users access.

r_dir_file($1_locate_s, usersafefile)

Dan

--
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.

#1 lore raw
Quoted 12 lines · Daniel J Walsh

One of the things I have thinking about at is the ability to globally say a context can read these files.
For instance allowing the slocate policy to read files. Rather then trying to figure out all of the file types
that are safe to read and listing them in policy, if we had a attribute, similar to sysadminfile, that indicated
it was safe for users access we could have a simpler rules.

usersafefile?

Quoted 5 lines

So as policy developers decide to add a new context for XYZ app, they can add attribute that will allow
users access.

r_dir_file($1_locate_s, usersafefile)

How about userreadable? Or something similar to indicate that it is strictly for allowing read access? This is similar to the existing readable_t type, but would let you preserve different types (and thus different write rules).

Signature · 8 lines
Stephen Smalley <[email protected]>
National Security Agency


--
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.