Skip to content

Commit 7147887

Browse files
author
Daz Jones
committedSep 29, 2013
sepolicy: add initial policy for cust
I was planning on doing this properly (maybe) at some point, but this is necessary to fix formatting cust in recovery as make_ext4fs doesn't have a security context to look up.
1 parent 4c26eb7 commit 7147887

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed
 

‎BoardConfig.mk

+6
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ TARGET_USES_16BPPSURFACE_FOR_OPAQUE := true
3838
ARCH_ARM_HIGH_OPTIMIZATION := true
3939
ARCH_ARM_HAVE_32_BYTE_CACHE_LINES := true
4040

41+
BOARD_SEPOLICY_DIRS += device/huawei/u8815/sepolicy
42+
43+
BOARD_SEPOLICY_UNION += \
44+
file_contexts \
45+
file.te
46+
4147
TARGET_USES_ION := false
4248

4349
TARGET_BOOTLOADER_BOARD_NAME := u8815

‎sepolicy/file.te

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Carrier cust type
2+
type cust_file, file_type;

‎sepolicy/file_contexts

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# cust filesystem
2+
/cust(/.*)? u:object_r:cust_file:s0

0 commit comments

Comments
 (0)
Failed to load comments.