Allow setattr for chattr

Bug: 138322712
Test: No denial for chattr on boot
Change-Id: I9fdfc8ff4d3d0b2743ca572f4c3e64477f97cd84
This commit is contained in:
Daniel Rosenberg 2020-02-03 17:57:03 -08:00
parent 4de3228c46
commit e4c966648e

View file

@ -29,7 +29,7 @@ allow toolbox system_data_file:dir { rmdir rw_dir_perms };
allow toolbox system_data_file:file { getattr unlink }; allow toolbox system_data_file:file { getattr unlink };
# chattr +F and chattr +P /data/media in init # chattr +F and chattr +P /data/media in init
allow toolbox media_rw_data_file:dir { r_dir_perms }; allow toolbox media_rw_data_file:dir { r_dir_perms setattr };
allowxperm toolbox media_rw_data_file:dir ioctl { allowxperm toolbox media_rw_data_file:dir ioctl {
FS_IOC_FSGETXATTR FS_IOC_FSGETXATTR
FS_IOC_FSSETXATTR FS_IOC_FSSETXATTR