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
8c70622e
Commit
8c70622e
authored
6 years ago
by
Treehugger Robot
Committed by
Gerrit Code Review
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Always build system and vendor policies (and related artifacts)."
parents
117d69fd
1f4a28b1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Android.mk
+18
-13
18 additions, 13 deletions
Android.mk
with
18 additions
and
13 deletions
Android.mk
+
18
−
13
View file @
8c70622e
...
@@ -195,9 +195,25 @@ LOCAL_MODULE_TAGS := optional
...
@@ -195,9 +195,25 @@ LOCAL_MODULE_TAGS := optional
# as build/target/product/embedded.mk.
# as build/target/product/embedded.mk.
# This conditional inclusion closely mimics the conditional logic
# This conditional inclusion closely mimics the conditional logic
# inside init/init.cpp for loading SELinux policy from files.
# inside init/init.cpp for loading SELinux policy from files.
ifeq
($(PRODUCT_SEPOLICY_SPLIT),true)
# Use split SELinux policy
# Include precompiled policy, unless told otherwise.
ifneq
($(PRODUCT_PRECOMPILED_SEPOLICY),false)
LOCAL_REQUIRED_MODULES
+=
\
precompiled_sepolicy
\
precompiled_sepolicy.plat_and_mapping.sha256
\
endif
# ($(PRODUCT_PRECOMPILED_SEPOLICY),false)
ifneq
($(PRODUCT_SEPOLICY_SPLIT),true)
# The following files are only allowed for non-Treble devices.
LOCAL_REQUIRED_MODULES
+=
\
sepolicy
\
vendor_service_contexts
\
endif
# ($(PRODUCT_SEPOLICY_SPLIT),true)
# These build targets are not used on non-Treble devices. However, we build these to avoid
# divergence between Treble and non-Treble devices.
LOCAL_REQUIRED_MODULES
+=
\
LOCAL_REQUIRED_MODULES
+=
\
$(
platform_mapping_file
)
\
$(
platform_mapping_file
)
\
$(
addsuffix .cil,
$(
PLATFORM_SEPOLICY_COMPAT_VERSIONS
))
\
$(
addsuffix .cil,
$(
PLATFORM_SEPOLICY_COMPAT_VERSIONS
))
\
...
@@ -208,17 +224,6 @@ LOCAL_REQUIRED_MODULES += \
...
@@ -208,17 +224,6 @@ LOCAL_REQUIRED_MODULES += \
secilc
\
secilc
\
plat_sepolicy_vers.txt
\
plat_sepolicy_vers.txt
\
# Include precompiled policy, unless told otherwise
ifneq
($(PRODUCT_PRECOMPILED_SEPOLICY),false)
LOCAL_REQUIRED_MODULES
+=
precompiled_sepolicy precompiled_sepolicy.plat_and_mapping.sha256
endif
else
# The following files are only allowed for non-Treble devices.
LOCAL_REQUIRED_MODULES
+=
\
sepolicy
\
vendor_service_contexts
endif
LOCAL_REQUIRED_MODULES
+=
\
LOCAL_REQUIRED_MODULES
+=
\
build_sepolicy
\
build_sepolicy
\
vendor_file_contexts
\
vendor_file_contexts
\
...
...
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