commit | 0b8205346b8c5cb7dd4cd98152d7cfa2534f2127 | [log] [tgz] |
---|---|---|
author | Yiming Jing <yimingjing@google.com> | Thu Jun 25 10:31:34 2020 -0700 |
committer | Yiming Jing <yimingjing@google.com> | Thu Jun 25 18:26:17 2020 +0000 |
tree | 741643926ce0a2d69e9c46caaba15e6516d54ca6 | |
parent | da8ad4c6426e39c997d608a7b04c57863b39c0a5 [diff] |
Remove the sysfs_fs_lifetime_write type SysfsLifetimeWriteInfoProvider needs to read /sys/fs/(ext4|f2fs)/<some partition>/lifetime_writes_kbytes. sysfs_fs_lifetime_write was created for these files so allow rules could be created for carservice_app. But the files were never correctly labeled; becuase genfs_context does not support regex; and file_contexts does not support sysfs. So sys_fs_lifetime_write is useless given the current situation. As a solution, we remove sysfs_fs_lifetime_write; and allow carservice_app to read sysfs_fs_ext4 and sysfs_fs_f2fs. This is slightly relaxed; but just reading these files should be good. Fix: 157793539 Test: lunch aosp_osprey-userdebug && m Test: check /sys/fs/ext4 to see if it has the correct type labeled Test: then check /system/vendor/etc/selinux for the modified rules Change-Id: I8d05094b528a4e5eec546ccb9ca871979b87bc84
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.