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
61dddba7
Commit
61dddba7
authored
12 years ago
by
Geremy Condra
Committed by
Android Git Automerger
12 years ago
Browse files
Options
Downloads
Plain Diff
am
04598de8
: Merge "Replaceable mac_permission.xml support"
* commit '
04598de8
': Replaceable mac_permission.xml support
parents
62495abc
04598de8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Android.mk
+14
-3
14 additions, 3 deletions
Android.mk
with
14 additions
and
3 deletions
Android.mk
+
14
−
3
View file @
61dddba7
...
...
@@ -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.
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