genfs_contexts file
Hi.
I have a doubt about *genfs_contexts* file. For example, the statement below:
*genfscon vfat / system_u:object_r:dosfs_t*
I mounted the windows filesystem with: *mount -t vfat /dev/hda1 /mnt/win* I access with: *cd /mnt/win* and run *ls --context*
The print out of the *ls --context* is:
*-rwxr--r-- root root (null) 130700.htm
drwxr--r-- root root (null) aaa -r-xr--r-- root root (null) admin.dll -rwxr--r-- root root (null) ajapaedi
*
Is correct the (null) for security context?
If I note the line in the genfs_contexts file happen the same thing. The are not change.
Thanks.
Signature · 3 lines
Carlos Anisio Monteiro <[email protected]> IPEN/CNEN-SP Sao Paulo - Brasil
Quoted 9 lines · Carlos Anísio Monteiro
I have a doubt about *genfs_contexts* file. For example, the statement below:
*genfscon vfat / system_u:object_r:dosfs_t*
I mounted the windows filesystem with: *mount -t vfat
/dev/hda1/mnt/win*I access with: *cd/mnt/win*and run *ls --context*
The print out of the *ls --context* is:
*-rwxr--r-- root root (null) 130700.htm
Files/directories that are assigned contexts with genfscon do not have an xattr, so "ls --context" can not show their context.
This is a known issue. I don't know if there are plans to change it.
Signature · 11 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.
Quoted 4 lines · Russell Coker
Files/directories that are assigned contexts with genfscon do not have an xattr, so "ls --context" can not show their context.
This is a known issue. I don't know if there are plans to change it.
It would be possible to implement a "pseudo" xattr handler for such filesystems, as we have already done for devpts. But that has to be done for every filesystem type where you want to export the labels to userspace.
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.
Quoted 15 lines · Russell Coker
Quoted 11 lines · Carlos Anísio Monteiro
I have a doubt about *genfs_contexts* file. For example, the statement below:
*genfscon vfat / system_u:object_r:dosfs_t*
I mounted the windows filesystem with: *mount -t vfat
/dev/hda1/mnt/win*I access with: *cd/mnt/win*and run *ls --context*
The print out of the *ls --context* is:
*-rwxr--r-- root root (null) 130700.htm
Quoted 5 lines
Files/directories that are assigned contexts with genfscon do not have an xattr, so "ls --context" can not show their context.
This is a known issue. I don't know if there are plans to change it.
Steven,
Is there a way to change libselinux to return this data, ie if getfilecon is going to return NULL, then have it return the genfscon value?
Dan
Quoted 3 lines · Daniel J Walsh
Is there a way to change libselinux to return this data, ie if getfilecon is going to return NULL, then have it return the genfscon value?
libselinux is the wrong place. If userspace needs access to the labels, then the filesystem needs to export an xattr handler.
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.