Merge "Add policy for LOOP_CONFIGURE ioctl."

This commit is contained in:
Martijn Coenen 2020-08-12 06:38:37 +00:00 committed by Gerrit Code Review
commit cdecd3ca4c
4 changed files with 4 additions and 0 deletions

View file

@ -37,6 +37,7 @@ allowxperm apexd loop_device:blk_file ioctl {
LOOP_SET_DIRECT_IO
LOOP_CLR_FD
BLKFLSBUF
LOOP_CONFIGURE
};
# allow apexd to access /dev/block
allow apexd block_device:dir r_dir_perms;

View file

@ -1370,6 +1370,7 @@ define(`LOGGER_GET_VERSION', `0x0000ae05')
define(`LOGGER_SET_VERSION', `0x0000ae06')
define(`LOOP_CHANGE_FD', `0x00004c06')
define(`LOOP_CLR_FD', `0x00004c01')
define(`LOOP_CONFIGURE', `0x00004c0a')
define(`LOOP_CTL_ADD', `0x00004c80')
define(`LOOP_CTL_GET_FREE', `0x00004c82')
define(`LOOP_CTL_REMOVE', `0x00004c81')

View file

@ -37,6 +37,7 @@ allowxperm apexd loop_device:blk_file ioctl {
LOOP_SET_DIRECT_IO
LOOP_CLR_FD
BLKFLSBUF
LOOP_CONFIGURE
};
# allow apexd to access /dev/block
allow apexd block_device:dir r_dir_perms;

View file

@ -1370,6 +1370,7 @@ define(`LOGGER_GET_VERSION', `0x0000ae05')
define(`LOGGER_SET_VERSION', `0x0000ae06')
define(`LOOP_CHANGE_FD', `0x00004c06')
define(`LOOP_CLR_FD', `0x00004c01')
define(`LOOP_CONFIGURE', `0x00004c0a')
define(`LOOP_CTL_ADD', `0x00004c80')
define(`LOOP_CTL_GET_FREE', `0x00004c82')
define(`LOOP_CTL_REMOVE', `0x00004c81')