Merge "Add FUNCTIONFS_ENDPOINT_ALLOC to ioctl_defines and mediaprovider.te"

This commit is contained in:
Joel Galenson 2021-07-20 15:11:58 +00:00 committed by Gerrit Code Review
commit 6d20ea2095
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')