comparison lib/portability.h @ 1660:b84024067049 draft

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).
author Elliott Hughes <enh@google.com>
date Fri, 16 Jan 2015 13:36:53 -0600
parents aafd2f28245a
children d4bc084916fd
comparison
equal deleted inserted replaced
1659:4a68c2b7787c 1660:b84024067049
234 pid_t xfork(void); 234 pid_t xfork(void);
235 #endif 235 #endif
236 236
237 //#define strncpy(...) @@strncpyisbadmmkay@@ 237 //#define strncpy(...) @@strncpyisbadmmkay@@
238 //#define strncat(...) @@strcatisbadmmkay@@ 238 //#define strncat(...) @@strcatisbadmmkay@@
239
240 #if CFG_TOYBOX_SELINUX
241 #include <selinux/selinux.h>
242 #endif