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
58db47cf
Commit
58db47cf
authored
8 years ago
by
Alex Klyubin
Committed by
android-build-merger
8 years ago
Browse files
Options
Downloads
Plain Diff
Precompiled kernel policy for on-device use am:
193dccda
am:
8c9c49da
am:
d047ae0b
Change-Id: I28e7b8313ebc41939d5bbd9808c2fce20c7c2343
parents
f4fe3069
d047ae0b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Android.mk
+52
-0
52 additions, 0 deletions
Android.mk
with
52 additions
and
0 deletions
Android.mk
+
52
−
0
View file @
58db47cf
...
...
@@ -254,6 +254,19 @@ plat_policy.conf :=
#################################
include
$(CLEAR_VARS)
LOCAL_MODULE
:=
plat_sepolicy.cil.sha256
LOCAL_MODULE_CLASS
:=
ETC
LOCAL_MODULE_TAGS
:=
optional
LOCAL_MODULE_PATH
=
$(
TARGET_OUT
)
/etc/selinux
include
$(BUILD_SYSTEM)/base_rules.mk
$(LOCAL_BUILT_MODULE)
:
$(built_plat_cil)
sha256sum
$^
|
cut
-d
' '
-f1
>
$@
#################################
include
$(CLEAR_VARS)
LOCAL_MODULE
:=
mapping_sepolicy.cil
LOCAL_MODULE_CLASS
:=
ETC
LOCAL_MODULE_TAGS
:=
optional
...
...
@@ -347,9 +360,46 @@ $(built_mapping_cil)
$(
hide
)
$(
HOST_OUT_EXECUTABLES
)
/secilc
-M
true
-c
$(
POLICYVERS
)
\
$(
PRIVATE_DEP_CIL_FILES
)
$@
-o
/dev/null
-f
/dev/null
built_nonplat_cil
:=
$(
LOCAL_BUILT_MODULE
)
nonplat_policy.conf
:=
nonplat_policy_raw
:=
#################################
include
$(CLEAR_VARS)
LOCAL_MODULE
:=
precompiled_sepolicy
LOCAL_MODULE_CLASS
:=
ETC
LOCAL_MODULE_TAGS
:=
optional
LOCAL_PROPRIETARY_MODULE
:=
true
LOCAL_MODULE_PATH
:=
$(
TARGET_OUT_VENDOR
)
/etc/selinux
include
$(BUILD_SYSTEM)/base_rules.mk
$(LOCAL_BUILT_MODULE)
:
PRIVATE_CIL_FILES :=
\
$(built_plat_cil) $(built_mapping_cil) $(built_nonplat_cil)
$(LOCAL_BUILT_MODULE)
:
$(HOST_OUT_EXECUTABLES)/secilc
\
$(built_plat_cil) $(built_mapping_cil) $(built_nonplat_cil)
$(
hide
)
$(
HOST_OUT_EXECUTABLES
)
/secilc
-M
true
-c
$(
POLICYVERS
)
\
$(
PRIVATE_CIL_FILES
)
-o
$@
-f
/dev/null
built_precompiled_sepolicy
:=
$(
LOCAL_BUILT_MODULE
)
#################################
# SHA-256 digest of the plat_sepolicy.cil file against which precompiled_policy was built.
#################################
include
$(CLEAR_VARS)
LOCAL_MODULE
:=
precompiled_sepolicy.plat.sha256
LOCAL_MODULE_CLASS
:=
ETC
LOCAL_MODULE_TAGS
:=
optional
LOCAL_PROPRIETARY_MODULE
:=
true
LOCAL_MODULE_PATH
:=
$(
TARGET_OUT_VENDOR
)
/etc/selinux
include
$(BUILD_SYSTEM)/base_rules.mk
$(LOCAL_BUILT_MODULE)
:
PRIVATE_CIL_FILE := $(built_plat_cil)
$(LOCAL_BUILT_MODULE)
:
$(built_precompiled_sepolicy) $(built_plat_cil)
sha256sum
$(
PRIVATE_CIL_FILE
)
|
cut
-d
' '
-f1
>
$@
#################################
include
$(CLEAR_VARS)
# build this target so that we can still perform neverallow checks
...
...
@@ -1033,9 +1083,11 @@ built_plat_cil.recovery :=
built_mapping_cil
:=
built_mapping_cil.recovery
:=
built_plat_pc
:=
built_nonplat_cil
:=
built_nonplat_pc
:=
built_nonplat_sc
:=
built_plat_sc
:=
built_precompiled_sepolicy
:=
built_sepolicy
:=
built_plat_svc
:=
built_nonplat_svc
:=
...
...
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