On Mon, 2014-01-06 at 18:11 +0800, Yang Chengwei wrote:
> On Thu, Jan 02, 2014 at 10:48:16PM +0000, Schaufler, Casey wrote:
> > You can change the Smack label of your process to “_” by:
> > 
> >  
> > 
> >                 # echo _ > /proc/self/attr/current
> 
> Isn't the /proc/self point to the current "echo" process?

Not always. This relies on echo being a builtin command of the current
shell, so the command really does change the label of the current shell
process when using e.g. bash.

It's probably safer to be explicit:

  echo _ > /proc/$$/attr/current

-- 
Best Regards, Patrick Ohly

The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.


_______________________________________________
Dev mailing list
[email protected]
https://lists.tizen.org/listinfo/dev

Reply via email to