Research
.
Skip Search Box

SELinux Mailing List

Re: strange labeling problem

From: Stephen Smalley <sds_at_epoch.ncsc.mil>
Date: Thu, 08 Apr 2004 09:37:23 -0400


On Thu, 2004-04-08 at 09:32, Stephen Smalley wrote:
> chcon likely never called setfilecon at all, since getfilecon would have
> told it that the file already had the right context. Try setfilecon
> instead. If it had called setfilecon -> setxattr, then SELinux would
> have updated the inode SID accordingly.

This suggests that perhaps chcon should have a force option to force it to relabel even if it thinks that the file already has the correct context. Looks like '-f' is already taken.

-- 
Stephen Smalley <sds@epoch.ncsc.mil>
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
Received on Thu 8 Apr 2004 - 09:37:43 EDT
 

Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009

 
bottom

National Security Agency / Central Security Service