Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
external_sepolicy
Commits
04598de8
Commit
04598de8
authored
12 years ago
by
Geremy Condra
Committed by
Gerrit Code Review
12 years ago
Browse files
Options
Download
Plain Diff
Merge "Replaceable mac_permission.xml support"
parents
669f6792
2c8a55dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
Android.mk
Android.mk
+14
-3
No files found.
Android.mk
View file @
04598de8
...
...
@@ -10,6 +10,13 @@ POLICYVERS ?= 24
MLS_SENS
=
1
MLS_CATS
=
1024
MAC_PERMISSION_FILE
=
mac_permissions.xml
# Detect if someone tries to union the mac permissions policy file
$(if
$(filter
$(MAC_PERMISSION_FILE),
$(BOARD_SEPOLICY_UNION)),
\
$(error
Cannot
specify
$(MAC_PERMISSION_FILE)
in
BOARD_SEPOLICY_UNION)
\
)
# Quick edge case error detection for BOARD_SEPOLICY_REPLACE.
# Builds the singular path for each replace file.
sepolicy_replace_paths
:=
...
...
@@ -148,15 +155,19 @@ include $(BUILD_PREBUILT)
##################################
include
$(CLEAR_VARS)
LOCAL_MODULE
:=
mac_permissions.xml
LOCAL_MODULE
:=
$(MAC_PERMISSION_FILE)
LOCAL_MODULE_CLASS
:=
ETC
LOCAL_MODULE_TAGS
:=
optional
LOCAL_MODULE_PATH
:=
$(TARGET_OUT_ETC)
/security
LOCAL_SRC_FILES
:=
$(LOCAL_MODULE)
include
$(BUILD_SYSTEM)/base_rules.mk
include
$(BUILD_PREBUILT)
mmac
:=
$(intermediates)
/
$(MAC_PERMISSION_FILE)
$(mmac)
:
$(call build_policy
,
$(MAC_PERMISSION_FILE))
@
mkdir
-p
$(
dir
$@
)
$(hide)
cp
$^
$@
mmac
:=
##################################
build_policy
:=
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment