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
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test
platform
system
sepolicy
Commits
84b3879a
Commit
84b3879a
authored
Apr 7, 2017
by
Dan Cashman
Committed by
android-build-merger
Apr 7, 2017
Browse files
Options
Downloads
Plain Diff
Move mapping_sepolicy.cil to /system partition.
am:
04ef57bf
Change-Id: I906f85514efb4301ac0bafaf140deba7be76cdee
parents
8da8e872
04ef57bf
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Android.mk
+22
-22
22 additions, 22 deletions
Android.mk
CleanSpec.mk
+4
-0
4 additions, 0 deletions
CleanSpec.mk
with
26 additions
and
22 deletions
Android.mk
+
22
−
22
View file @
84b3879a
...
...
@@ -15,14 +15,14 @@ LOCAL_REQUIRED_MODULES += \
mapping_sepolicy.cil
\
nonplat_sepolicy.cil
\
plat_sepolicy.cil
\
plat_sepolicy.cil.sha256
\
plat_
and_mapping_
sepolicy.cil.sha256
\
secilc
\
nonplat_file_contexts
\
plat_file_contexts
# Include precompiled policy, unless told otherwise
ifneq
($(PRODUCT_PRECOMPILED_SEPOLICY),false)
LOCAL_REQUIRED_MODULES
+=
precompiled_sepolicy precompiled_sepolicy.plat.sha256
LOCAL_REQUIRED_MODULES
+=
precompiled_sepolicy precompiled_sepolicy.plat
_and_mapping
.sha256
endif
else
...
...
@@ -310,24 +310,10 @@ 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
LOCAL_PROPRIETARY_MODULE
:=
true
LOCAL_MODULE_PATH
:=
$(
TARGET_OUT_VENDOR
)
/etc/selinux
LOCAL_MODULE_PATH
:=
$(
TARGET_OUT
)
/etc/selinux
include
$(BUILD_SYSTEM)/base_rules.mk
...
...
@@ -357,6 +343,19 @@ current_mapping.cil :=
#################################
include
$(CLEAR_VARS)
LOCAL_MODULE
:=
plat_and_mapping_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) $(built_mapping_cil)
cat
$^
|
sha256sum
|
cut
-d
' '
-f1
>
$@
#################################
include
$(CLEAR_VARS)
LOCAL_MODULE
:=
nonplat_sepolicy.cil
LOCAL_MODULE_CLASS
:=
ETC
LOCAL_MODULE_TAGS
:=
optional
...
...
@@ -444,10 +443,11 @@ $(built_plat_cil) $(built_mapping_cil) $(built_nonplat_cil)
built_precompiled_sepolicy
:=
$(
LOCAL_BUILT_MODULE
)
#################################
# SHA-256 digest of the plat_sepolicy.cil file against which precompiled_policy was built.
# SHA-256 digest of the plat_sepolicy.cil and mapping_sepolicy.cil files against
# which precompiled_policy was built.
#################################
include
$(CLEAR_VARS)
LOCAL_MODULE
:=
precompiled_sepolicy.plat.sha256
LOCAL_MODULE
:=
precompiled_sepolicy.plat
_and_mapping
.sha256
LOCAL_MODULE_CLASS
:=
ETC
LOCAL_MODULE_TAGS
:=
optional
LOCAL_PROPRIETARY_MODULE
:=
true
...
...
@@ -455,9 +455,9 @@ 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
>
$@
$(LOCAL_BUILT_MODULE)
:
PRIVATE_CIL_FILE
S
:= $(built_plat_cil)
$(built_mapping_cil)
$(LOCAL_BUILT_MODULE)
:
$(built_precompiled_sepolicy) $(built_plat_cil)
$(built_mapping_cil)
cat
$(
PRIVATE_CIL_FILE
S
)
|
sha256sum
|
cut
-d
' '
-f1
>
$@
#################################
include
$(CLEAR_VARS)
...
...
...
...
This diff is collapsed.
Click to expand it.
CleanSpec.mk
+
4
−
0
View file @
84b3879a
...
...
@@ -65,4 +65,8 @@ $(call add-clean-step, rm -rf $(PRODUCT_OUT)/root/property_contexts)
$(
call
add-clean-step,
rm
-rf
$(
PRODUCT_OUT
)
/recovery/root/property_contexts
)
$(
call
add-clean-step,
rm
-rf
$(
PRODUCT_OUT
)
/system/etc/selinux/plat_property_contexts
)
$(
call
add-clean-step,
rm
-rf
$(
PRODUCT_OUT
)
/vendor/etc/selinux/nonplat_property_contexts
)
$(
call
add-clean-step,
rm
-rf
$(
PRODUCT_OUT
)
/vendor/etc/selinux/mapping_sepolicy.cil
)
$(
call
add-clean-step,
rm
-rf
$(
PRODUCT_OUT
)
/system/etc/selinux/plat_sepolicy.cil.sha256
)
$(
call
add-clean-step,
rm
-rf
$(
PRODUCT_OUT
)
/vendor/etc/selinux/precompiled_sepolicy.plat.sha256
)
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