[Toybox] [toybox] smack support

Rob Landley rob at landley.net
Fri Sep 18 23:34:15 PDT 2015


On 09/17/2015 04:05 PM, Joya Cruz, Alejandro wrote:
> Hi Rob,
> 
> Doing some test between TOYBOX 0.6.0 and Smack I got interested on what
> is the support that is given to Smack.
> The most important user related utilitie it might are:
> ls -Z Show the Smack labels on files. (already on toybox)

I've never been quite sure what the complete todo list is. I got patches
for ls, mkfifo, mknod, mkdir, id, and cp, but I don't think that's a
complete list? (Ah, and here's one for stat...)

> any idea when the rest is coming ( if its coming ) ? 
> chsmack:Show and sett all of the Smack attributes on files.

Dig dig dig... Ok I found chsmack, doesn't look too hard to implement?
(First I've heard of it, though...)

> cp --preserve=xattr: Create a new file with same content and Smack
> attributes as an existing file.

I have a pending patch for that, I just need to grind far enough down in
my todo list.

> id and id -Z to show the current process Smack label.

I thought I'd applied that one already?

(Rummage, rummage... yeah the plumbing's there. Did it not work when you
tried it? I don't have a smack build/test environment. I got a tizen
emulator working once but didn't have a compiler targeting it...)

> ps -Z show information about processes, including their Smack labels.

I'm about 2/3 of the way through implementing ps, it's fairly high
priority to get back to but I'm traveling this week. (I want to include
it in the next release though.)

However, I don't think I ever got a -Z patch for ps? (First I've heard
of it having -Z, actually...)

Rob

 1442644455.0


More information about the Toybox mailing list