Board tree for Google Tensor G2 devices
Find a file
Nick Kralevich 588e82af38 convert-to-ext4-sh.te: use su domain instead
07af2808d5 (b/239632964) added
security policy support for /system_ext/bin/convert_to_ext4.sh.
This shell script converts f2fs filesystems into ext4 filesystems
on debuggable builds (userdebug or eng) only. Ever since 2022,
the security policy for this shell script has been in permissive
mode, meaning no SELinux rules were being enforced.

  # convert-to-ext4-sh.te
  permissive convert-to-ext4-sh;

In the intervening 2 years, there has been no attempt to move
this domain into enforcing mode. And by now, this script has
likely served its purpose, by converting f2fs /persist filesystems
on engineering builds to ext4, and is probably no longer needed.

This change eliminates the use of the unenforced convert-to-ext4-sh
security domain, preferring instead to use the "su" security domain.
Like convert-to-ext4-sh, the su security domain enforces no rules
on debuggable builds, and is equivalent to traditional root on
desktop Linux systems, or running /system/xbin/su. This change
eliminates unnecessary technical complexity, and unblocks other
hardening changes, such as WIP commit
https://android-review.googlesource.com/c/platform/system/sepolicy/+/3308856

Moving from one permissive domain ("convert-to-ext4-sh") to another
permissive domain ("su") should be a no-op from a security and
functionality perspective.

Test: compiles and builds, passes treehugger.
Bug: 239632964
Change-Id: Ifd628310a923926d1a57b568c7703cb857f0871b
2024-10-15 10:30:19 -07:00
health Implement health AIDL HAL. 2022-01-11 21:39:14 +00:00
private Revert^2 "Remove persist.bootanim.color property definitions" 2024-02-25 23:58:59 +00:00
public Move coredomain policies to system_ext/product 2023-08-08 21:33:28 +09:00
system_ext gs201: telephony property for cbd 2024-04-01 05:12:58 +00:00
tracking_denials Update SELinux error 2024-04-23 06:53:55 +00:00
whitechapel_pro convert-to-ext4-sh.te: use su domain instead 2024-10-15 10:30:19 -07:00
widevine Pixel 2022: MediaDrm AIDL sepolicy 2022-04-13 18:38:21 +00:00
gs201-sepolicy.mk Move coredomain policies to system_ext/product 2023-08-08 21:33:28 +09:00
OWNERS Introduce new sepoilcy owner 2023-05-12 02:11:38 +00:00