Skip to contentSkip to conversation

ReiserFS

DISCUSSION Russell Coker 2 participants 3 messages Sep 29, 2004 – Oct 6, 2004 SELinux security module

lore
Share & tools
lore
#0 lore raw

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=134111

We are having some discussions of ReiserFS in the Red Hat bugzilla.

fs_use_xattr reiserfs system_u:object_r:fs_t;

It seems to me that the easiest solution is to remove the above line from fs_use and add the following to genfs_contexts:

genfscon reiserfs / system_u:object_r:nfs_t

The reason for this hack is that we already have the policy for home directories on NFS. ReiserFS will never work for a root FS and isn't worth any more effort than this hack.

Another suggestion was to entirely remove ReiserFS support from Fedora (IE no reiserfs.ko file in the kernel package).

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.
#1 lore raw
Quoted 10 lines · Russell Coker

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=134111

We are having some discussions of ReiserFS in the Red Hat bugzilla.

fs_use_xattr reiserfs system_u:object_r:fs_t;

It seems to me that the easiest solution is to remove the above line from fs_use and add the following to genfs_contexts:

genfscon reiserfs / system_u:object_r:nfs_t

allow mount_t unlabeled_t:dir search;

I almost forgot to mention that mount_t needs search access to a directory of type unlabeled_t for the above hack to work. Not sure why, but it's fairly harmless.

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.
#2 lore raw
In reply to Russell Coker
Quoted 6 lines · Russell Coker

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=134111

We are having some discussions of ReiserFS in the Red Hat bugzilla.

fs_use_xattr reiserfs system_u:object_r:fs_t;

Quoted 8 lines

It seems to me that the easiest solution is to remove the above line from fs_use and add the following to genfs_contexts:

genfscon reiserfs / system_u:object_r:nfs_t

The reason for this hack is that we already have the policy for home directories on NFS. ReiserFS will never work for a root FS and isn't worth any more effort than this hack.

This seems reasonable, at least until someone chooses to pursue the necessary patches to the reiserfs xattr support to allow proper interaction with SELinux.

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.