aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-12-11 20:17:28 -0600
committerElliott Hughes <enh@google.com>2014-12-11 20:17:28 -0600
commite75b1d8d96ea104e5f4fa3f7d06e289cbbedc435 (patch)
tree49bc141df9e128074d4e14d037f0740882648db0 /scripts
parented053c0fa6ea2bb65be902d0ad437ab4f2031552 (diff)
downloadtoybox-e75b1d8d96ea104e5f4fa3f7d06e289cbbedc435.tar.gz
here's a patch that should let us replace toolbox's chcon.
(it also adds a feature, -R, because toybox makes that so easy.) you'll probably want fancier configuration here because although the --as-needed works okay, a typical Ubuntu box will have the .so but not the .h files. i did consider adding a toys/selinux/ directory, but given that existing tools like ls and id will want -Z SELinux options, i wasn't sure whether you'd think it was worth segregating the SELinux-only toys. note that this won't help the tizen smack users (and patch for smack won't help SELinux users). so you might want to think about where you'd like us to be aiming: #if USE_SELINUX/USE_SMACK in all the relevant places, or a toys/selinux and a toys/smack (though we'd still need #if in at least ls and id), or a lib/security.c that concentrates all the differences into one file?
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/make.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/make.sh b/scripts/make.sh
index 167c3d51..4430e3b1 100755
--- a/scripts/make.sh
+++ b/scripts/make.sh
@@ -89,7 +89,7 @@ then
# for it.
> generated/optlibs.dat
- for i in util crypt m resolv
+ for i in util crypt m resolv selinux
do
echo "int main(int argc, char *argv[]) {return 0;}" | \
${CROSS_COMPILE}${CC} $CFLAGS -xc - -o /dev/null -Wl,--as-needed -l$i > /dev/null 2>/dev/null &&