Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT Merge]remove debugfs_graphics #195

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions aafd/logwrapper.te
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ allow logwrapper vendor_file:file rx_file_perms;
allow logwrapper sysfs:file r_file_perms;
allow logwrapper proc:file r_file_perms;
allow logwrapper kernel:system module_request;
allow logwrapper debugfs_graphics:file r_file_perms;
allow logwrapper debugfs_graphics:dir r_dir_perms;

allow logwrapper self:bluetooth_socket create_socket_perms_no_ioctl;

Expand Down
1 change: 0 additions & 1 deletion debugfs/dumpstate.te
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
# dumpstate
#

dontaudit dumpstate debugfs_graphics_sync:file r_file_perms;
1 change: 0 additions & 1 deletion debugfs/file.te
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# debugfs sync file
type debugfs_graphics_sync, fs_type, debugfs_type;
1 change: 0 additions & 1 deletion debugfs/file_contexts
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
/sys/kernel/debug/sync u:object_r:debugfs_graphics_sync:s0
1 change: 0 additions & 1 deletion debugfs/platform_app.te
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
# platform_app
#

allow platform_app debugfs_graphics_sync:file r_file_perms;
1 change: 0 additions & 1 deletion graphics/mesa/coreu.te
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ allow coreu proc_graphics:file r_file_perms;

#debugfs
allow coreu debugfs_tracing:file rw_file_perms;
allow coreu debugfs_graphics:file rw_file_perms;

# drm detecting
allow coreu mediadrmserver:process signull;
Expand Down
1 change: 0 additions & 1 deletion graphics/mesa/dumpstate.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
dontaudit dumpstate graphics_device:dir search;
allow dumpstate debugfs_graphics_sync:dir r_dir_perms;
allow dumpstate debugfs_mmc:dir r_dir_perms;
allow dumpstate sysfs_zram:dir r_dir_perms;
1 change: 0 additions & 1 deletion graphics/mesa/file.te
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ type sysfs_videostatus, fs_type, sysfs_type;
# i915 related /proc/driver entry.
type proc_graphics, fs_type, proc_type;

type debugfs_graphics, fs_type, debugfs_type;

type sysfs_app_readable, fs_type, sysfs_type;

Expand Down
1 change: 0 additions & 1 deletion graphics/mesa/file_contexts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# i915 videostatus
/sys/devices/pci0000:00/0000:00:02.0/drm/card0/power/i915_videostatus u:object_r:sysfs_videostatus:s0

/sys/kernel/debug/dri/0/i915_frequency_info u:object_r:debugfs_graphics:s0

/vendor/bin/hw/android\.hardware\.graphics\.composer\.allocator@2\.1-service u:object_r:hal_graphics_composer_default_exec:s0
/(vendor|system/vendor)/lib(64)?/libdrm\.so u:object_r:same_process_hal_file:s0
Expand Down
1 change: 0 additions & 1 deletion graphics/mesa/genfs_contexts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
genfscon proc /driver/i915rpm/i915_rpm_op u:object_r:proc_graphics:s0
genfscon sysfs /devices/pci0000:00/0000:00:02.0/ u:object_r:sysfs_app_readable:s0
genfscon sysfs /devices/pci0000:00/0000:00:01.0/ u:object_r:sysfs_app_readable:s0
genfscon debugfs /dri u:object_r:debugfs_graphics:s0
genfscon sysfs /devices/pci0000:00/0000:00:03.0/ u:object_r:sysfs_app_readable:s0
1 change: 0 additions & 1 deletion graphics/mesa_acrn/dumpstate.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
dontaudit dumpstate graphics_device:dir search;
allow dumpstate debugfs_graphics_sync:dir r_dir_perms;
allow dumpstate debugfs_mmc:dir r_dir_perms;
allow dumpstate sysfs_zram:dir r_dir_perms;
1 change: 0 additions & 1 deletion graphics/mesa_acrn/file.te
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ type sysfs_videostatus, fs_type, sysfs_type;
# i915 related /proc/driver entry.
type proc_graphics, fs_type, proc_type;

type debugfs_graphics, fs_type, debugfs_type;

type sysfs_app_readable, fs_type, sysfs_type;

Expand Down
1 change: 0 additions & 1 deletion graphics/mesa_acrn/file_contexts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
# i915 videostatus
/sys/devices/pci0000:00/0000:00:02.0/drm/card0/power/i915_videostatus u:object_r:sysfs_videostatus:s0

/sys/kernel/debug/dri/0/i915_frequency_info u:object_r:debugfs_graphics:s0

/vendor/bin/hw/android\.hardware\.graphics\.composer\.allocator@2\.1-service u:object_r:hal_graphics_composer_default_exec:s0
/(vendor|system/vendor)/lib(64)?/libdrm\.so u:object_r:same_process_hal_file:s0
Expand Down
1 change: 0 additions & 1 deletion graphics/mesa_xen/dumpstate.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
dontaudit dumpstate graphics_device:dir search;
allow dumpstate debugfs_graphics_sync:dir r_dir_perms;
allow dumpstate debugfs_mmc:dir r_dir_perms;
allow dumpstate sysfs_zram:dir r_dir_perms;
1 change: 0 additions & 1 deletion graphics/mesa_xen/file.te
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ type sysfs_videostatus, fs_type, sysfs_type;
# i915 related /proc/driver entry.
type proc_graphics, fs_type, proc_type;

type debugfs_graphics, fs_type, debugfs_type;

type sysfs_app_readable, fs_type, sysfs_type;

Expand Down
1 change: 0 additions & 1 deletion graphics/mesa_xen/file_contexts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
# i915 videostatus
/sys/devices/pci0000:00/0000:00:02.0/drm/card0/power/i915_videostatus u:object_r:sysfs_videostatus:s0

/sys/kernel/debug/dri/0/i915_frequency_info u:object_r:debugfs_graphics:s0

/vendor/bin/hw/android\.hardware\.graphics\.composer\.allocator@2\.1-service u:object_r:hal_graphics_composer_default_exec:s0
/(vendor|system/vendor)/lib(64)?/libdrm\.so u:object_r:same_process_hal_file:s0
Expand Down
1 change: 0 additions & 1 deletion graphics/ufo_common/coreu.te
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ allow coreu proc_graphics:file r_file_perms;

#debugfs
allow coreu debugfs_tracing:file rw_file_perms;
allow coreu debugfs_graphics:file rw_file_perms;

# drm detecting
allow coreu mediadrmserver:process signull;
1 change: 0 additions & 1 deletion graphics/ufo_common/file.te
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ type sysfs_videostatus, fs_type, sysfs_type;
# i915 related /proc/driver entry.
type proc_graphics, fs_type, proc_type;

type debugfs_graphics, fs_type, debugfs_type;

type sysfs_app_readable, fs_type, sysfs_type;

Expand Down
1 change: 0 additions & 1 deletion graphics/ufo_common/file_contexts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
# i915 videostatus
/sys/devices/pci0000:00/0000:00:02.0/drm/card0/power/i915_videostatus u:object_r:sysfs_videostatus:s0

/sys/kernel/debug/dri/0/i915_frequency_info u:object_r:debugfs_graphics:s0

/vendor/bin/hw/android\.hardware\.graphics\.composer\.allocator@2\.1-service u:object_r:hal_graphics_composer_default_exec:s0
/(vendor|system/vendor)/lib(64)?/libdrm\.so u:object_r:same_process_hal_file:s0
Expand Down