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
3 files changed
tree: 741643926ce0a2d69e9c46caaba15e6516d54ca6
  1. car-bugreportd/
  2. car-default-input-service/
  3. car-internal-lib/
  4. car-lib/
  5. car-maps-placeholder/
  6. car-systemtest-lib/
  7. car-test-lib/
  8. car-usb-handler/
  9. car_product/
  10. computepipe/
  11. EncryptionRunner/
  12. evs/
  13. experimental/
  14. FrameworkPackageStubs/
  15. obd2-lib/
  16. procfs-inspector/
  17. service/
  18. surround_view/
  19. tests/
  20. tools/
  21. user/
  22. vehicle-hal-support-lib/
  23. watchdog/
  24. .clang-format
  25. .gitignore
  26. Android.mk
  27. CleanSpec.mk
  28. CPPLINT.cfg
  29. OWNERS
  30. PREUPLOAD.cfg
  31. README.md
  32. TEST_MAPPING
README.md

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.