Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
William Roberts | f0e0a94 | 2012-08-27 15:41:15 -0700 | [diff] [blame] | 2 | |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 3 | include $(CLEAR_VARS) |
| 4 | |
| 5 | # SELinux policy version. |
Stephen Smalley | b4f1706 | 2015-03-13 10:03:52 -0400 | [diff] [blame] | 6 | # Must be <= /sys/fs/selinux/policyvers reported by the Android kernel. |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 7 | # Must be within the compatibility range reported by checkpolicy -V. |
Jeff Vander Stoep | 3a0ce49 | 2015-12-07 08:30:43 -0800 | [diff] [blame] | 8 | POLICYVERS ?= 30 |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 9 | |
| 10 | MLS_SENS=1 |
| 11 | MLS_CATS=1024 |
| 12 | |
Stephen Smalley | b4f1706 | 2015-03-13 10:03:52 -0400 | [diff] [blame] | 13 | ifdef BOARD_SEPOLICY_REPLACE |
| 14 | $(error BOARD_SEPOLICY_REPLACE is no longer supported; please remove from your BoardConfig.mk or other .mk file.) |
| 15 | endif |
| 16 | |
| 17 | ifdef BOARD_SEPOLICY_IGNORE |
| 18 | $(error BOARD_SEPOLICY_IGNORE is no longer supported; please remove from your BoardConfig.mk or other .mk file.) |
| 19 | endif |
Stephen Smalley | 5b340be | 2012-03-06 11:12:41 -0500 | [diff] [blame] | 20 | |
Stephen Smalley | 8e0ca88 | 2015-04-01 10:14:56 -0400 | [diff] [blame] | 21 | ifdef BOARD_SEPOLICY_UNION |
| 22 | $(warning BOARD_SEPOLICY_UNION is no longer required - all files found in BOARD_SEPOLICY_DIRS are implicitly unioned; please remove from your BoardConfig.mk or other .mk file.) |
| 23 | endif |
Robert Craig | 6b0ff47 | 2014-01-29 13:10:58 -0500 | [diff] [blame] | 24 | |
William Roberts | d218558 | 2015-07-16 11:28:02 -0700 | [diff] [blame] | 25 | ifdef BOARD_SEPOLICY_M4DEFS |
| 26 | LOCAL_ADDITIONAL_M4DEFS := $(addprefix -D, $(BOARD_SEPOLICY_M4DEFS)) |
| 27 | endif |
| 28 | |
dcashman | cc39f63 | 2016-07-22 13:13:11 -0700 | [diff] [blame] | 29 | # sepolicy is now divided into multiple portions: |
| 30 | # public - policy exported on which non-platform policy developers may write |
| 31 | # additional policy. types and attributes are versioned and included in |
| 32 | # delivered non-platform policy, which is to be combined with platform policy. |
| 33 | # private - platform-only policy required for platform functionality but which |
| 34 | # is not exported to vendor policy developers and as such may not be assumed |
| 35 | # to exist. |
| 36 | # mapping - TODO. This contains policy statements which map the attributes |
| 37 | # exposed in the public policy of previous versions to the concrete types used |
| 38 | # in this policy to ensure that policy targeting attributes from public |
| 39 | # policy from an older platform version continues to work. |
| 40 | |
dcashman | 2e00e63 | 2016-10-12 14:58:09 -0700 | [diff] [blame^] | 41 | # build process for device: |
dcashman | cc39f63 | 2016-07-22 13:13:11 -0700 | [diff] [blame] | 42 | # 1) convert policies to CIL: |
| 43 | # - private + public platform policy to CIL |
| 44 | # - mapping file to CIL (should already be in CIL form) |
| 45 | # - non-platform public policy to CIL |
| 46 | # - non-platform public + private policy to CIL |
| 47 | # 2) attributize policy |
dcashman | cc39f63 | 2016-07-22 13:13:11 -0700 | [diff] [blame] | 48 | # - run script which takes non-platform public and non-platform combined |
| 49 | # private + public policy and produces attributized and versioned |
| 50 | # non-platform policy |
| 51 | # 3) combine policy files |
| 52 | # - combine mapping, platform and non-platform policy. |
| 53 | # - compile output binary policy file |
| 54 | |
| 55 | PLAT_PUBLIC_POLICY := $(LOCAL_PATH)/public |
| 56 | PLAT_PRIVATE_POLICY := $(LOCAL_PATH)/private |
dcashman | 2e00e63 | 2016-10-12 14:58:09 -0700 | [diff] [blame^] | 57 | REQD_MASK_POLICY := $(LOCAL_PATH)/reqd_mask |
| 58 | |
| 59 | # TODO: move to README when doing the README update and finalizing versioning. |
| 60 | # BOARD_SEPOLICY_VERS should contain the platform version identifier |
| 61 | # corresponding to the platform on which the non-platform policy is to be |
| 62 | # based. If unspecified, this will build against the current public platform |
| 63 | # policy in tree. |
| 64 | # BOARD_SEPOLICY_VERS_DIR should contain the public platform policy which |
| 65 | # is associated with the given BOARD_SEPOLICY_VERS. The policy therein will be |
| 66 | # versioned according to the BOARD_SEPOLICY_VERS identifier and included as |
| 67 | # part of the non-platform policy to ensure removal of access in future |
| 68 | # platform policy does not break non-platform policy. |
| 69 | ifndef BOARD_SEPOLICY_VERS |
| 70 | $(warning BOARD_SEPOLICY_VERS not specified, assuming current platform version) |
| 71 | BOARD_SEPOLICY_VERS := current |
| 72 | BOARD_SEPOLICY_VERS_DIR := $(PLAT_PUBLIC_POLICY) |
| 73 | else |
| 74 | ifndef BOARD_SEPOLICY_VERS_DIR |
| 75 | $(error BOARD_SEPOLICY_VERS_DIR not specified for versioned sepolicy.) |
| 76 | endif |
| 77 | endif |
dcashman | cc39f63 | 2016-07-22 13:13:11 -0700 | [diff] [blame] | 78 | |
| 79 | ########################################################### |
| 80 | # Compute policy files to be used in policy build. |
| 81 | # $(1): files to include |
| 82 | # $(2): directories in which to find files |
| 83 | ########################################################### |
| 84 | |
| 85 | define build_policy |
| 86 | $(foreach type, $(1), $(foreach file, $(addsuffix /$(type), $(2)), $(sort $(wildcard $(file))))) |
| 87 | endef |
William Roberts | 29d1468 | 2016-01-04 12:20:57 -0800 | [diff] [blame] | 88 | |
William Roberts | 49693f1 | 2016-01-04 12:20:57 -0800 | [diff] [blame] | 89 | # Builds paths for all policy files found in BOARD_SEPOLICY_DIRS. |
| 90 | # $(1): the set of policy name paths to build |
dcashman | cc39f63 | 2016-07-22 13:13:11 -0700 | [diff] [blame] | 91 | build_device_policy = $(call build_policy, $(1), $(BOARD_SEPOLICY_DIRS)) |
William Roberts | 49693f1 | 2016-01-04 12:20:57 -0800 | [diff] [blame] | 92 | |
Richard Haines | c8801fe | 2015-12-11 10:39:19 +0000 | [diff] [blame] | 93 | # Add a file containing only a newline in-between each policy configuration |
| 94 | # 'contexts' file. This will allow OEM policy configuration files without a |
| 95 | # final newline (0x0A) to be built correctly by the m4(1) macro processor. |
| 96 | # $(1): the set of contexts file names. |
| 97 | # $(2): the file containing only 0x0A. |
| 98 | add_nl = $(foreach entry, $(1), $(subst $(entry), $(entry) $(2), $(entry))) |
| 99 | |
dcashman | 704741a | 2014-07-25 19:11:52 -0700 | [diff] [blame] | 100 | sepolicy_build_files := security_classes \ |
| 101 | initial_sids \ |
| 102 | access_vectors \ |
| 103 | global_macros \ |
Nick Kralevich | a17a266 | 2014-11-05 15:30:41 -0800 | [diff] [blame] | 104 | neverallow_macros \ |
dcashman | 704741a | 2014-07-25 19:11:52 -0700 | [diff] [blame] | 105 | mls_macros \ |
dcashman | 2e00e63 | 2016-10-12 14:58:09 -0700 | [diff] [blame^] | 106 | mls_decl \ |
dcashman | 704741a | 2014-07-25 19:11:52 -0700 | [diff] [blame] | 107 | mls \ |
| 108 | policy_capabilities \ |
| 109 | te_macros \ |
| 110 | attributes \ |
Jeff Vander Stoep | cbaa2b7 | 2015-12-22 10:39:34 -0800 | [diff] [blame] | 111 | ioctl_defines \ |
Jeff Vander Stoep | de9b530 | 2015-06-05 15:28:55 -0700 | [diff] [blame] | 112 | ioctl_macros \ |
dcashman | 704741a | 2014-07-25 19:11:52 -0700 | [diff] [blame] | 113 | *.te \ |
dcashman | 2e00e63 | 2016-10-12 14:58:09 -0700 | [diff] [blame^] | 114 | roles_decl \ |
dcashman | 704741a | 2014-07-25 19:11:52 -0700 | [diff] [blame] | 115 | roles \ |
| 116 | users \ |
| 117 | initial_sid_contexts \ |
| 118 | fs_use \ |
| 119 | genfs_contexts \ |
| 120 | port_contexts |
| 121 | |
Ying Wang | 02fb5f3 | 2012-01-17 17:51:09 -0800 | [diff] [blame] | 122 | ################################## |
| 123 | include $(CLEAR_VARS) |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 124 | |
Richard Haines | c8801fe | 2015-12-11 10:39:19 +0000 | [diff] [blame] | 125 | LOCAL_MODULE := sectxfile_nl |
| 126 | LOCAL_MODULE_CLASS := ETC |
| 127 | LOCAL_MODULE_TAGS := optional |
| 128 | |
| 129 | # Create a file containing newline only to add between context config files |
| 130 | include $(BUILD_SYSTEM)/base_rules.mk |
William Roberts | cb1ab98 | 2015-12-14 07:54:28 -0800 | [diff] [blame] | 131 | $(LOCAL_BUILT_MODULE): |
Richard Haines | c8801fe | 2015-12-11 10:39:19 +0000 | [diff] [blame] | 132 | @mkdir -p $(dir $@) |
| 133 | $(hide) echo > $@ |
| 134 | |
| 135 | built_nl := $(LOCAL_BUILT_MODULE) |
| 136 | |
| 137 | ################################# |
| 138 | include $(CLEAR_VARS) |
| 139 | |
Ying Wang | 02fb5f3 | 2012-01-17 17:51:09 -0800 | [diff] [blame] | 140 | LOCAL_MODULE := sepolicy |
| 141 | LOCAL_MODULE_CLASS := ETC |
| 142 | LOCAL_MODULE_TAGS := optional |
Ying Wang | 02fb5f3 | 2012-01-17 17:51:09 -0800 | [diff] [blame] | 143 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) |
Douglas Leung | 5807d1d | 2016-07-28 15:49:31 -0700 | [diff] [blame] | 144 | LOCAL_TARGET_ARCH := $(TARGET_ARCH) |
| 145 | |
| 146 | # Set LOCAL_TARGET_ARCH to mips for mips and mips64. |
| 147 | ifneq (,$(filter mips mips64,$(TARGET_ARCH))) |
| 148 | LOCAL_TARGET_ARCH := mips |
| 149 | endif |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 150 | |
Ying Wang | 02fb5f3 | 2012-01-17 17:51:09 -0800 | [diff] [blame] | 151 | include $(BUILD_SYSTEM)/base_rules.mk |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 152 | |
dcashman | 2e00e63 | 2016-10-12 14:58:09 -0700 | [diff] [blame^] | 153 | # reqd_policy_mask - a policy.conf file which contains only the bare minimum |
| 154 | # policy necessary to use checkpolicy. This bare-minimum policy needs to be |
| 155 | # present in all policy.conf files, but should not necessarily be exported as |
| 156 | # part of the public policy. The rules generated by reqd_policy_mask will allow |
| 157 | # the compilation of public policy and subsequent removal of CIL policy that |
| 158 | # should not be exported. |
| 159 | |
| 160 | reqd_policy_mask.conf := $(intermediates)/reqd_policy_mask.conf |
| 161 | $(reqd_policy_mask.conf): PRIVATE_MLS_SENS := $(MLS_SENS) |
| 162 | $(reqd_policy_mask.conf): PRIVATE_MLS_CATS := $(MLS_CATS) |
| 163 | $(reqd_policy_mask.conf): PRIVATE_ADDITIONAL_M4DEFS := $(LOCAL_ADDITIONAL_M4DEFS) |
| 164 | $(reqd_policy_mask.conf): $(call build_policy, $(sepolicy_build_files), $(REQD_MASK_POLICY)) |
| 165 | @mkdir -p $(dir $@) |
| 166 | $(hide) m4 $(PRIVATE_ADDITIONAL_M4DEFS) \ |
| 167 | -D mls_num_sens=$(PRIVATE_MLS_SENS) -D mls_num_cats=$(PRIVATE_MLS_CATS) \ |
| 168 | -D target_build_variant=$(TARGET_BUILD_VARIANT) \ |
| 169 | -s $^ > $@ |
| 170 | |
| 171 | reqd_policy_mask.cil := $(intermediates)/reqd_policy_mask.cil |
| 172 | $(reqd_policy_mask.cil): $(reqd_policy_mask.conf) $(HOST_OUT_EXECUTABLES)/checkpolicy |
| 173 | @mkdir -p $(dir $@) |
| 174 | $(hide) $(HOST_OUT_EXECUTABLES)/checkpolicy -C -M -c $(POLICYVERS) -o $@ $< |
| 175 | |
| 176 | # plat_pub_policy - policy that will be exported to be a part of non-platform |
| 177 | # policy corresponding to this platform version. This is a limited subset of |
| 178 | # policy that would not compile in checkpolicy on its own. To get around this |
| 179 | # limitation, add only the required files from private policy, which will |
| 180 | # generate CIL policy that will then be filtered out by the reqd_policy_mask. |
| 181 | plat_pub_policy.conf := $(intermediates)/plat_pub_policy.conf |
| 182 | $(plat_pub_policy.conf): PRIVATE_MLS_SENS := $(MLS_SENS) |
| 183 | $(plat_pub_policy.conf): PRIVATE_MLS_CATS := $(MLS_CATS) |
| 184 | $(plat_pub_policy.conf): PRIVATE_ADDITIONAL_M4DEFS := $(LOCAL_ADDITIONAL_M4DEFS) |
| 185 | $(plat_pub_policy.conf): $(call build_policy, $(sepolicy_build_files), \ |
| 186 | $(BOARD_SEPOLICY_VERS_DIR) $(REQD_MASK_POLICY)) |
| 187 | @mkdir -p $(dir $@) |
| 188 | $(hide) m4 $(PRIVATE_ADDITIONAL_M4DEFS) \ |
| 189 | -D mls_num_sens=$(PRIVATE_MLS_SENS) -D mls_num_cats=$(PRIVATE_MLS_CATS) \ |
| 190 | -D target_build_variant=$(TARGET_BUILD_VARIANT) \ |
| 191 | -s $^ > $@ |
| 192 | |
| 193 | plat_pub_policy.cil := $(intermediates)/plat_pub_policy.cil |
| 194 | $(plat_pub_policy.cil): $(plat_pub_policy.conf) $(HOST_OUT_EXECUTABLES)/checkpolicy |
| 195 | @mkdir -p $(dir $@) |
| 196 | $(hide) $(HOST_OUT_EXECUTABLES)/checkpolicy -C -M -c $(POLICYVERS) -o $@ $< |
| 197 | |
| 198 | pruned_plat_pub_policy.cil := $(intermediates)/pruned_plat_pub_policy.cil |
| 199 | $(pruned_plat_pub_policy.cil): $(reqd_policy_mask.cil) $(plat_pub_policy.cil) |
| 200 | @mkdir -p $(dir $@) |
| 201 | $(hide) grep -Fxv -f $^ > $@ |
| 202 | |
| 203 | # plat_policy.conf - A combination of the private and public platform policy |
| 204 | # which will ship with the device. The platform will always reflect the most |
| 205 | # recent platform version and is not currently being attributized. |
| 206 | plat_policy.conf := $(intermediates)/plat_policy.conf |
| 207 | $(plat_policy.conf): PRIVATE_MLS_SENS := $(MLS_SENS) |
| 208 | $(plat_policy.conf): PRIVATE_MLS_CATS := $(MLS_CATS) |
| 209 | $(plat_policy.conf): PRIVATE_ADDITIONAL_M4DEFS := $(LOCAL_ADDITIONAL_M4DEFS) |
| 210 | $(plat_policy.conf): $(call build_policy, $(sepolicy_build_files), \ |
dcashman | cc39f63 | 2016-07-22 13:13:11 -0700 | [diff] [blame] | 211 | $(PLAT_PUBLIC_POLICY) $(PLAT_PRIVATE_POLICY)) |
| 212 | @mkdir -p $(dir $@) |
| 213 | $(hide) m4 $(PRIVATE_ADDITIONAL_M4DEFS) \ |
| 214 | -D mls_num_sens=$(PRIVATE_MLS_SENS) -D mls_num_cats=$(PRIVATE_MLS_CATS) \ |
| 215 | -D target_build_variant=$(TARGET_BUILD_VARIANT) \ |
Jeff Vander Stoep | d733d16 | 2016-10-19 13:55:21 -0700 | [diff] [blame] | 216 | -D target_build_treble=$(ENABLE_TREBLE) \ |
Jorge Lucangeli Obes | 84db84e | 2016-11-18 08:42:35 -0500 | [diff] [blame] | 217 | -D target_with_dexpreopt=$(WITH_DEXPREOPT) \ |
Jorge Lucangeli Obes | 2899434 | 2016-11-21 11:54:19 -0500 | [diff] [blame] | 218 | -D target_with_dexpreopt_pic=$(WITH_DEXPREOPT_PIC) \ |
dcashman | cc39f63 | 2016-07-22 13:13:11 -0700 | [diff] [blame] | 219 | -s $^ > $@ |
| 220 | $(hide) sed '/dontaudit/d' $@ > $@.dontaudit |
| 221 | |
dcashman | 2e00e63 | 2016-10-12 14:58:09 -0700 | [diff] [blame^] | 222 | plat_policy.cil := $(intermediates)/plat_policy.cil |
| 223 | $(plat_policy.cil): $(plat_policy.conf) $(HOST_OUT_EXECUTABLES)/checkpolicy |
| 224 | @mkdir -p $(dir $@) |
| 225 | $(hide) $(HOST_OUT_EXECUTABLES)/checkpolicy -M -C -c $(POLICYVERS) -o $@.tmp $< |
| 226 | $(hide) grep -v neverallow $@.tmp > $@ |
dcashman | cc39f63 | 2016-07-22 13:13:11 -0700 | [diff] [blame] | 227 | |
dcashman | 2e00e63 | 2016-10-12 14:58:09 -0700 | [diff] [blame^] | 228 | # nonplat_policy.conf - A combination of the non-platform private and the |
| 229 | # exported platform policy associated with the version the non-platform policy |
| 230 | # targets. This needs attributization and to be combined with the |
| 231 | # platform-provided policy. Like plat_pub_policy.conf, this needs to make use |
| 232 | # of the reqd_policy_mask files from private policy in order to use checkpolicy. |
| 233 | nonplat_policy.conf := $(intermediates)/nonplat_policy.conf |
| 234 | $(nonplat_policy.conf): PRIVATE_MLS_SENS := $(MLS_SENS) |
| 235 | $(nonplat_policy.conf): PRIVATE_MLS_CATS := $(MLS_CATS) |
| 236 | $(nonplat_policy.conf): PRIVATE_ADDITIONAL_M4DEFS := $(LOCAL_ADDITIONAL_M4DEFS) |
| 237 | $(nonplat_policy.conf): $(call build_policy, $(sepolicy_build_files), \ |
| 238 | $(BOARD_SEPOLICY_VERS_DIR) $(REQD_MASK_POLICY) $(BOARD_SEPOLICY_DIRS)) |
Ying Wang | 02fb5f3 | 2012-01-17 17:51:09 -0800 | [diff] [blame] | 239 | @mkdir -p $(dir $@) |
William Roberts | d218558 | 2015-07-16 11:28:02 -0700 | [diff] [blame] | 240 | $(hide) m4 $(PRIVATE_ADDITIONAL_M4DEFS) \ |
| 241 | -D mls_num_sens=$(PRIVATE_MLS_SENS) -D mls_num_cats=$(PRIVATE_MLS_CATS) \ |
Nick Kralevich | 623975f | 2014-01-11 01:31:03 -0800 | [diff] [blame] | 242 | -D target_build_variant=$(TARGET_BUILD_VARIANT) \ |
Jeff Vander Stoep | d733d16 | 2016-10-19 13:55:21 -0700 | [diff] [blame] | 243 | -D target_build_treble=$(ENABLE_TREBLE) \ |
Jorge Lucangeli Obes | 84db84e | 2016-11-18 08:42:35 -0500 | [diff] [blame] | 244 | -D target_with_dexpreopt=$(WITH_DEXPREOPT) \ |
Jorge Lucangeli Obes | 2899434 | 2016-11-21 11:54:19 -0500 | [diff] [blame] | 245 | -D target_with_dexpreopt_pic=$(WITH_DEXPREOPT_PIC) \ |
Douglas Leung | 5807d1d | 2016-07-28 15:49:31 -0700 | [diff] [blame] | 246 | -D target_arch=$(LOCAL_TARGET_ARCH) \ |
Nick Kralevich | 623975f | 2014-01-11 01:31:03 -0800 | [diff] [blame] | 247 | -s $^ > $@ |
Robert Craig | 65d4f44 | 2013-03-27 06:30:25 -0400 | [diff] [blame] | 248 | $(hide) sed '/dontaudit/d' $@ > $@.dontaudit |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 249 | |
dcashman | 2e00e63 | 2016-10-12 14:58:09 -0700 | [diff] [blame^] | 250 | nonplat_policy.cil := $(intermediates)/nonplat_policy.cil |
| 251 | $(nonplat_policy.cil): $(nonplat_policy.conf) $(HOST_OUT_EXECUTABLES)/checkpolicy |
Ying Wang | 02fb5f3 | 2012-01-17 17:51:09 -0800 | [diff] [blame] | 252 | @mkdir -p $(dir $@) |
dcashman | 2e00e63 | 2016-10-12 14:58:09 -0700 | [diff] [blame^] | 253 | $(hide) $(HOST_OUT_EXECUTABLES)/checkpolicy -C -M -c $(POLICYVERS) -o $@ $< |
| 254 | |
| 255 | pruned_nonplat_policy.cil := $(intermediates)/pruned_nonplat_policy.cil |
| 256 | $(pruned_nonplat_policy.cil): $(reqd_policy_mask.cil) $(nonplat_policy.cil) |
| 257 | @mkdir -p $(dir $@) |
| 258 | $(hide) grep -Fxv -f $^ | grep -v neverallow > $@ |
| 259 | |
| 260 | vers_nonplat_policy.cil := $(intermediates)/vers_nonplat_policy.cil |
| 261 | $(vers_nonplat_policy.cil) : PRIVATE_VERS := $(BOARD_SEPOLICY_VERS) |
| 262 | $(vers_nonplat_policy.cil) : PRIVATE_TGT_POL := $(pruned_nonplat_policy.cil) |
| 263 | $(vers_nonplat_policy.cil) : $(pruned_plat_pub_policy.cil) $(pruned_nonplat_policy.cil) \ |
| 264 | $(HOST_OUT_EXECUTABLES)/version_policy |
| 265 | @mkdir -p $(dir $@) |
| 266 | $(HOST_OUT_EXECUTABLES)/version_policy -b $< -t $(PRIVATE_TGT_POL) -n $(PRIVATE_VERS) -o $@ |
| 267 | |
| 268 | # auto-generate the mapping file for current platform policy, since it needs to |
| 269 | # track platform policy development |
| 270 | current_mapping.cil := $(intermediates)/mapping/current.cil |
| 271 | $(current_mapping.cil) : PRIVATE_VERS := $(BOARD_SEPOLICY_VERS) |
| 272 | $(current_mapping.cil) : $(pruned_plat_pub_policy.cil) $(HOST_OUT_EXECUTABLES)/version_policy |
| 273 | @mkdir -p $(dir $@) |
| 274 | $(hide) $(HOST_OUT_EXECUTABLES)/version_policy -b $< -m -n $(PRIVATE_VERS) -o $@ |
| 275 | |
| 276 | ifeq ($(BOARD_SEPOLICY_VERS), current) |
| 277 | mapping.cil := $(current_mapping.cil) |
| 278 | else |
| 279 | mapping.cil := $(addsuffix /$(BOARD_SEPOLICY_VERS).cil, $(PLAT_PRIVATE_POLICY)/mapping) |
| 280 | endif |
| 281 | |
| 282 | all_cil_files := \ |
| 283 | $(plat_policy.cil) \ |
| 284 | $(vers_nonplat_policy.cil) \ |
| 285 | $(mapping.cil) |
| 286 | |
| 287 | $(LOCAL_BUILT_MODULE): PRIVATE_CIL_FILES := $(all_cil_files) |
| 288 | $(LOCAL_BUILT_MODULE): $(HOST_OUT_EXECUTABLES)/secilc $(HOST_OUT_EXECUTABLES)/sepolicy-analyze $(all_cil_files) |
| 289 | @mkdir -p $(dir $@) |
| 290 | $(hide) $< -M true -c $(POLICYVERS) $(PRIVATE_CIL_FILES) -o $@.tmp |
Nick Kralevich | bca98ef | 2016-02-26 20:06:52 -0800 | [diff] [blame] | 291 | $(hide) $(HOST_OUT_EXECUTABLES)/sepolicy-analyze $@.tmp permissive > $@.permissivedomains |
| 292 | $(hide) if [ "$(TARGET_BUILD_VARIANT)" = "user" -a -s $@.permissivedomains ]; then \ |
| 293 | echo "==========" 1>&2; \ |
| 294 | echo "ERROR: permissive domains not allowed in user builds" 1>&2; \ |
| 295 | echo "List of invalid domains:" 1>&2; \ |
| 296 | cat $@.permissivedomains 1>&2; \ |
| 297 | exit 1; \ |
| 298 | fi |
| 299 | $(hide) mv $@.tmp $@ |
Ying Wang | 02fb5f3 | 2012-01-17 17:51:09 -0800 | [diff] [blame] | 300 | |
Ying Wang | d8b122c | 2012-10-25 19:01:31 -0700 | [diff] [blame] | 301 | built_sepolicy := $(LOCAL_BUILT_MODULE) |
dcashman | 2e00e63 | 2016-10-12 14:58:09 -0700 | [diff] [blame^] | 302 | reqd_policy_mask.conf := |
| 303 | reqd_policy_mask.cil := |
| 304 | plat_pub_policy.conf := |
| 305 | plat_pub_policy.cil := |
| 306 | pruned_plat_pub_policy.cil := |
| 307 | plat_policy.conf := |
| 308 | plat_policy.cil := |
| 309 | nonplat_policy.conf := |
| 310 | nonplat_policy.cil := |
| 311 | pruned_nonplat_policy.cil := |
| 312 | vers_nonplat_policy.cil := |
| 313 | current_mapping.cil := |
| 314 | mapping.cil := |
| 315 | all_cil_files := |
Ying Wang | 02fb5f3 | 2012-01-17 17:51:09 -0800 | [diff] [blame] | 316 | sepolicy_policy.conf := |
Stephen Smalley | 01a58af | 2012-10-02 12:46:37 -0400 | [diff] [blame] | 317 | |
Stephen Smalley | e60723a | 2014-05-29 16:40:15 -0400 | [diff] [blame] | 318 | ################################## |
| 319 | include $(CLEAR_VARS) |
| 320 | |
| 321 | LOCAL_MODULE := sepolicy.recovery |
| 322 | LOCAL_MODULE_CLASS := ETC |
| 323 | LOCAL_MODULE_TAGS := eng |
| 324 | |
| 325 | include $(BUILD_SYSTEM)/base_rules.mk |
| 326 | |
| 327 | sepolicy_policy_recovery.conf := $(intermediates)/policy_recovery.conf |
| 328 | $(sepolicy_policy_recovery.conf): PRIVATE_MLS_SENS := $(MLS_SENS) |
| 329 | $(sepolicy_policy_recovery.conf): PRIVATE_MLS_CATS := $(MLS_CATS) |
William Roberts | d218558 | 2015-07-16 11:28:02 -0700 | [diff] [blame] | 330 | $(sepolicy_policy_recovery.conf): PRIVATE_ADDITIONAL_M4DEFS := $(LOCAL_ADDITIONAL_M4DEFS) |
dcashman | cc39f63 | 2016-07-22 13:13:11 -0700 | [diff] [blame] | 331 | $(sepolicy_policy_recovery.conf): $(call build_policy, $(sepolicy_build_files), \ |
| 332 | $(PLAT_PUBLIC_POLICY) $(PLAT_PRIVATE_POLICY) $(BOARD_SEPOLICY_DIRS)) |
Stephen Smalley | e60723a | 2014-05-29 16:40:15 -0400 | [diff] [blame] | 333 | @mkdir -p $(dir $@) |
William Roberts | d218558 | 2015-07-16 11:28:02 -0700 | [diff] [blame] | 334 | $(hide) m4 $(PRIVATE_ADDITIONAL_M4DEFS) \ |
| 335 | -D mls_num_sens=$(PRIVATE_MLS_SENS) -D mls_num_cats=$(PRIVATE_MLS_CATS) \ |
Stephen Smalley | e60723a | 2014-05-29 16:40:15 -0400 | [diff] [blame] | 336 | -D target_build_variant=$(TARGET_BUILD_VARIANT) \ |
Jeff Vander Stoep | d733d16 | 2016-10-19 13:55:21 -0700 | [diff] [blame] | 337 | -D target_build_treble=$(ENABLE_TREBLE) \ |
Jorge Lucangeli Obes | 84db84e | 2016-11-18 08:42:35 -0500 | [diff] [blame] | 338 | -D target_with_dexpreopt=$(WITH_DEXPREOPT) \ |
Jorge Lucangeli Obes | 2899434 | 2016-11-21 11:54:19 -0500 | [diff] [blame] | 339 | -D target_with_dexpreopt_pic=$(WITH_DEXPREOPT_PIC) \ |
Stephen Smalley | e60723a | 2014-05-29 16:40:15 -0400 | [diff] [blame] | 340 | -D target_recovery=true \ |
| 341 | -s $^ > $@ |
| 342 | |
Nick Kralevich | bca98ef | 2016-02-26 20:06:52 -0800 | [diff] [blame] | 343 | $(LOCAL_BUILT_MODULE): $(sepolicy_policy_recovery.conf) $(HOST_OUT_EXECUTABLES)/checkpolicy $(HOST_OUT_EXECUTABLES)/sepolicy-analyze |
Stephen Smalley | e60723a | 2014-05-29 16:40:15 -0400 | [diff] [blame] | 344 | @mkdir -p $(dir $@) |
Nick Kralevich | 6ef10bd | 2016-02-29 16:59:33 -0800 | [diff] [blame] | 345 | $(hide) $(HOST_OUT_EXECUTABLES)/checkpolicy -M -c $(POLICYVERS) -o $@.tmp $< > /dev/null |
Nick Kralevich | bca98ef | 2016-02-26 20:06:52 -0800 | [diff] [blame] | 346 | $(hide) $(HOST_OUT_EXECUTABLES)/sepolicy-analyze $@.tmp permissive > $@.permissivedomains |
| 347 | $(hide) if [ "$(TARGET_BUILD_VARIANT)" = "user" -a -s $@.permissivedomains ]; then \ |
| 348 | echo "==========" 1>&2; \ |
| 349 | echo "ERROR: permissive domains not allowed in user builds" 1>&2; \ |
| 350 | echo "List of invalid domains:" 1>&2; \ |
| 351 | cat $@.permissivedomains 1>&2; \ |
| 352 | exit 1; \ |
| 353 | fi |
| 354 | $(hide) mv $@.tmp $@ |
Stephen Smalley | e60723a | 2014-05-29 16:40:15 -0400 | [diff] [blame] | 355 | |
| 356 | built_sepolicy_recovery := $(LOCAL_BUILT_MODULE) |
| 357 | sepolicy_policy_recovery.conf := |
| 358 | |
dcashman | 704741a | 2014-07-25 19:11:52 -0700 | [diff] [blame] | 359 | ################################## |
| 360 | include $(CLEAR_VARS) |
| 361 | |
| 362 | LOCAL_MODULE := general_sepolicy.conf |
| 363 | LOCAL_MODULE_CLASS := ETC |
| 364 | LOCAL_MODULE_TAGS := tests |
| 365 | |
| 366 | include $(BUILD_SYSTEM)/base_rules.mk |
| 367 | |
dcashman | 704741a | 2014-07-25 19:11:52 -0700 | [diff] [blame] | 368 | $(LOCAL_BUILT_MODULE): PRIVATE_MLS_SENS := $(MLS_SENS) |
| 369 | $(LOCAL_BUILT_MODULE): PRIVATE_MLS_CATS := $(MLS_CATS) |
dcashman | cc39f63 | 2016-07-22 13:13:11 -0700 | [diff] [blame] | 370 | $(LOCAL_BUILT_MODULE): $(call build_policy, $(sepolicy_build_files), \ |
| 371 | $(PLAT_PUBLIC_POLICY) $(PLAT_PRIVATE_POLICY)) |
dcashman | 704741a | 2014-07-25 19:11:52 -0700 | [diff] [blame] | 372 | mkdir -p $(dir $@) |
| 373 | $(hide) m4 -D mls_num_sens=$(PRIVATE_MLS_SENS) -D mls_num_cats=$(PRIVATE_MLS_CATS) \ |
| 374 | -D target_build_variant=user \ |
Jeff Vander Stoep | d733d16 | 2016-10-19 13:55:21 -0700 | [diff] [blame] | 375 | -D target_build_treble=$(ENABLE_TREBLE) \ |
Jorge Lucangeli Obes | 84db84e | 2016-11-18 08:42:35 -0500 | [diff] [blame] | 376 | -D target_with_dexpreopt=$(WITH_DEXPREOPT) \ |
Jorge Lucangeli Obes | 2899434 | 2016-11-21 11:54:19 -0500 | [diff] [blame] | 377 | -D target_with_dexpreopt_pic=$(WITH_DEXPREOPT_PIC) \ |
dcashman | 704741a | 2014-07-25 19:11:52 -0700 | [diff] [blame] | 378 | -s $^ > $@ |
| 379 | $(hide) sed '/dontaudit/d' $@ > $@.dontaudit |
| 380 | |
William Roberts | b876993 | 2015-06-29 16:31:23 -0700 | [diff] [blame] | 381 | built_general_sepolicy.conf := $(LOCAL_BUILT_MODULE) |
dcashman | 704741a | 2014-07-25 19:11:52 -0700 | [diff] [blame] | 382 | exp_sepolicy_build_files := |
| 383 | |
| 384 | ################################## |
Stephen Smalley | 01a58af | 2012-10-02 12:46:37 -0400 | [diff] [blame] | 385 | include $(CLEAR_VARS) |
| 386 | |
William Roberts | b876993 | 2015-06-29 16:31:23 -0700 | [diff] [blame] | 387 | LOCAL_MODULE := sepolicy.general |
| 388 | LOCAL_MODULE_CLASS := ETC |
| 389 | LOCAL_MODULE_TAGS := tests |
| 390 | |
| 391 | include $(BUILD_SYSTEM)/base_rules.mk |
| 392 | |
| 393 | $(LOCAL_BUILT_MODULE): PRIVATE_BUILT_SEPOLICY.CONF := $(built_general_sepolicy.conf) |
| 394 | $(LOCAL_BUILT_MODULE): $(built_general_sepolicy.conf) $(HOST_OUT_EXECUTABLES)/checkpolicy |
| 395 | @mkdir -p $(dir $@) |
Nick Kralevich | 6ef10bd | 2016-02-29 16:59:33 -0800 | [diff] [blame] | 396 | $(hide) $(HOST_OUT_EXECUTABLES)/checkpolicy -M -c $(POLICYVERS) -o $@ $(PRIVATE_BUILT_SEPOLICY.CONF) > /dev/null |
William Roberts | b876993 | 2015-06-29 16:31:23 -0700 | [diff] [blame] | 397 | |
| 398 | built_general_sepolicy := $(LOCAL_BUILT_MODULE) |
| 399 | ################################## |
| 400 | include $(CLEAR_VARS) |
| 401 | |
Richard Haines | c2d0191 | 2015-08-06 17:43:52 +0100 | [diff] [blame] | 402 | LOCAL_MODULE := file_contexts.bin |
Ying Wang | 02fb5f3 | 2012-01-17 17:51:09 -0800 | [diff] [blame] | 403 | LOCAL_MODULE_CLASS := ETC |
| 404 | LOCAL_MODULE_TAGS := optional |
| 405 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) |
| 406 | |
Stephen Smalley | 5b340be | 2012-03-06 11:12:41 -0500 | [diff] [blame] | 407 | include $(BUILD_SYSTEM)/base_rules.mk |
Ying Wang | 02fb5f3 | 2012-01-17 17:51:09 -0800 | [diff] [blame] | 408 | |
William Roberts | 49693f1 | 2016-01-04 12:20:57 -0800 | [diff] [blame] | 409 | # The file_contexts.bin is built in the following way: |
| 410 | # 1. Collect all file_contexts files in THIS repository and process them with |
| 411 | # m4 into a tmp file called file_contexts.local.tmp. |
| 412 | # 2. Collect all device specific file_contexts files and process them with m4 |
| 413 | # into a tmp file called file_contexts.device.tmp. |
| 414 | # 3. Run checkfc -e (allow no device fc entries ie empty) and fc_sort on |
| 415 | # file_contexts.device.tmp and output to file_contexts.device.sorted.tmp. |
| 416 | # 4. Concatenate file_contexts.local.tmp and file_contexts.device.tmp into |
| 417 | # file_contexts.concat.tmp. |
| 418 | # 5. Run checkfc and sefcontext_compile on file_contexts.concat.tmp to produce |
| 419 | # file_contexts.bin. |
| 420 | # |
| 421 | # Note: That a newline file is placed between each file_context file found to |
| 422 | # ensure a proper build when an fc file is missing an ending newline. |
William Roberts | 29d1468 | 2016-01-04 12:20:57 -0800 | [diff] [blame] | 423 | |
dcashman | cc39f63 | 2016-07-22 13:13:11 -0700 | [diff] [blame] | 424 | local_fc_files := $(PLAT_PRIVATE_POLICY)/file_contexts |
William Roberts | 49693f1 | 2016-01-04 12:20:57 -0800 | [diff] [blame] | 425 | ifneq ($(filter address,$(SANITIZE_TARGET)),) |
dcashman | cc39f63 | 2016-07-22 13:13:11 -0700 | [diff] [blame] | 426 | local_fc_files := $(local_fc_files) $(PLAT_PRIVATE_POLICY)/file_contexts_asan |
William Roberts | 49693f1 | 2016-01-04 12:20:57 -0800 | [diff] [blame] | 427 | endif |
| 428 | local_fcfiles_with_nl := $(call add_nl, $(local_fc_files), $(built_nl)) |
| 429 | |
| 430 | file_contexts.local.tmp := $(intermediates)/file_contexts.local.tmp |
| 431 | $(file_contexts.local.tmp): $(local_fcfiles_with_nl) |
Stephen Smalley | 5b340be | 2012-03-06 11:12:41 -0500 | [diff] [blame] | 432 | @mkdir -p $(dir $@) |
William Roberts | 49693f1 | 2016-01-04 12:20:57 -0800 | [diff] [blame] | 433 | $(hide) m4 -s $^ > $@ |
| 434 | |
| 435 | device_fc_files := $(call build_device_policy, file_contexts) |
| 436 | device_fcfiles_with_nl := $(call add_nl, $(device_fc_files), $(built_nl)) |
| 437 | |
| 438 | file_contexts.device.tmp := $(intermediates)/file_contexts.device.tmp |
| 439 | $(file_contexts.device.tmp): PRIVATE_ADDITIONAL_M4DEFS := $(LOCAL_ADDITIONAL_M4DEFS) |
| 440 | $(file_contexts.device.tmp): $(device_fcfiles_with_nl) |
| 441 | @mkdir -p $(dir $@) |
| 442 | $(hide) m4 -s $(PRIVATE_ADDITIONAL_M4DEFS) $^ > $@ |
| 443 | |
| 444 | file_contexts.device.sorted.tmp := $(intermediates)/file_contexts.device.sorted.tmp |
| 445 | $(file_contexts.device.sorted.tmp): PRIVATE_SEPOLICY := $(built_sepolicy) |
| 446 | $(file_contexts.device.sorted.tmp): $(file_contexts.device.tmp) $(built_sepolicy) $(HOST_OUT_EXECUTABLES)/fc_sort $(HOST_OUT_EXECUTABLES)/checkfc |
| 447 | @mkdir -p $(dir $@) |
dcashman | 2e00e63 | 2016-10-12 14:58:09 -0700 | [diff] [blame^] | 448 | # TODO: fix with attributized types $(hide) $(HOST_OUT_EXECUTABLES)/checkfc -e $(PRIVATE_SEPOLICY) $< |
William Roberts | 49693f1 | 2016-01-04 12:20:57 -0800 | [diff] [blame] | 449 | $(hide) $(HOST_OUT_EXECUTABLES)/fc_sort $< $@ |
| 450 | |
| 451 | file_contexts.concat.tmp := $(intermediates)/file_contexts.concat.tmp |
| 452 | $(file_contexts.concat.tmp): $(file_contexts.local.tmp) $(file_contexts.device.sorted.tmp) |
| 453 | @mkdir -p $(dir $@) |
| 454 | $(hide) m4 -s $^ > $@ |
Stephen Smalley | 5b340be | 2012-03-06 11:12:41 -0500 | [diff] [blame] | 455 | |
William Roberts | 3746a0a | 2015-09-25 10:18:44 -0700 | [diff] [blame] | 456 | $(LOCAL_BUILT_MODULE): PRIVATE_SEPOLICY := $(built_sepolicy) |
William Roberts | 49693f1 | 2016-01-04 12:20:57 -0800 | [diff] [blame] | 457 | $(LOCAL_BUILT_MODULE): $(file_contexts.concat.tmp) $(built_sepolicy) $(HOST_OUT_EXECUTABLES)/sefcontext_compile $(HOST_OUT_EXECUTABLES)/checkfc |
Richard Haines | c2d0191 | 2015-08-06 17:43:52 +0100 | [diff] [blame] | 458 | @mkdir -p $(dir $@) |
dcashman | 2e00e63 | 2016-10-12 14:58:09 -0700 | [diff] [blame^] | 459 | # TODO: fix with attributized types $(hide) $(HOST_OUT_EXECUTABLES)/checkfc $(PRIVATE_SEPOLICY) $< |
Richard Haines | c2d0191 | 2015-08-06 17:43:52 +0100 | [diff] [blame] | 460 | $(hide) $(HOST_OUT_EXECUTABLES)/sefcontext_compile -o $@ $< |
| 461 | |
Robert Craig | 8b7545b | 2014-03-20 09:35:08 -0400 | [diff] [blame] | 462 | built_fc := $(LOCAL_BUILT_MODULE) |
William Roberts | 49693f1 | 2016-01-04 12:20:57 -0800 | [diff] [blame] | 463 | local_fc_files := |
| 464 | local_fcfiles_with_nl := |
| 465 | device_fc_files := |
| 466 | device_fcfiles_with_nl := |
| 467 | file_contexts.concat.tmp := |
| 468 | file_contexts.device.sorted.tmp := |
| 469 | file_contexts.device.tmp := |
| 470 | file_contexts.local.tmp := |
William Roberts | 171a062 | 2012-08-16 10:55:05 -0700 | [diff] [blame] | 471 | |
Ying Wang | 02fb5f3 | 2012-01-17 17:51:09 -0800 | [diff] [blame] | 472 | ################################## |
| 473 | include $(CLEAR_VARS) |
Stephen Smalley | 2e0cd5a | 2015-03-12 17:45:03 -0400 | [diff] [blame] | 474 | |
Richard Haines | c2d0191 | 2015-08-06 17:43:52 +0100 | [diff] [blame] | 475 | LOCAL_MODULE := general_file_contexts.bin |
Stephen Smalley | 2e0cd5a | 2015-03-12 17:45:03 -0400 | [diff] [blame] | 476 | LOCAL_MODULE_CLASS := ETC |
| 477 | LOCAL_MODULE_TAGS := tests |
| 478 | |
| 479 | include $(BUILD_SYSTEM)/base_rules.mk |
| 480 | |
Richard Haines | c2d0191 | 2015-08-06 17:43:52 +0100 | [diff] [blame] | 481 | general_file_contexts.tmp := $(intermediates)/general_file_contexts.tmp |
dcashman | cc39f63 | 2016-07-22 13:13:11 -0700 | [diff] [blame] | 482 | $(general_file_contexts.tmp): $(addprefix $(PLAT_PRIVATE_POLICY)/, file_contexts) |
Stephen Smalley | 2e0cd5a | 2015-03-12 17:45:03 -0400 | [diff] [blame] | 483 | @mkdir -p $(dir $@) |
| 484 | $(hide) m4 -s $< > $@ |
Stephen Smalley | 2e0cd5a | 2015-03-12 17:45:03 -0400 | [diff] [blame] | 485 | |
William Roberts | 3746a0a | 2015-09-25 10:18:44 -0700 | [diff] [blame] | 486 | $(LOCAL_BUILT_MODULE): PRIVATE_SEPOLICY := $(built_general_sepolicy) |
| 487 | $(LOCAL_BUILT_MODULE): $(general_file_contexts.tmp) $(built_general_sepolicy) $(HOST_OUT_EXECUTABLES)/sefcontext_compile $(HOST_OUT_EXECUTABLES)/checkfc |
Richard Haines | c2d0191 | 2015-08-06 17:43:52 +0100 | [diff] [blame] | 488 | @mkdir -p $(dir $@) |
dcashman | 2e00e63 | 2016-10-12 14:58:09 -0700 | [diff] [blame^] | 489 | # TODO: fix with attributized types $(hide) $(HOST_OUT_EXECUTABLES)/checkfc $(PRIVATE_SEPOLICY) $< |
Richard Haines | c2d0191 | 2015-08-06 17:43:52 +0100 | [diff] [blame] | 490 | $(hide) $(HOST_OUT_EXECUTABLES)/sefcontext_compile -o $@ $< |
| 491 | |
| 492 | general_file_contexts.tmp := |
Stephen Smalley | 2e0cd5a | 2015-03-12 17:45:03 -0400 | [diff] [blame] | 493 | |
| 494 | ################################## |
| 495 | include $(CLEAR_VARS) |
Ying Wang | 02fb5f3 | 2012-01-17 17:51:09 -0800 | [diff] [blame] | 496 | LOCAL_MODULE := seapp_contexts |
Ying Wang | 02fb5f3 | 2012-01-17 17:51:09 -0800 | [diff] [blame] | 497 | LOCAL_MODULE_CLASS := ETC |
| 498 | LOCAL_MODULE_TAGS := optional |
| 499 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) |
| 500 | |
William Roberts | 171a062 | 2012-08-16 10:55:05 -0700 | [diff] [blame] | 501 | include $(BUILD_SYSTEM)/base_rules.mk |
Ying Wang | 02fb5f3 | 2012-01-17 17:51:09 -0800 | [diff] [blame] | 502 | |
dcashman | cc39f63 | 2016-07-22 13:13:11 -0700 | [diff] [blame] | 503 | all_sc_files := $(call build_policy, seapp_contexts, $(PLAT_PRIVATE_POLICY) $(BOARD_SEPOLICY_DIRS)) |
William Roberts | 171a062 | 2012-08-16 10:55:05 -0700 | [diff] [blame] | 504 | |
Ying Wang | d8b122c | 2012-10-25 19:01:31 -0700 | [diff] [blame] | 505 | $(LOCAL_BUILT_MODULE): PRIVATE_SEPOLICY := $(built_sepolicy) |
William Roberts | 81e1f90 | 2015-06-03 21:57:47 -0700 | [diff] [blame] | 506 | $(LOCAL_BUILT_MODULE): PRIVATE_SC_FILES := $(all_sc_files) |
| 507 | $(LOCAL_BUILT_MODULE): $(built_sepolicy) $(all_sc_files) $(HOST_OUT_EXECUTABLES)/checkseapp |
William Roberts | f0e0a94 | 2012-08-27 15:41:15 -0700 | [diff] [blame] | 508 | @mkdir -p $(dir $@) |
William Roberts | 99fe8df | 2015-06-30 13:53:51 -0700 | [diff] [blame] | 509 | $(hide) $(HOST_OUT_EXECUTABLES)/checkseapp -p $(PRIVATE_SEPOLICY) -o $@ $(PRIVATE_SC_FILES) |
Ying Wang | 02fb5f3 | 2012-01-17 17:51:09 -0800 | [diff] [blame] | 510 | |
Robert Craig | 8b7545b | 2014-03-20 09:35:08 -0400 | [diff] [blame] | 511 | built_sc := $(LOCAL_BUILT_MODULE) |
William Roberts | 81e1f90 | 2015-06-03 21:57:47 -0700 | [diff] [blame] | 512 | all_sc_files := |
Robert Craig | 8b7545b | 2014-03-20 09:35:08 -0400 | [diff] [blame] | 513 | |
Ying Wang | 02fb5f3 | 2012-01-17 17:51:09 -0800 | [diff] [blame] | 514 | ################################## |
Stephen Smalley | 124720a | 2012-04-04 10:11:16 -0400 | [diff] [blame] | 515 | include $(CLEAR_VARS) |
Stephen Smalley | 3771287 | 2015-03-12 15:46:36 -0400 | [diff] [blame] | 516 | LOCAL_MODULE := general_seapp_contexts |
| 517 | LOCAL_MODULE_CLASS := ETC |
| 518 | LOCAL_MODULE_TAGS := tests |
| 519 | |
| 520 | include $(BUILD_SYSTEM)/base_rules.mk |
| 521 | |
dcashman | cc39f63 | 2016-07-22 13:13:11 -0700 | [diff] [blame] | 522 | all_sc_files := $(addprefix $(PLAT_PRIVATE_POLICY)/, seapp_contexts) |
Stephen Smalley | 3771287 | 2015-03-12 15:46:36 -0400 | [diff] [blame] | 523 | |
William Roberts | b876993 | 2015-06-29 16:31:23 -0700 | [diff] [blame] | 524 | $(LOCAL_BUILT_MODULE): PRIVATE_SEPOLICY := $(built_general_sepolicy) |
William Roberts | 81e1f90 | 2015-06-03 21:57:47 -0700 | [diff] [blame] | 525 | $(LOCAL_BUILT_MODULE): PRIVATE_SC_FILE := $(all_sc_files) |
William Roberts | b876993 | 2015-06-29 16:31:23 -0700 | [diff] [blame] | 526 | $(LOCAL_BUILT_MODULE): $(built_general_sepolicy) $(all_sc_files) $(HOST_OUT_EXECUTABLES)/checkseapp |
Stephen Smalley | 3771287 | 2015-03-12 15:46:36 -0400 | [diff] [blame] | 527 | @mkdir -p $(dir $@) |
William Roberts | 99fe8df | 2015-06-30 13:53:51 -0700 | [diff] [blame] | 528 | $(hide) $(HOST_OUT_EXECUTABLES)/checkseapp -p $(PRIVATE_SEPOLICY) -o $@ $(PRIVATE_SC_FILE) |
Stephen Smalley | 3771287 | 2015-03-12 15:46:36 -0400 | [diff] [blame] | 529 | |
William Roberts | 81e1f90 | 2015-06-03 21:57:47 -0700 | [diff] [blame] | 530 | all_sc_files := |
Stephen Smalley | 3771287 | 2015-03-12 15:46:36 -0400 | [diff] [blame] | 531 | |
| 532 | ################################## |
| 533 | include $(CLEAR_VARS) |
William Roberts | 4ee7131 | 2015-06-25 11:59:30 -0700 | [diff] [blame] | 534 | LOCAL_MODULE := general_seapp_neverallows |
| 535 | LOCAL_MODULE_CLASS := ETC |
| 536 | LOCAL_MODULE_TAGS := tests |
| 537 | |
| 538 | include $(BUILD_SYSTEM)/base_rules.mk |
| 539 | |
dcashman | cc39f63 | 2016-07-22 13:13:11 -0700 | [diff] [blame] | 540 | $(LOCAL_BUILT_MODULE): $(addprefix $(PLAT_PRIVATE_POLICY)/, seapp_contexts) |
William Roberts | 4ee7131 | 2015-06-25 11:59:30 -0700 | [diff] [blame] | 541 | @mkdir -p $(dir $@) |
| 542 | - $(hide) grep -ie '^neverallow' $< > $@ |
| 543 | |
William Roberts | 4ee7131 | 2015-06-25 11:59:30 -0700 | [diff] [blame] | 544 | |
| 545 | ################################## |
| 546 | include $(CLEAR_VARS) |
Stephen Smalley | 124720a | 2012-04-04 10:11:16 -0400 | [diff] [blame] | 547 | |
| 548 | LOCAL_MODULE := property_contexts |
| 549 | LOCAL_MODULE_CLASS := ETC |
| 550 | LOCAL_MODULE_TAGS := optional |
| 551 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) |
| 552 | |
| 553 | include $(BUILD_SYSTEM)/base_rules.mk |
| 554 | |
dcashman | cc39f63 | 2016-07-22 13:13:11 -0700 | [diff] [blame] | 555 | all_pc_files := $(call build_policy, property_contexts, $(PLAT_PRIVATE_POLICY) $(BOARD_SEPOLICY_DIRS)) |
Richard Haines | c8801fe | 2015-12-11 10:39:19 +0000 | [diff] [blame] | 556 | all_pcfiles_with_nl := $(call add_nl, $(all_pc_files), $(built_nl)) |
William Roberts | 6aabc1c | 2015-07-30 11:44:26 -0700 | [diff] [blame] | 557 | |
William Roberts | dcffd2b | 2015-09-29 13:52:37 -0700 | [diff] [blame] | 558 | property_contexts.tmp := $(intermediates)/property_contexts.tmp |
Richard Haines | c8801fe | 2015-12-11 10:39:19 +0000 | [diff] [blame] | 559 | $(property_contexts.tmp): PRIVATE_PC_FILES := $(all_pcfiles_with_nl) |
William Roberts | dcffd2b | 2015-09-29 13:52:37 -0700 | [diff] [blame] | 560 | $(property_contexts.tmp): PRIVATE_ADDITIONAL_M4DEFS := $(LOCAL_ADDITIONAL_M4DEFS) |
William Roberts | 4674975 | 2015-12-28 15:26:20 -0800 | [diff] [blame] | 561 | $(property_contexts.tmp): $(all_pcfiles_with_nl) |
William Roberts | 7f81b33 | 2015-09-29 13:52:37 -0700 | [diff] [blame] | 562 | @mkdir -p $(dir $@) |
Colin Cross | 9eb6c87 | 2015-10-01 21:25:09 +0000 | [diff] [blame] | 563 | $(hide) m4 -s $(PRIVATE_ADDITIONAL_M4DEFS) $(PRIVATE_PC_FILES) > $@ |
William Roberts | dcffd2b | 2015-09-29 13:52:37 -0700 | [diff] [blame] | 564 | |
| 565 | |
| 566 | $(LOCAL_BUILT_MODULE): PRIVATE_SEPOLICY := $(built_sepolicy) |
William Roberts | 371918c | 2016-04-06 11:40:08 -0700 | [diff] [blame] | 567 | $(LOCAL_BUILT_MODULE): $(property_contexts.tmp) $(built_sepolicy) $(HOST_OUT_EXECUTABLES)/checkfc |
William Roberts | dcffd2b | 2015-09-29 13:52:37 -0700 | [diff] [blame] | 568 | @mkdir -p $(dir $@) |
William Roberts | 371918c | 2016-04-06 11:40:08 -0700 | [diff] [blame] | 569 | $(hide) sed -e 's/#.*$$//' -e '/^$$/d' $< > $@ |
dcashman | 2e00e63 | 2016-10-12 14:58:09 -0700 | [diff] [blame^] | 570 | # TODO: fix with attributized types $(hide) $(HOST_OUT_EXECUTABLES)/checkfc -p $(PRIVATE_SEPOLICY) $@ |
Stephen Smalley | 124720a | 2012-04-04 10:11:16 -0400 | [diff] [blame] | 571 | |
Robert Craig | 8b7545b | 2014-03-20 09:35:08 -0400 | [diff] [blame] | 572 | built_pc := $(LOCAL_BUILT_MODULE) |
William Roberts | 6aabc1c | 2015-07-30 11:44:26 -0700 | [diff] [blame] | 573 | all_pc_files := |
William Roberts | 4674975 | 2015-12-28 15:26:20 -0800 | [diff] [blame] | 574 | all_pcfiles_with_nl := |
William Roberts | dcffd2b | 2015-09-29 13:52:37 -0700 | [diff] [blame] | 575 | property_contexts.tmp := |
Robert Craig | 8b7545b | 2014-03-20 09:35:08 -0400 | [diff] [blame] | 576 | |
Stephen Smalley | 124720a | 2012-04-04 10:11:16 -0400 | [diff] [blame] | 577 | ################################## |
Riley Spahn | f90c41f | 2014-06-05 15:52:02 -0700 | [diff] [blame] | 578 | include $(CLEAR_VARS) |
| 579 | |
Stephen Smalley | 2e0cd5a | 2015-03-12 17:45:03 -0400 | [diff] [blame] | 580 | LOCAL_MODULE := general_property_contexts |
| 581 | LOCAL_MODULE_CLASS := ETC |
| 582 | LOCAL_MODULE_TAGS := tests |
| 583 | |
Stephen Smalley | c936173 | 2015-03-13 09:36:57 -0400 | [diff] [blame] | 584 | include $(BUILD_SYSTEM)/base_rules.mk |
| 585 | |
William Roberts | dcffd2b | 2015-09-29 13:52:37 -0700 | [diff] [blame] | 586 | general_property_contexts.tmp := $(intermediates)/general_property_contexts.tmp |
dcashman | cc39f63 | 2016-07-22 13:13:11 -0700 | [diff] [blame] | 587 | $(general_property_contexts.tmp): $(addprefix $(PLAT_PRIVATE_POLICY)/, property_contexts) |
Stephen Smalley | 2e0cd5a | 2015-03-12 17:45:03 -0400 | [diff] [blame] | 588 | @mkdir -p $(dir $@) |
| 589 | $(hide) m4 -s $< > $@ |
Stephen Smalley | 2e0cd5a | 2015-03-12 17:45:03 -0400 | [diff] [blame] | 590 | |
William Roberts | dcffd2b | 2015-09-29 13:52:37 -0700 | [diff] [blame] | 591 | $(LOCAL_BUILT_MODULE): PRIVATE_SEPOLICY := $(built_general_sepolicy) |
| 592 | $(LOCAL_BUILT_MODULE): $(general_property_contexts.tmp) $(built_general_sepolicy) $(HOST_OUT_EXECUTABLES)/checkfc $(ACP) |
| 593 | @mkdir -p $(dir $@) |
William Roberts | 371918c | 2016-04-06 11:40:08 -0700 | [diff] [blame] | 594 | $(hide) sed -e 's/#.*$$//' -e '/^$$/d' $< > $@ |
dcashman | 2e00e63 | 2016-10-12 14:58:09 -0700 | [diff] [blame^] | 595 | # TODO: fix with attributized types $(hide) $(HOST_OUT_EXECUTABLES)/checkfc -p $(PRIVATE_SEPOLICY) $@ |
William Roberts | dcffd2b | 2015-09-29 13:52:37 -0700 | [diff] [blame] | 596 | |
| 597 | general_property_contexts.tmp := |
Stephen Smalley | 2e0cd5a | 2015-03-12 17:45:03 -0400 | [diff] [blame] | 598 | |
| 599 | ################################## |
| 600 | include $(CLEAR_VARS) |
| 601 | |
Riley Spahn | f90c41f | 2014-06-05 15:52:02 -0700 | [diff] [blame] | 602 | LOCAL_MODULE := service_contexts |
| 603 | LOCAL_MODULE_CLASS := ETC |
| 604 | LOCAL_MODULE_TAGS := optional |
| 605 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) |
| 606 | |
| 607 | include $(BUILD_SYSTEM)/base_rules.mk |
| 608 | |
dcashman | cc39f63 | 2016-07-22 13:13:11 -0700 | [diff] [blame] | 609 | all_svc_files := $(call build_policy, service_contexts, $(PLAT_PRIVATE_POLICY) $(BOARD_SEPOLICY_DIRS)) |
Richard Haines | c8801fe | 2015-12-11 10:39:19 +0000 | [diff] [blame] | 610 | all_svcfiles_with_nl := $(call add_nl, $(all_svc_files), $(built_nl)) |
Riley Spahn | f90c41f | 2014-06-05 15:52:02 -0700 | [diff] [blame] | 611 | |
William Roberts | 7fc865a | 2015-09-29 14:17:38 -0700 | [diff] [blame] | 612 | service_contexts.tmp := $(intermediates)/service_contexts.tmp |
Richard Haines | c8801fe | 2015-12-11 10:39:19 +0000 | [diff] [blame] | 613 | $(service_contexts.tmp): PRIVATE_SVC_FILES := $(all_svcfiles_with_nl) |
William Roberts | 7fc865a | 2015-09-29 14:17:38 -0700 | [diff] [blame] | 614 | $(service_contexts.tmp): PRIVATE_ADDITIONAL_M4DEFS := $(LOCAL_ADDITIONAL_M4DEFS) |
William Roberts | 4674975 | 2015-12-28 15:26:20 -0800 | [diff] [blame] | 615 | $(service_contexts.tmp): $(all_svcfiles_with_nl) |
Riley Spahn | f90c41f | 2014-06-05 15:52:02 -0700 | [diff] [blame] | 616 | @mkdir -p $(dir $@) |
William Roberts | 6aabc1c | 2015-07-30 11:44:26 -0700 | [diff] [blame] | 617 | $(hide) m4 -s $(PRIVATE_ADDITIONAL_M4DEFS) $(PRIVATE_SVC_FILES) > $@ |
William Roberts | 7fc865a | 2015-09-29 14:17:38 -0700 | [diff] [blame] | 618 | |
| 619 | $(LOCAL_BUILT_MODULE): PRIVATE_SEPOLICY := $(built_sepolicy) |
| 620 | $(LOCAL_BUILT_MODULE): $(service_contexts.tmp) $(built_sepolicy) $(HOST_OUT_EXECUTABLES)/checkfc $(ACP) |
| 621 | @mkdir -p $(dir $@) |
William Roberts | c9fce3f | 2016-04-06 11:53:04 -0700 | [diff] [blame] | 622 | sed -e 's/#.*$$//' -e '/^$$/d' $< > $@ |
dcashman | 2e00e63 | 2016-10-12 14:58:09 -0700 | [diff] [blame^] | 623 | # TODO: fix with attributized types$(hide) $(HOST_OUT_EXECUTABLES)/checkfc -s $(PRIVATE_SEPOLICY) $@ |
Riley Spahn | f90c41f | 2014-06-05 15:52:02 -0700 | [diff] [blame] | 624 | |
| 625 | built_svc := $(LOCAL_BUILT_MODULE) |
William Roberts | 6aabc1c | 2015-07-30 11:44:26 -0700 | [diff] [blame] | 626 | all_svc_files := |
William Roberts | 4674975 | 2015-12-28 15:26:20 -0800 | [diff] [blame] | 627 | all_svcfiles_with_nl := |
William Roberts | 7fc865a | 2015-09-29 14:17:38 -0700 | [diff] [blame] | 628 | service_contexts.tmp := |
Riley Spahn | f90c41f | 2014-06-05 15:52:02 -0700 | [diff] [blame] | 629 | |
| 630 | ################################## |
rpcraig | b19665c | 2012-07-30 09:33:03 -0400 | [diff] [blame] | 631 | include $(CLEAR_VARS) |
| 632 | |
Stephen Smalley | 2e0cd5a | 2015-03-12 17:45:03 -0400 | [diff] [blame] | 633 | LOCAL_MODULE := general_service_contexts |
| 634 | LOCAL_MODULE_CLASS := ETC |
| 635 | LOCAL_MODULE_TAGS := tests |
| 636 | |
| 637 | include $(BUILD_SYSTEM)/base_rules.mk |
| 638 | |
William Roberts | 7fc865a | 2015-09-29 14:17:38 -0700 | [diff] [blame] | 639 | general_service_contexts.tmp := $(intermediates)/general_service_contexts.tmp |
dcashman | cc39f63 | 2016-07-22 13:13:11 -0700 | [diff] [blame] | 640 | $(general_service_contexts.tmp): $(addprefix $(PLAT_PRIVATE_POLICY)/, service_contexts) |
Stephen Smalley | 2e0cd5a | 2015-03-12 17:45:03 -0400 | [diff] [blame] | 641 | @mkdir -p $(dir $@) |
| 642 | $(hide) m4 -s $< > $@ |
Stephen Smalley | 2e0cd5a | 2015-03-12 17:45:03 -0400 | [diff] [blame] | 643 | |
William Roberts | 7fc865a | 2015-09-29 14:17:38 -0700 | [diff] [blame] | 644 | $(LOCAL_BUILT_MODULE): PRIVATE_SEPOLICY := $(built_general_sepolicy) |
| 645 | $(LOCAL_BUILT_MODULE): $(general_service_contexts.tmp) $(built_general_sepolicy) $(HOST_OUT_EXECUTABLES)/checkfc $(ACP) |
| 646 | @mkdir -p $(dir $@) |
William Roberts | c9fce3f | 2016-04-06 11:53:04 -0700 | [diff] [blame] | 647 | sed -e 's/#.*$$//' -e '/^$$/d' $< > $@ |
dcashman | 2e00e63 | 2016-10-12 14:58:09 -0700 | [diff] [blame^] | 648 | # TODO: fix with attributized types $(hide) $(HOST_OUT_EXECUTABLES)/checkfc -s $(PRIVATE_SEPOLICY) $@ |
William Roberts | 7fc865a | 2015-09-29 14:17:38 -0700 | [diff] [blame] | 649 | |
| 650 | general_service_contexts.tmp := |
Stephen Smalley | 2e0cd5a | 2015-03-12 17:45:03 -0400 | [diff] [blame] | 651 | |
| 652 | ################################## |
| 653 | include $(CLEAR_VARS) |
| 654 | |
Robert Craig | 7f2392e | 2013-03-27 08:35:39 -0400 | [diff] [blame] | 655 | LOCAL_MODULE := mac_permissions.xml |
rpcraig | b19665c | 2012-07-30 09:33:03 -0400 | [diff] [blame] | 656 | LOCAL_MODULE_CLASS := ETC |
| 657 | LOCAL_MODULE_TAGS := optional |
| 658 | LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/security |
| 659 | |
William Roberts | 2c8a55d | 2012-11-30 14:59:09 -0800 | [diff] [blame] | 660 | include $(BUILD_SYSTEM)/base_rules.mk |
rpcraig | b19665c | 2012-07-30 09:33:03 -0400 | [diff] [blame] | 661 | |
Geremy Condra | cd4104e | 2013-03-26 18:19:12 +0000 | [diff] [blame] | 662 | # Build keys.conf |
| 663 | mac_perms_keys.tmp := $(intermediates)/keys.tmp |
William Roberts | d218558 | 2015-07-16 11:28:02 -0700 | [diff] [blame] | 664 | $(mac_perms_keys.tmp): PRIVATE_ADDITIONAL_M4DEFS := $(LOCAL_ADDITIONAL_M4DEFS) |
dcashman | cc39f63 | 2016-07-22 13:13:11 -0700 | [diff] [blame] | 665 | $(mac_perms_keys.tmp): $(call build_policy, keys.conf, $(PLAT_PRIVATE_POLICY) $(BOARD_SEPOLICY_DIRS)) |
Geremy Condra | cd4104e | 2013-03-26 18:19:12 +0000 | [diff] [blame] | 666 | @mkdir -p $(dir $@) |
William Roberts | d218558 | 2015-07-16 11:28:02 -0700 | [diff] [blame] | 667 | $(hide) m4 -s $(PRIVATE_ADDITIONAL_M4DEFS) $^ > $@ |
Geremy Condra | cd4104e | 2013-03-26 18:19:12 +0000 | [diff] [blame] | 668 | |
dcashman | cc39f63 | 2016-07-22 13:13:11 -0700 | [diff] [blame] | 669 | all_mac_perms_files := $(call build_policy, $(LOCAL_MODULE), $(PLAT_PRIVATE_POLICY) $(BOARD_SEPOLICY_DIRS)) |
rpcraig | b19665c | 2012-07-30 09:33:03 -0400 | [diff] [blame] | 670 | |
Shinichiro Hamaji | ef0c14d | 2016-05-13 16:04:58 +0900 | [diff] [blame] | 671 | # Should be synced with keys.conf. |
| 672 | all_keys := platform media shared testkey |
| 673 | all_keys := $(all_keys:%=$(dir $(DEFAULT_SYSTEM_DEV_CERTIFICATE))/%.x509.pem) |
| 674 | |
William Roberts | 6aabc1c | 2015-07-30 11:44:26 -0700 | [diff] [blame] | 675 | $(LOCAL_BUILT_MODULE): PRIVATE_MAC_PERMS_FILES := $(all_mac_perms_files) |
Shinichiro Hamaji | ef0c14d | 2016-05-13 16:04:58 +0900 | [diff] [blame] | 676 | $(LOCAL_BUILT_MODULE): $(mac_perms_keys.tmp) $(HOST_OUT_EXECUTABLES)/insertkeys.py $(all_mac_perms_files) $(all_keys) |
Geremy Condra | cd4104e | 2013-03-26 18:19:12 +0000 | [diff] [blame] | 677 | @mkdir -p $(dir $@) |
Nick Kralevich | c3c9052 | 2013-10-25 12:25:36 -0700 | [diff] [blame] | 678 | $(hide) DEFAULT_SYSTEM_DEV_CERTIFICATE="$(dir $(DEFAULT_SYSTEM_DEV_CERTIFICATE))" \ |
William Roberts | 6aabc1c | 2015-07-30 11:44:26 -0700 | [diff] [blame] | 679 | $(HOST_OUT_EXECUTABLES)/insertkeys.py -t $(TARGET_BUILD_VARIANT) -c $(TOP) $< -o $@ $(PRIVATE_MAC_PERMS_FILES) |
Geremy Condra | cd4104e | 2013-03-26 18:19:12 +0000 | [diff] [blame] | 680 | |
Robert Craig | 7f2392e | 2013-03-27 08:35:39 -0400 | [diff] [blame] | 681 | mac_perms_keys.tmp := |
William Roberts | 6aabc1c | 2015-07-30 11:44:26 -0700 | [diff] [blame] | 682 | all_mac_perms_files := |
| 683 | |
rpcraig | b19665c | 2012-07-30 09:33:03 -0400 | [diff] [blame] | 684 | ################################## |
Robert Craig | 8b7545b | 2014-03-20 09:35:08 -0400 | [diff] [blame] | 685 | include $(CLEAR_VARS) |
| 686 | |
| 687 | LOCAL_MODULE := selinux_version |
| 688 | LOCAL_MODULE_CLASS := ETC |
| 689 | LOCAL_MODULE_TAGS := optional |
| 690 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) |
| 691 | |
| 692 | include $(BUILD_SYSTEM)/base_rules.mk |
William Roberts | da52e85 | 2015-06-27 07:22:34 -0700 | [diff] [blame] | 693 | $(LOCAL_BUILT_MODULE): $(built_sepolicy) $(built_pc) $(built_fc) $(built_sc) $(built_svc) |
Robert Craig | 8b7545b | 2014-03-20 09:35:08 -0400 | [diff] [blame] | 694 | @mkdir -p $(dir $@) |
Colin Cross | 29a463d | 2015-07-17 13:08:41 -0700 | [diff] [blame] | 695 | $(hide) echo -n $(BUILD_FINGERPRINT_FROM_FILE) > $@ |
Robert Craig | 8b7545b | 2014-03-20 09:35:08 -0400 | [diff] [blame] | 696 | |
| 697 | ################################## |
rpcraig | 47cd396 | 2012-10-17 21:09:52 -0400 | [diff] [blame] | 698 | |
| 699 | build_policy := |
William Roberts | 49693f1 | 2016-01-04 12:20:57 -0800 | [diff] [blame] | 700 | build_device_policy := |
dcashman | 704741a | 2014-07-25 19:11:52 -0700 | [diff] [blame] | 701 | sepolicy_build_files := |
Robert Craig | 8b7545b | 2014-03-20 09:35:08 -0400 | [diff] [blame] | 702 | built_sepolicy := |
William Roberts | 50a478e | 2015-12-28 16:19:54 -0800 | [diff] [blame] | 703 | built_sepolicy_recovery := |
Robert Craig | 8b7545b | 2014-03-20 09:35:08 -0400 | [diff] [blame] | 704 | built_sc := |
| 705 | built_fc := |
| 706 | built_pc := |
Riley Spahn | f90c41f | 2014-06-05 15:52:02 -0700 | [diff] [blame] | 707 | built_svc := |
William Roberts | b876993 | 2015-06-29 16:31:23 -0700 | [diff] [blame] | 708 | built_general_sepolicy := |
| 709 | built_general_sepolicy.conf := |
Richard Haines | c8801fe | 2015-12-11 10:39:19 +0000 | [diff] [blame] | 710 | built_nl := |
William Roberts | 50a478e | 2015-12-28 16:19:54 -0800 | [diff] [blame] | 711 | add_nl := |
Alice Chu | cdfb06f | 2012-11-01 11:33:04 -0700 | [diff] [blame] | 712 | |
| 713 | include $(call all-makefiles-under,$(LOCAL_PATH)) |