From 731a54b768d6b61fa5ef2e1bc39cee882c25bcce Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 27 Dec 2016 12:27:06 -0800 Subject: 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.) --- toys/android/getprop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/android') 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]] -- cgit v1.2.3