Skip to content

Commit

Permalink
Clean up not used sepolicy
Browse files Browse the repository at this point in the history
Remove ufo/coreu/msync/mesa_acrn related items.

Tracked-On: OAM-124121
Signed-off-by: ZhuChenyanX <[email protected]>
  • Loading branch information
ZhuChenyanX authored and sysopenci committed Sep 19, 2024
1 parent 9cb5390 commit b6b5a09
Show file tree
Hide file tree
Showing 64 changed files with 0 additions and 573 deletions.
2 changes: 0 additions & 2 deletions codec2/msdk-codec2/codec2_hal_default.te
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ hal_client_domain(codec2_hal_default, hal_graphics_allocator)
hal_server_domain(codec2_hal_default, hal_codec2)
hal_server_domain(codec2_hal_default, hal_omx)

binder_call(codec2_hal_default, coreu)
binder_call(codec2_hal_default, appdomain)

get_prop(codec2_hal_default, hwservicemanager_prop)
Expand All @@ -24,7 +23,6 @@ module_only(`aafd', `
get_prop(codec2_hal_default, vendor_media_platform_prop)
')

allow codec2_hal_default coreu_service:service_manager find;
allow codec2_hal_default cameraserver_service:service_manager find;
allow codec2_hal_default media_session_service:service_manager find;
allow codec2_hal_default hal_codec2_hwservice:hwservice_manager find;
Expand Down
64 changes: 0 additions & 64 deletions graphics/mesa/coreu.te

This file was deleted.

3 changes: 0 additions & 3 deletions graphics/mesa/file.te
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,4 @@ type sysfs_app_readable, fs_type, sysfs_type;

typeattribute hal_graphics_allocator_default_tmpfs mlstrustedobject;

#coreu data/vendor permission
type coreu_data_file, file_type, data_file_type;

type hal_graphics_composer_rw_file, file_type;
5 changes: 0 additions & 5 deletions graphics/mesa/file_contexts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
/dev/sw_sync u:object_r:graphics_device:s0

# system or vendor binaries
(/system)?/vendor/bin/coreu u:object_r:coreu_exec:s0
(/system)?/vendor/bin/gfxd u:object_r:gfxd_exec:s0
(/system)?/vendor/bin/msync u:object_r:msync_exec:s0

# GFX
/sys/devices/pci0000\:00/0000\:00\:02.0/resource0 u:object_r:sysfs_gfx:s0
Expand All @@ -25,6 +23,3 @@
/(vendor|system/vendor)/lib(64)?/libmd\.so u:object_r:same_process_hal_file:s0
/(vendor|system/vendor)/lib(64)?/hw/vulkan\.pastel\.so u:object_r:same_process_hal_file:s0
/(vendor|system/vendor)/lib(64)?/dri(/.*)? u:object_r:same_process_hal_file:s0

#coreu /data/vendor permission
/data/vendor/coreu(/.*)? u:object_r:coreu_data_file:s0
2 changes: 0 additions & 2 deletions graphics/mesa/hal_drm_widevine.te

This file was deleted.

5 changes: 0 additions & 5 deletions graphics/mesa/init.te

This file was deleted.

1 change: 0 additions & 1 deletion graphics/mesa/mediacodec.te
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ allow mediacodec graphics_device:dir search;
allow mediacodec sysfs_app_readable:file r_file_perms;
allow mediacodec hal_graphics_allocator_default_tmpfs:file { read write map };

allow mediacodec coreu_service:service_manager find;
allow mediacodec system_file:dir r_dir_perms;
allow mediacodec gpu_device:dir r_dir_perms;
allow mediacodec tmpfs:file { read write map };
Expand Down
5 changes: 0 additions & 5 deletions graphics/mesa/mediaserver.te
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
# mediaserver
#

not_full_treble(`
binder_call(mediaserver, coreu)
allow mediaserver coreu_service:service_manager find;
')

#allow mediaserver tee_device:chr_file rw_file_perms;
allow mediaserver proc_graphics:file r_file_perms;
allow mediaserver graphics_device:chr_file rw_file_perms;
Expand Down
13 changes: 0 additions & 13 deletions graphics/mesa/msync.te

This file was deleted.

5 changes: 0 additions & 5 deletions graphics/mesa/surfaceflinger.te
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ not_full_treble(`
allow surfaceflinger cache_file:dir create_dir_perms;
allow surfaceflinger cache_file:file create_file_perms;

not_full_treble(`
binder_call(surfaceflinger, coreu)
allow surfaceflinger coreu_service:service_manager find;
')

allow surfaceflinger sysfs_videostatus:file { getattr w_file_perms };

allow surfaceflinger hal_graphics_allocator_default_tmpfs:file { read write map };
Expand Down
1 change: 0 additions & 1 deletion graphics/mesa/vendor_init.te
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ allow vendor_init vendor_file:system module_load;
dontaudit vendor_init debugfs_tracing_instances:dir write;
allow vendor_init mediaserver:process setsched;
allow vendor_init self:udp_socket create;
dontaudit vendor_init coreu_data_file:dir create_dir_perms;
2 changes: 0 additions & 2 deletions graphics/mesa/vndservice.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
type hwc_info_service, vndservice_manager_type;
type coreu_service, vndservice_manager_type;
type msync_service, vndservice_manager_type;
type gfxd_service, vndservice_manager_type;
2 changes: 0 additions & 2 deletions graphics/mesa/vndservice_contexts
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
hwc.info u:object_r:hwc_info_service:s0
android.hardware.intel.msync u:object_r:msync_service:s0
android.hardware.intel.coreu u:object_r:coreu_service:s0
gfxd u:object_r:gfxd_service:s0
6 changes: 0 additions & 6 deletions graphics/mesa_acrn/adbd.te

This file was deleted.

5 changes: 0 additions & 5 deletions graphics/mesa_acrn/appdomain.te

This file was deleted.

2 changes: 0 additions & 2 deletions graphics/mesa_acrn/bootanim.te

This file was deleted.

1 change: 0 additions & 1 deletion graphics/mesa_acrn/domain.te

This file was deleted.

2 changes: 0 additions & 2 deletions graphics/mesa_acrn/dumpstate.te

This file was deleted.

20 changes: 0 additions & 20 deletions graphics/mesa_acrn/file.te

This file was deleted.

25 changes: 0 additions & 25 deletions graphics/mesa_acrn/file_contexts

This file was deleted.

2 changes: 0 additions & 2 deletions graphics/mesa_acrn/genfs_contexts

This file was deleted.

44 changes: 0 additions & 44 deletions graphics/mesa_acrn/gfxd.te

This file was deleted.

3 changes: 0 additions & 3 deletions graphics/mesa_acrn/hal_graphics_allocator_default.te

This file was deleted.

18 changes: 0 additions & 18 deletions graphics/mesa_acrn/hal_graphics_composer_default.te

This file was deleted.

2 changes: 0 additions & 2 deletions graphics/mesa_acrn/hal_memtrack_default.te

This file was deleted.

1 change: 0 additions & 1 deletion graphics/mesa_acrn/hal_power_service.te

This file was deleted.

2 changes: 0 additions & 2 deletions graphics/mesa_acrn/hdcpd.te

This file was deleted.

14 changes: 0 additions & 14 deletions graphics/mesa_acrn/mediacodec.te

This file was deleted.

3 changes: 0 additions & 3 deletions graphics/mesa_acrn/mediadrmserver.te

This file was deleted.

2 changes: 0 additions & 2 deletions graphics/mesa_acrn/mediaextractor.te

This file was deleted.

10 changes: 0 additions & 10 deletions graphics/mesa_acrn/mediaserver.te

This file was deleted.

2 changes: 0 additions & 2 deletions graphics/mesa_acrn/shell.te

This file was deleted.

19 changes: 0 additions & 19 deletions graphics/mesa_acrn/surfaceflinger.te

This file was deleted.

5 changes: 0 additions & 5 deletions graphics/mesa_acrn/system_server.te

This file was deleted.

2 changes: 0 additions & 2 deletions graphics/mesa_acrn/vndservice.te

This file was deleted.

2 changes: 0 additions & 2 deletions graphics/mesa_acrn/vndservice_contexts

This file was deleted.

3 changes: 0 additions & 3 deletions graphics/ufo_common/adbd.te

This file was deleted.

Loading

0 comments on commit b6b5a09

Please sign in to comment.