View previous topic :: View next topic |
Author |
Message |
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2253 Location: $TERM
|
Posted: Thu Apr 17, 2014 4:46 pm Post subject: Cannot get chcon to work. |
|
|
I'm trying this out on reiserfs. CONFIG_REISERFS_FS_SECURITY is set.
Code: | chcon -u test security_context_file
chcon: failed to get security context of 'security_context_file': Operation not supported |
SELinux is turned off as of the current time (I don't know how to enable it anyway, it doesn't matter for now). _________________ My blog |
|
Back to top |
|
|
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2253 Location: $TERM
|
Posted: Fri Apr 18, 2014 7:45 am Post subject: |
|
|
In the mean time setfattr works suggesting the FS is ok.
Code: | setfattr -n security.selinux -v test security_context_file
getfattr -n security.selinux security_context_file
# file: security_context_file
security.selinux="test"
setfattr -x security.selinux security_context_file
getfattr -n security.selinux security_context_file
security_context_file: security.selinux: No such attribute |
_________________ My blog |
|
Back to top |
|
|
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2253 Location: $TERM
|
Posted: Sun Apr 20, 2014 5:23 am Post subject: |
|
|
Ok, got it. Coreutils was not build with selinux. _________________ My blog |
|
Back to top |
|
|
|