aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2019-05-25 23:08:16 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-05-25 23:08:16 +0000
commit58e6ddb5d9e317114b074126d7956464b208fb69 (patch)
tree60faaad9ddd7c0acd7fe1903bf23e9cbd60ec404
parent2cffb81f479bb390f8542a797058fd1c7790b99b (diff)
parent74261e2154da3e686eac3334b9d3f07471535cd6 (diff)
downloadcuttlefish-android10-c2f2-release.tar.gz
Change-Id: If7ce36a0bd80910b2ed29fb754f60fad5612e539
-rw-r--r--shared/device.mk4
-rw-r--r--shared/sepolicy/device.te1
-rw-r--r--shared/sepolicy/recovery.te14
3 files changed, 1 insertions, 18 deletions
diff --git a/shared/device.mk b/shared/device.mk
index 271dde80e..3f1183eb6 100644
--- a/shared/device.mk
+++ b/shared/device.mk
@@ -51,10 +51,6 @@ PRODUCT_PROPERTY_OVERRIDES += \
PRODUCT_PROPERTY_OVERRIDES += \
wlan.driver.status=ok
-# Cuttlefish does not support ION needed for Codec 2.0
-PRODUCT_PROPERTY_OVERRIDES += \
- debug.stagefright.ccodec=0
-
#
# Packages for various cuttlefish-specific tests
#
diff --git a/shared/sepolicy/device.te b/shared/sepolicy/device.te
index 38f0a2f0f..c29c2bf32 100644
--- a/shared/sepolicy/device.te
+++ b/shared/sepolicy/device.te
@@ -5,3 +5,4 @@ type region_e2e_test_device, dev_type;
type region_screen_device, dev_type;
type socket_forward_device, dev_type;
type virtual_serial_device, dev_type;
+typeattribute system_block_device super_block_device_type;
diff --git a/shared/sepolicy/recovery.te b/shared/sepolicy/recovery.te
index e55c18b0a..d72dc6428 100644
--- a/shared/sepolicy/recovery.te
+++ b/shared/sepolicy/recovery.te
@@ -1,17 +1,3 @@
allow recovery gpu_device:chr_file rw_file_perms;
allow recovery appdomain_tmpfs:file r_file_perms;
-
-allow recovery sysfs_dm:dir r_dir_perms;
-allow recovery sysfs_dm:file r_file_perms;
-
-# TODO: This should really be 'super_block_device', but we can't label
-# vda both system_block_device and super_block_device..
-allowxperm recovery system_block_device:blk_file ioctl { BLKIOMIN BLKALIGNOFF };
-
-# Copied from update_engine.te:
-# Note: fsetid checks are triggered when creating a file in a directory with
-# the setgid bit set to determine if the file should inherit setgid. In this
-# case, setgid on the file is undesirable so we should just suppress the
-# denial.
-dontaudit recovery self:global_capability_class_set fsetid;