Skip to contentSkip to conversation

can't use ACL with 2.4 SELinux

DISCUSSION lky 2 participants 3 messages Nov 2, 2003 – Nov 5, 2003 SELinux security module

lore
Share & tools
lore

lky

author
#0 lore raw

Hi, I installed 2.4.21-selinux2 (linux-2.4-2003100110.tgz) on Redhat9.0. Because the SElinux kernel has the combined ea+acl+nfsacl patch built in. So I think I can use ACL directly. But I failed. I have enabled the kernel options for ACLs and I mount the file system as follows: 'mount -t ext3 -o exec,dev,suid,rw,acl,user_xattr /dev/hda8 /mnt/test'
but it said : operations not supported. Any ideas?
Thanks!

--
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 3 lines · lky

Hi, I installed 2.4.21-selinux2 (linux-2.4-2003100110.tgz) on Redhat9.0. Because the SElinux kernel has the combined ea+acl+nfsacl patch built in. So I think I can use ACL directly. But I failed. I have enabled the kernel options for ACLs and I mount the file system as follows: 'mount -t ext3 -o exec,dev,suid,rw,acl,user_xattr /dev/hda8 /mnt/test'
but it said : operations not supported. Any ideas?
Thanks!

I tried the kernel from our website (linux-2.4-2003100110.tgz) with following ext3 options (and all the other normal options for SELinux):
CONFIG_EXT3_FS=y
CONFIG_EXT3_FS_XATTR=y
CONFIG_EXT3_FS_XATTR_SHARING=y
CONFIG_EXT3_FS_XATTR_USER=y
CONFIG_EXT3_FS_XATTR_TRUSTED=y
CONFIG_EXT3_FS_POSIX_ACL=y
CONFIG_EXT3_FS_SECURITY=y

I had no problem mounting my root ext3 filesystem with both the acl and user_xattr options. I had no problems setting and getting user, trusted, and security.selinux extended attributes. I also had no problems setting and getting acls. It doesn't seem to be a problem with the kernel.

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.
author
#2 lore raw
Quoted 10 lines · On Wednesday, November 05, 2003 12:35 AM,James Carter wrote:

I tried the kernel from our website (linux-2.4-2003100110.tgz) with following ext3 options (and all the other normal options for SELinux):
CONFIG_EXT3_FS=y
CONFIG_EXT3_FS_XATTR=y
CONFIG_EXT3_FS_XATTR_SHARING=y
CONFIG_EXT3_FS_XATTR_USER=y
CONFIG_EXT3_FS_XATTR_TRUSTED=y
CONFIG_EXT3_FS_POSIX_ACL=y
CONFIG_EXT3_FS_SECURITY=y

Quoted 9 lines

I had no problem mounting my root ext3 filesystem with both the acl and user_xattr options. I had no problems setting and getting user, trusted, and security.selinux extended attributes. I also had no problems setting and getting acls. It doesn't seem to be a problem with the kernel.

Signature · 2 lines
James Carter <[email protected]>
National Security Agency

Sorry,it's my fault.I made a mistake when I mount the filesystem.So ACL can't work. Thanks!
lky

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