Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
Disable SELinux features for install
Browse files Browse the repository at this point in the history
matchpathcon is not usable on Android
  • Loading branch information
topjohnwu committed May 8, 2021
1 parent d0ff1cc commit c29a868
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions coreutils/install.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,15 @@
//usage: "\n -g GRP Set group ownership"
//usage: "\n -m MODE Set permissions"
//usage: "\n -t DIR Install to DIR"
//usage: IF_SELINUX(
//usage: "\n -Z Set security context"
//usage: )

#include "libbb.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
static const char install_longopts[] ALIGN1 =
IF_FEATURE_VERBOSE(
Expand Down

0 comments on commit c29a868

Please sign in to comment.