summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@google.com>2021-08-23 13:21:44 -0700
committerBart Van Assche <bvanassche@google.com>2021-08-23 13:26:31 -0700
commite5588073f519006762e1c5c3218bb95bc26a28eb (patch)
tree76eedb0b0afd1703e2abc9a3f482e04280c8e3d5
parent147a400bb1276d573b67cdaf10ea366998e28efe (diff)
downloadbonito-sepolicy-android-s-beta-5.tar.gz
Add the bdev_type attribute to the rpmb_device typeandroid-s-beta-5android-s-beta-5
This patch fixes the following SELinux denial, reported by Treehugger for patch https://android-review.git.corp.google.com/c/platform/system/apex/+/1782069: 07-29 02:52:54.320 582 582 I auditd : type=1400 audit(0.0:4): avc: denied { getattr } for comm="apexd" path="/dev/block/mmcblk0rpmb" dev="tmpfs" ino=15991 scontext=u:r:apexd:s0 Bug: 194450129 Test: Untested. Change-Id: I5b6cd8377cfef6d28ec2c2f3f63c68e2530c5ab4 Signed-off-by: Bart Van Assche <bvanassche@google.com>
-rw-r--r--vendor/qcom/common/device.te2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/qcom/common/device.te b/vendor/qcom/common/device.te
index 734a63b7..b1fa00cd 100644
--- a/vendor/qcom/common/device.te
+++ b/vendor/qcom/common/device.te
@@ -25,4 +25,4 @@ type wlan_device, dev_type;
type xbl_block_device, dev_type, bdev_type;
# TODO: Replace KM3 with KM4 (b/112339903)
-type rpmb_device, dev_type;
+type rpmb_device, dev_type, bdev_type;