Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sepolicy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test
platform
system
sepolicy
Commits
eab23895
Commit
eab23895
authored
12 years ago
by
Jean-Baptiste Queru
Committed by
Android (Google) Code Review
12 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Revert "Include su.te only for userdebug/eng builds."" into jb-mr1-dev-plus-aosp
parents
8c87a18d
9ceb47b0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Android.mk
+2
-15
2 additions, 15 deletions
Android.mk
su.te
+0
-0
0 additions, 0 deletions
su.te
with
2 additions
and
15 deletions
Android.mk
+
2
−
15
View file @
eab23895
...
@@ -62,24 +62,11 @@ LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
...
@@ -62,24 +62,11 @@ LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
include
$(BUILD_SYSTEM)/base_rules.mk
include
$(BUILD_SYSTEM)/base_rules.mk
sepolicy_policy.conf
:=
$(
intermediates
)
/policy.conf
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
:=
$(
call build_policy, 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
+=
$(
call build_policy, roles
users
initial_sid_contexts fs_use genfs_contexts port_contexts
)
$(sepolicy_policy.conf)
:
PRIVATE_MLS_SENS := $(MLS_SENS)
$(sepolicy_policy.conf)
:
PRIVATE_MLS_SENS := $(MLS_SENS)
$(sepolicy_policy.conf)
:
PRIVATE_MLS_CATS := $(MLS_CATS)
$(sepolicy_policy.conf)
:
PRIVATE_MLS_CATS := $(MLS_CATS)
$(sepolicy_policy.conf)
:
$(
POLICY_DEPENDS
)
$(sepolicy_policy.conf)
:
$(
call build_policy
,
security_classes initial_sids access_vectors global_macros mls_macros mls policy_capabilities te_macros attributes *.te roles users initial_sid_contexts fs_use genfs_contexts port_contexts
)
@
mkdir
-p
$(
dir
$@
)
@
mkdir
-p
$(
dir
$@
)
$(
hide
)
m4
-D
mls_num_sens
=
$(
PRIVATE_MLS_SENS
)
-D
mls_num_cats
=
$(
PRIVATE_MLS_CATS
)
-s
$
(
POLICY_DEPENDS
)
>
$@
$(
hide
)
m4
-D
mls_num_sens
=
$(
PRIVATE_MLS_SENS
)
-D
mls_num_cats
=
$(
PRIVATE_MLS_CATS
)
-s
$
^
>
$@
$(LOCAL_BUILT_MODULE)
:
$(sepolicy_policy.conf) $(HOST_OUT_EXECUTABLES)/checkpolicy
$(LOCAL_BUILT_MODULE)
:
$(sepolicy_policy.conf) $(HOST_OUT_EXECUTABLES)/checkpolicy
@
mkdir
-p
$(
dir
$@
)
@
mkdir
-p
$(
dir
$@
)
...
...
This diff is collapsed.
Click to expand it.
conditional/
su.te
→
su.te
+
0
−
0
View file @
eab23895
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