Re: Issue with an unlabelled file

2014-01-03 Thread William Roberts
Ha I forgot to tell him to remove n... Doh On Jan 3, 2014 11:57 AM, Stephen Smalley stephen.smal...@gmail.com wrote: The -n option to restorecon means Do Not change, i.e. do not set the context. When combined with the -v option (verbose), it shows what it would set but does not apply the

Re: Issue with an unlabelled file

2014-01-03 Thread sri linux
Thanks for the inputs. After removing -n from restorecon, I see that file context is changed as desired. But, when I try restorecon from *.rc file, it doesn't seem to work! On Fri, Jan 3, 2014 at 12:57 PM, William Roberts bill.c.robe...@gmail.comwrote: Oh sri said the ext4 is not created at

Re: Issue with an unlabelled file

2013-12-30 Thread William Roberts
And what type of filesystem is it? On Mon, Dec 30, 2013 at 11:28 AM, Stephen Smalley stephen.smal...@gmail.com wrote: Which partition? And how is the file created? On Fri, Dec 27, 2013 at 7:05 PM, sri linux sri4li...@gmail.com wrote: Dear Experts, I have a file in one of the partition, for

Re: Issue with an unlabelled file

2013-12-28 Thread Brandon Whalen
On Fri, Dec 27, 2013 at 7:54 PM, sri linux sri4li...@gmail.com wrote: I tried restorecon from init.rc file, which doesn't have any affect. Also, I tried with an allow rule to allow relabelto, with this I can't build as there is a neverallow rule for this. On Fri, Dec 27, 2013 at 4:05 PM,

Issue with an unlabelled file

2013-12-27 Thread sri linux
Dear Experts, I have a file in one of the partition, for which, I see below as a default context: -rw-rw-r-- system root u:object_r:unlabeled:s0 file_xyz I tried to change the context using type_transition, which doesn't seem to be working - I still see unlabeled in the context.