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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Matombo
AndroidSystemSEPolicy
Commits
f62baff1
Commit
f62baff1
authored
Jul 10, 2017
by
TreeHugger Robot
Committed by
Android (Google) Code Review
Jul 10, 2017
Browse files
Options
Downloads
Plain Diff
Merge "Make sure platform policy builds with compatible versions."
parents
2cf2e5f3
b04df6e3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Android.mk
+18
-2
18 additions, 2 deletions
Android.mk
prebuilts/api/26.0/nonplat_sepolicy.cil
+6109
-0
6109 additions, 0 deletions
prebuilts/api/26.0/nonplat_sepolicy.cil
with
6127 additions
and
2 deletions
Android.mk
+
18
−
2
View file @
f62baff1
...
@@ -1185,22 +1185,38 @@ $(built_plat_fc) $(built_nonplat_fc) $(built_sepolicy)
...
@@ -1185,22 +1185,38 @@ $(built_plat_fc) $(built_nonplat_fc) $(built_sepolicy)
ifeq
($(PRODUCT_FULL_TREBLE),true)
ifeq
($(PRODUCT_FULL_TREBLE),true)
include
$(CLEAR_VARS)
include
$(CLEAR_VARS)
# For Treble builds run tests verifying that processes are properly labeled and
# For Treble builds run tests verifying that processes are properly labeled and
# permissions granted do not violate the treble model.
# permissions granted do not violate the treble model. Also ensure that treble
# compatibility guarantees are upheld between SELinux version bumps.
LOCAL_MODULE
:=
treble_sepolicy_tests
LOCAL_MODULE
:=
treble_sepolicy_tests
LOCAL_MODULE_CLASS
:=
ETC
LOCAL_MODULE_CLASS
:=
ETC
LOCAL_MODULE_TAGS
:=
tests
LOCAL_MODULE_TAGS
:=
tests
include
$(BUILD_SYSTEM)/base_rules.mk
include
$(BUILD_SYSTEM)/base_rules.mk
# 26.0_compat - the current plat_sepolicy.cil built
# with the compatibility file targeting the 26.0
# SELinux release.
26.0_compat
:=
$(
intermediates
)
/26.0_compat
26.0_mapping_cil
:=
$(
LOCAL_PATH
)
/prebuilts/api/26.0/26.0.cil
26.0_nonplat
:=
$(
LOCAL_PATH
)
/prebuilts/api/26.0/nonplat_sepolicy.cil
$(26.0_compat)
:
PRIVATE_CIL_FILES :=
\
$(built_plat_cil) $(26.0_mapping_cil) $(26.0_nonplat)
$(26.0_compat)
:
$(HOST_OUT_EXECUTABLES)/secilc
\
$(built_plat_cil) $(26.0_mapping_cil) $(26.0_nonplat)
$(
hide
)
$(
HOST_OUT_EXECUTABLES
)
/secilc
-M
true
-G
-N
-c
$(
POLICYVERS
)
\
$(
PRIVATE_CIL_FILES
)
-o
$@
-f
/dev/null
treble_sepolicy_tests
:=
$(
intermediates
)
/treble_sepolicy_tests
treble_sepolicy_tests
:=
$(
intermediates
)
/treble_sepolicy_tests
$(treble_sepolicy_tests)
:
PRIVATE_PLAT_FC := $(built_plat_fc)
$(treble_sepolicy_tests)
:
PRIVATE_PLAT_FC := $(built_plat_fc)
$(treble_sepolicy_tests)
:
PRIVATE_NONPLAT_FC := $(built_nonplat_fc)
$(treble_sepolicy_tests)
:
PRIVATE_NONPLAT_FC := $(built_nonplat_fc)
$(treble_sepolicy_tests)
:
PRIVATE_SEPOLICY := $(built_sepolicy)
$(treble_sepolicy_tests)
:
PRIVATE_SEPOLICY := $(built_sepolicy)
$(treble_sepolicy_tests)
:
$(HOST_OUT_EXECUTABLES)/treble_sepolicy_tests.py
\
$(treble_sepolicy_tests)
:
$(HOST_OUT_EXECUTABLES)/treble_sepolicy_tests.py
\
$(built_plat_fc) $(built_nonplat_fc) $(built_sepolicy)
$(built_plat_fc) $(built_nonplat_fc) $(built_sepolicy)
$(26.0_compat)
@
mkdir
-p
$(
dir
$@
)
@
mkdir
-p
$(
dir
$@
)
$(
hide
)
python
$(
HOST_OUT_EXECUTABLES
)
/treble_sepolicy_tests.py
-l
$(
HOST_OUT
)
/lib64
-f
$(
PRIVATE_PLAT_FC
)
-f
$(
PRIVATE_NONPLAT_FC
)
-p
$(
PRIVATE_SEPOLICY
)
$(
hide
)
python
$(
HOST_OUT_EXECUTABLES
)
/treble_sepolicy_tests.py
-l
$(
HOST_OUT
)
/lib64
-f
$(
PRIVATE_PLAT_FC
)
-f
$(
PRIVATE_NONPLAT_FC
)
-p
$(
PRIVATE_SEPOLICY
)
$(
hide
)
touch
$@
$(
hide
)
touch
$@
26.0_compat
:=
endif
# ($(PRODUCT_FULL_TREBLE),true)
endif
# ($(PRODUCT_FULL_TREBLE),true)
#################################
#################################
...
...
...
...
This diff is collapsed.
Click to expand it.
prebuilts/api/26.0/nonplat_sepolicy.cil
0 → 100644
+
6109
−
0
View file @
f62baff1
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
sign in
to comment