OSDN Git Service

This patch adds a TOYBOX_SELINUX configuration option to control both
authorElliott Hughes <enh@google.com>
Fri, 16 Jan 2015 19:36:53 +0000 (13:36 -0600)
committerElliott Hughes <enh@google.com>
Sat, 17 Jan 2015 03:06:18 +0000 (19:06 -0800)
commitf7004765a2c22a7aaab17654e31b852e1c3c88d6
treeab31a03e5e9f6e02de943478acfa293312c9b439
parente605b7fdeb42f4c054c9a6f781df7efcb0c006be
This patch adds a TOYBOX_SELINUX configuration option to control both
the SELinux commands (such as chcon) and the SELinux-specific options
to regular commands (such as ls -Z).

This lets us #include <selinux/selinux.h> in portability.h.

I've also fixed chcon to insist on being given the a context argument.

This patch also adds -Z to id and fixes id's regular output (-G should
be separated by spaces, non-G output should be separated by commas,
and you don't want a double comma where the egid is omitted from the
list of groups).
Config.in
lib/portability.h
toys/pending/chcon.c
toys/posix/id.c