Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot get chcon to work.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Thu Apr 17, 2014 4:46 pm    Post subject: Cannot get chcon to work. Reply with quote

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
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Fri Apr 18, 2014 7:45 am    Post subject: Reply with quote

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
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Sun Apr 20, 2014 5:23 am    Post subject: Reply with quote

Ok, got it. Coreutils was not build with selinux.
_________________
My blog
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum