@@ -20,6 +20,7 @@ pub enum FeatureId {
2020 KernelUmount = 1 ,
2121 Sulog = 2 ,
2222 AdbRoot = 3 ,
23+ ProcessTag = 4 ,
2324}
2425
2526impl FeatureId {
@@ -29,6 +30,7 @@ impl FeatureId {
2930 1 => Some ( Self :: KernelUmount ) ,
3031 2 => Some ( Self :: Sulog ) ,
3132 3 => Some ( Self :: AdbRoot ) ,
33+ 4 => Some ( Self :: ProcessTag ) ,
3234 _ => None ,
3335 }
3436 }
@@ -39,6 +41,7 @@ impl FeatureId {
3941 Self :: KernelUmount => "kernel_umount" ,
4042 Self :: Sulog => "sulog" ,
4143 Self :: AdbRoot => "adb_root" ,
44+ Self :: ProcessTag => "process_tag" ,
4245 }
4346 }
4447
@@ -54,6 +57,7 @@ impl FeatureId {
5457 "SU Log - streams kernel sulog events to userspace and persists them to disk"
5558 }
5659 Self :: AdbRoot => "ADB Root - Enable adbd root" ,
60+ Self :: ProcessTag => "Process Tag - Tagging process for audit" ,
5761 }
5862 }
5963}
@@ -64,6 +68,7 @@ fn parse_feature_id(name: &str) -> Result<FeatureId> {
6468 "kernel_umount" | "1" => Ok ( FeatureId :: KernelUmount ) ,
6569 "sulog" | "2" => Ok ( FeatureId :: Sulog ) ,
6670 "adb_root" | "3" => Ok ( FeatureId :: AdbRoot ) ,
71+ "process_tag" | "4" => Ok ( FeatureId :: ProcessTag ) ,
6772 _ => bail ! ( "Unknown feature: {name}" ) ,
6873 }
6974}
0 commit comments