Skip to contentSkip to conversation

filesystems and selinux

DISCUSSION Luke Kenneth Casson Leighton 2 participants 3 messages Nov 8, 2004 SELinux security module

lore
Share & tools
lore
#0 lore raw

hi,

this is going to sound a bit weird and i will do my best to _not_ confuse matters.

has anyone considered writing selinux policy - and using it instead of unix authorisation - for networked fileservers?

(note i didn't say authentication there).

in other words, you write an selinux policy which dictates the circumstances under which users are allowed access to files off of a networked file server.

... or is that what the selinux-nfs patches do, already?

i am starting to think how to roll out selinux in a secured network environment.

l.

--
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 8 lines · Luke Kenneth Casson Leighton

hi,

this is going to sound a bit weird and i will do my best to _not_ confuse matters.

has anyone considered writing selinux policy - and using it instead of unix authorisation - for networked fileservers?

Quoted 7 lines

(note i didn't say authentication there).

in other words, you write an selinux policy which dictates the circumstances under which users are allowed access to files off of a networked file server.

... or is that what the selinux-nfs patches do, already?

There are no differences in the policy used for selinux-nfs. There is an assumption that the client and server have the same policy (At least to the extent that the client and server agree on what accesses to allow.)

For selinux-nfs, the client sends the security context of the process wanting to access files on the NFS server. The server uses that security context to make its access decision and then sends the security context of the files back to the client. The client then can use that security context for accesses to the cache, or display it if the request was something like an 'ls -Z'. In the case of a setxattr, the client would also send the security context that the client's process wants the file to have. Being NFS, the client is still trusted.

Signature · 7 lines
James Carter <[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.
#2 lore raw
Quoted 6 lines · James Carter
Quoted 1 line

... or is that what the selinux-nfs patches do, already?

There are no differences in the policy used for selinux-nfs. There is an assumption that the client and server have the same policy (At least to the extent that the client and server agree on what accesses to allow.)

thanks for clarifying, james.

with the issues surrounding NFS (no on-wire security) and samba (selinux not ready yet), i'm seriously thinking about banning file servers and using subversion _as_ the file server, instead!!!

l.

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