aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-12-27 12:27:06 -0800
committerRob Landley <rob@landley.net>2016-12-28 22:50:01 -0600
commit731a54b768d6b61fa5ef2e1bc39cee882c25bcce (patch)
treeb0c7807bb34c02bc6b53dcd978e02b6ad28d2c8b
parent45c6b12a0a0f09054ab1fee9197860aee27b2e8a (diff)
downloadtoybox-731a54b768d6b61fa5ef2e1bc39cee882c25bcce.tar.gz
Admit that getprop requires selinux.
The "lsm" portability stuff could abstract this away, but Android doesn't need it, and getprop is meaningless on non-Android. (And if you're just building with the NDK, on recent enough versions of Android you won't be able to read most of the system properties anyway because access to them is increasingly restricted by selinux.)
-rw-r--r--toys/android/getprop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/android/getprop.c b/toys/android/getprop.c
index 305a7a96..390cb985 100644
--- a/toys/android/getprop.c
+++ b/toys/android/getprop.c
@@ -7,7 +7,7 @@ USE_GETPROP(NEWTOY(getprop, ">2Z", TOYFLAG_USR|TOYFLAG_SBIN))
config GETPROP
bool "getprop"
default y
- depends on TOYBOX_ON_ANDROID
+ depends on TOYBOX_ON_ANDROID && TOYBOX_SELINUX
help
usage: getprop [NAME [DEFAULT]]