Merge "Add FUNCTIONFS_ENDPOINT_ALLOC to ioctl_defines and mediaprovider.te" am: 6d20ea2095 am: da51d74a17

Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1762745

Change-Id: Iaa012198476ce0249ffd9bc492faf58e90baa186
This commit is contained in:
Joel Galenson 2021-07-20 15:39:47 +00:00 committed by Automerger Merge Worker
commit 998299d40a
2 changed files with 2 additions and 0 deletions

View file

@ -39,6 +39,7 @@ allow mediaprovider mtp_device:chr_file rw_file_perms;
allow mediaprovider functionfs:dir search;
allow mediaprovider functionfs:file rw_file_perms;
allowxperm mediaprovider functionfs:file ioctl FUNCTIONFS_ENDPOINT_DESC;
allowxperm mediaprovider functionfs:file ioctl FUNCTIONFS_ENDPOINT_ALLOC;
# MtpServer sets sys.usb.ffs.mtp.ready
get_prop(mediaprovider, ffs_config_prop)

View file

@ -846,6 +846,7 @@ define(`FUNCTIONFS_ENDPOINT_REVMAP', `0x00006781')
define(`FUNCTIONFS_FIFO_FLUSH', `0x00006702')
define(`FUNCTIONFS_FIFO_STATUS', `0x00006701')
define(`FUNCTIONFS_INTERFACE_REVMAP', `0x00006780')
define(`FUNCTIONFS_ENDPOINT_ALLOC', `0x000067e7')
define(`FW_CDEV_IOC_ADD_DESCRIPTOR', `0xc0182306')
define(`FW_CDEV_IOC_ALLOCATE', `0xc0202302')
define(`FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE', `0xc018230d')