Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidSystemSEPolicy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemSEPolicy
Commits
af56ac19
Commit
af56ac19
authored
12 years ago
by
Matt Finifter
Browse files
Options
Downloads
Patches
Plain Diff
Include su.te only for userdebug/eng builds.
Change-Id: Ia544f13910abbe5e9f6a6cafae397415a41a7a94
parent
d045eaec
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Android.mk
+15
-2
15 additions, 2 deletions
Android.mk
conditional/su.te
+0
-0
0 additions, 0 deletions
conditional/su.te
with
15 additions
and
2 deletions
Android.mk
+
15
−
2
View file @
af56ac19
...
...
@@ -29,11 +29,24 @@ LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
include
$(BUILD_SYSTEM)/base_rules.mk
sepolicy_policy.conf
:=
$(
intermediates
)
/policy.conf
# Build up the list of policy files (the order matters, since they will all be
# cat'd together)
POLICY_DEPENDS
:=
$(
wildcard
$(
addprefix
$(
LOCAL_PATH
)
/,security_classes initial_sids access_vectors global_macros mls_macros mls policy_capabilities te_macros attributes
*
.te
))
# Add extra policy for "su", but only for eng and userdebug builds
ifneq
(,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
POLICY_DEPENDS
+=
$(
wildcard
$(
addprefix
$(
LOCAL_PATH
)
/conditional/, su.te
))
endif
# Add in the rest of the policy
POLICY_DEPENDS
+=
$(
wildcard
$(
LOCAL_POLICY_TE
)
$(
addprefix
$(
LOCAL_PATH
)
/, roles
users
ocontexts
))
$(sepolicy_policy.conf)
:
PRIVATE_MLS_SENS := $(MLS_SENS)
$(sepolicy_policy.conf)
:
PRIVATE_MLS_CATS := $(MLS_CATS)
$(sepolicy_policy.conf)
:
$(
wildcard $(addprefix $(LOCAL_PATH)/
,
security_classes initial_sids access_vectors global_macros mls_macros mls policy_capabilities te_macros attributes *.te) $(LOCAL_POLICY_TE) $(addprefix $(LOCAL_PATH)/
,
roles users ocontexts)
)
$(sepolicy_policy.conf)
:
$(
POLICY_DEPENDS
)
@
mkdir
-p
$(
dir
$@
)
$(
hide
)
m4
-D
mls_num_sens
=
$(
PRIVATE_MLS_SENS
)
-D
mls_num_cats
=
$(
PRIVATE_MLS_CATS
)
-s
$
^
>
$@
$(
hide
)
m4
-D
mls_num_sens
=
$(
PRIVATE_MLS_SENS
)
-D
mls_num_cats
=
$(
PRIVATE_MLS_CATS
)
-s
$
(
POLICY_DEPENDS
)
>
$@
$(LOCAL_BUILT_MODULE)
:
$(sepolicy_policy.conf) $(HOST_OUT_EXECUTABLES)/checkpolicy
@
mkdir
-p
$(
dir
$@
)
...
...
This diff is collapsed.
Click to expand it.
su.te
→
conditional/
su.te
+
0
−
0
View file @
af56ac19
File moved
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment