From 161893e2d49d5ea55977a3d5db31cac8fc335248 Mon Sep 17 00:00:00 2001 From: Adam Shih Date: Fri, 2 Dec 2022 10:27:34 +0800 Subject: [PATCH] change type name to avoid duplicated declaration Bug: 256521567 Test: build pass Change-Id: I76ea453bd87803b2ff23ca1f914a5f2f383354f9 --- touch/gti/sepolicy/dump_gti.te | 4 ++-- touch/gti/sepolicy/file.te | 2 +- touch/gti/sepolicy/genfs_contexts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/touch/gti/sepolicy/dump_gti.te b/touch/gti/sepolicy/dump_gti.te index af99a07..7482246 100644 --- a/touch/gti/sepolicy/dump_gti.te +++ b/touch/gti/sepolicy/dump_gti.te @@ -1,6 +1,6 @@ pixel_bugreport(dump_gti) -allow dump_gti sysfs_touch:dir r_dir_perms; -allow dump_gti sysfs_touch:file rw_file_perms; +allow dump_gti sysfs_touch_gti:dir r_dir_perms; +allow dump_gti sysfs_touch_gti:file rw_file_perms; allow dump_gti vendor_toolbox_exec:file execute_no_trans; diff --git a/touch/gti/sepolicy/file.te b/touch/gti/sepolicy/file.te index 3e53ec3..9776707 100644 --- a/touch/gti/sepolicy/file.te +++ b/touch/gti/sepolicy/file.te @@ -1,2 +1,2 @@ -type sysfs_touch, sysfs_type, fs_type; +type sysfs_touch_gti, sysfs_type, fs_type; diff --git a/touch/gti/sepolicy/genfs_contexts b/touch/gti/sepolicy/genfs_contexts index 9a2ce7a..a64e39b 100644 --- a/touch/gti/sepolicy/genfs_contexts +++ b/touch/gti/sepolicy/genfs_contexts @@ -1,2 +1,2 @@ # Touch -genfscon sysfs /devices/virtual/goog_touch_interface u:object_r:sysfs_touch:s0 +genfscon sysfs /devices/virtual/goog_touch_interface u:object_r:sysfs_touch_gti:s0