Allow shutdown /data
Bug: 229406072 Signed-off-by: Jaegeuk Kim <jaegeuk@google.com> Change-Id: I7bdd9acd2e85311ecb59b3f0eb1f503a93e240ef
This commit is contained in:
parent
c696791a7f
commit
3a45ffec11
2 changed files with 2 additions and 0 deletions
|
@ -158,6 +158,7 @@ allow init self:global_capability_class_set { sys_rawio mknod };
|
|||
# Mounting filesystems from block devices.
|
||||
allow init dev_type:blk_file r_file_perms;
|
||||
allowxperm init dev_type:blk_file ioctl BLKROSET;
|
||||
allowxperm init system_data_root_file:dir ioctl F2FS_IOC_SHUTDOWN;
|
||||
|
||||
# Mounting filesystems.
|
||||
# Only allow relabelto for types used in context= mount options,
|
||||
|
|
|
@ -722,6 +722,7 @@ define(`F2FS_IOC_GET_COMPRESS_OPTION', `0xf515')
|
|||
define(`F2FS_IOC_SET_COMPRESS_OPTION', `0xf516')
|
||||
define(`F2FS_IOC_DECOMPRESS_FILE', `0xf517')
|
||||
define(`F2FS_IOC_COMPRESS_FILE', `0xf518')
|
||||
define(`F2FS_IOC_SHUTDOWN', `0x587d')
|
||||
define(`FAT_IOCTL_GET_ATTRIBUTES', `0x80047210')
|
||||
define(`FAT_IOCTL_GET_VOLUME_ID', `0x80047213')
|
||||
define(`FAT_IOCTL_SET_ATTRIBUTES', `0x40047211')
|
||||
|
|
Loading…
Reference in a new issue