diff --git a/private/system_server.te b/private/system_server.te index 9dd4b1b3e..7239a3087 100644 --- a/private/system_server.te +++ b/private/system_server.te @@ -44,11 +44,28 @@ allowxperm system_server apk_data_file:file ioctl { INCFS_IOCTL_FILL_BLOCKS INCFS_IOCTL_GET_FILLED_BLOCKS INCFS_IOCTL_GET_BLOCK_COUNT + F2FS_IOC_GET_FEATURES + F2FS_IOC_GET_COMPRESS_BLOCKS + F2FS_IOC_COMPRESS_FILE + F2FS_IOC_DECOMPRESS_FILE + F2FS_IOC_RELEASE_COMPRESS_BLOCKS + F2FS_IOC_RESERVE_COMPRESS_BLOCKS + FS_IOC_SETFLAGS + FS_IOC_GETFLAGS +}; + +allowxperm system_server apk_tmp_file:file ioctl { + F2FS_IOC_RELEASE_COMPRESS_BLOCKS + FS_IOC_GETFLAGS }; # For Incremental Service to check incfs metrics allow system_server sysfs_fs_incfs_metrics:file r_file_perms; +# For f2fs-compression support +allow system_server sysfs_fs_f2fs:dir r_dir_perms; +allow system_server sysfs_fs_f2fs:file r_file_perms; + # For art. allow system_server { apex_art_data_file dalvikcache_data_file }:dir r_dir_perms; allow system_server { apex_art_data_file dalvikcache_data_file }:file r_file_perms;