Disable SELinux features for install

matchpathcon is not usable on Android
This commit is contained in:
topjohnwu 2020-05-02 01:48:30 -07:00
parent 4e6f42c344
commit 6de85bca13

View File

@ -34,13 +34,15 @@
//usage: "\n -g GRP Set group ownership" //usage: "\n -g GRP Set group ownership"
//usage: "\n -m MODE Set permissions" //usage: "\n -m MODE Set permissions"
//usage: "\n -t DIR Install to DIR" //usage: "\n -t DIR Install to DIR"
//usage: IF_SELINUX(
//usage: "\n -Z Set security context"
//usage: )
#include "libbb.h" #include "libbb.h"
#include "libcoreutils/coreutils.h" #include "libcoreutils/coreutils.h"
// Force disable SELinux features for this applet
#undef ENABLE_SELINUX
#undef IF_SELINUX
#define IF_SELINUX(...)
#if ENABLE_FEATURE_INSTALL_LONG_OPTIONS #if ENABLE_FEATURE_INSTALL_LONG_OPTIONS
static const char install_longopts[] ALIGN1 = static const char install_longopts[] ALIGN1 =
IF_FEATURE_VERBOSE( IF_FEATURE_VERBOSE(