Skip to contentSkip to conversation

Add build property ro.build.selinux when building

PATCH In review William Roberts 2 participants 2 messages Jul 10, 2012 – Jul 12, 2012 1 message not in the archive SELinux security module

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 Add build property ro.build.selinux when building

When building with HAVE_SELINUX:=true, this build property will be added to the systems properties.

---
 core/main.mk |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
core/main.mk +0 -0
index 3d8d6e0..e527160 100644
@@ -218,6 +218,10 @@ ifneq ($(filter sdk win_sdk

sdk_addon,$(MAKECMDGOALS)),)
is_sdk_build := true
endif

+## have selinux ##
+ifeq ($(HAVE_SELINUX),true) +ADDITIONAL_BUILD_PROPERTIES += ro.build.selinux=1 +endif # HAVE_SELINUX

## user/userdebug ##

--
1.7.0.4

Signature · 3 lines
Respectfully,

William C Roberts
#2 lore raw
Quoted 11 lines · William Roberts

When building with HAVE_SELINUX:=true, this build property will be added to the systems properties.

---
 core/main.mk |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
core/main.mk +0 -0
index 3d8d6e0..e527160 100644

core/main.mk ifneq ($(filter sdk win_sdk sdk_addon, · line 227

Quoted 10 lines
core/main.mk +4 -0
@@ -218,6 +218,10 @@ ifneq ($(filter sdk win_sdk sdk_addon,
 $(MAKECMDGOALS)),)
 is_sdk_build := true
 endif
 
+## have selinux ##
+ifeq ($(HAVE_SELINUX),true)
+ADDITIONAL_BUILD_PROPERTIES += ro.build.selinux=1
+endif # HAVE_SELINUX
 
 ## user/userdebug ##

Already merged on master (and thus to seandroid). Not sure if you wanted it on 4.0.4 or 4.1.1. Subject line needs to identify target project and branch(es).

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.