diff options
Diffstat (limited to 'emulator/usbpt/bluetooth/btusb/sepolicy')
5 files changed, 10 insertions, 0 deletions
diff --git a/emulator/usbpt/bluetooth/btusb/sepolicy/bluetooth.te b/emulator/usbpt/bluetooth/btusb/sepolicy/bluetooth.te new file mode 100644 index 0000000..dacbe8f --- /dev/null +++ b/emulator/usbpt/bluetooth/btusb/sepolicy/bluetooth.te @@ -0,0 +1,2 @@ +allow kernel vendor_fw_file:file {open read}; +allow kernel vendor_fw_file:dir search; diff --git a/emulator/usbpt/bluetooth/btusb/sepolicy/domain.te b/emulator/usbpt/bluetooth/btusb/sepolicy/domain.te new file mode 100644 index 0000000..448f1c3 --- /dev/null +++ b/emulator/usbpt/bluetooth/btusb/sepolicy/domain.te @@ -0,0 +1,4 @@ +allow domain qemu_device:chr_file rw_file_perms; + +get_prop(domain, vendor_qemu_prop) +get_prop(domain, vendor_build_prop) diff --git a/emulator/usbpt/bluetooth/btusb/sepolicy/file.te b/emulator/usbpt/bluetooth/btusb/sepolicy/file.te new file mode 100644 index 0000000..bfde7a6 --- /dev/null +++ b/emulator/usbpt/bluetooth/btusb/sepolicy/file.te @@ -0,0 +1 @@ +type vendor_fw_file, vendor_file_type, file_type; diff --git a/emulator/usbpt/bluetooth/btusb/sepolicy/file_contexts b/emulator/usbpt/bluetooth/btusb/sepolicy/file_contexts new file mode 100644 index 0000000..a4c28ba --- /dev/null +++ b/emulator/usbpt/bluetooth/btusb/sepolicy/file_contexts @@ -0,0 +1,2 @@ +# Vendor Firmwares +/(vendor|system/vendor)/firmware(/.*)? u:object_r:vendor_fw_file:s0 diff --git a/emulator/usbpt/bluetooth/btusb/sepolicy/property_contexts b/emulator/usbpt/bluetooth/btusb/sepolicy/property_contexts new file mode 100644 index 0000000..224ca7f --- /dev/null +++ b/emulator/usbpt/bluetooth/btusb/sepolicy/property_contexts @@ -0,0 +1 @@ +vendor.qemu.preferred.bt.service u:object_r:vendor_qemu_prop:s0 |