• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Label inodes with the fs label.
2genfscon rootfs / u:object_r:rootfs:s0
3# proc labeling can be further refined (longest matching prefix).
4genfscon proc / u:object_r:proc:s0
5genfscon proc /config.gz u:object_r:config_gz:s0
6genfscon proc /interrupts u:object_r:proc_interrupts:s0
7genfscon proc /iomem u:object_r:proc_iomem:s0
8genfscon proc /meminfo u:object_r:proc_meminfo:s0
9genfscon proc /misc u:object_r:proc_misc:s0
10genfscon proc /modules u:object_r:proc_modules:s0
11genfscon proc /net u:object_r:proc_net:s0
12genfscon proc /net/xt_qtaguid/ctrl u:object_r:qtaguid_proc:s0
13genfscon proc /cpuinfo u:object_r:proc_cpuinfo:s0
14genfscon proc /softirqs u:object_r:proc_timer:s0
15genfscon proc /stat u:object_r:proc_stat:s0
16genfscon proc /sysrq-trigger u:object_r:proc_sysrq:s0
17genfscon proc /sys/fs/protected_hardlinks u:object_r:proc_security:s0
18genfscon proc /sys/fs/protected_symlinks u:object_r:proc_security:s0
19genfscon proc /sys/fs/suid_dumpable u:object_r:proc_security:s0
20genfscon proc /sys/kernel/core_pattern u:object_r:usermodehelper:s0
21genfscon proc /sys/kernel/dmesg_restrict u:object_r:proc_security:s0
22genfscon proc /sys/kernel/hotplug u:object_r:usermodehelper:s0
23genfscon proc /sys/kernel/kptr_restrict u:object_r:proc_security:s0
24genfscon proc /sys/kernel/modprobe u:object_r:usermodehelper:s0
25genfscon proc /sys/kernel/modules_disabled u:object_r:proc_security:s0
26genfscon proc /sys/kernel/perf_event_max_sample_rate u:object_r:proc_perf:s0
27genfscon proc /sys/kernel/poweroff_cmd u:object_r:usermodehelper:s0
28genfscon proc /sys/kernel/randomize_va_space u:object_r:proc_security:s0
29genfscon proc /sys/kernel/usermodehelper u:object_r:usermodehelper:s0
30genfscon proc /sys/net u:object_r:proc_net:s0
31genfscon proc /sys/vm/mmap_min_addr u:object_r:proc_security:s0
32genfscon proc /sys/vm/mmap_rnd_bits u:object_r:proc_security:s0
33genfscon proc /sys/vm/mmap_rnd_compat_bits u:object_r:proc_security:s0
34genfscon proc /sys/vm/drop_caches u:object_r:proc_drop_caches:s0
35genfscon proc /sys/vm/overcommit_memory u:object_r:proc_overcommit_memory:s0
36genfscon proc /timer_list u:object_r:proc_timer:s0
37genfscon proc /timer_stats u:object_r:proc_timer:s0
38genfscon proc /tty/drivers u:object_r:proc_tty_drivers:s0
39genfscon proc /uid_cputime/show_uid_stat u:object_r:proc_uid_cputime_showstat:s0
40genfscon proc /uid_cputime/remove_uid_range u:object_r:proc_uid_cputime_removeuid:s0
41genfscon proc /uid_io/stats u:object_r:proc_uid_io_stats:s0
42genfscon proc /uid_procstat/set u:object_r:proc_uid_procstat_set:s0
43genfscon proc /uid_time_in_state u:object_r:proc_uid_time_in_state:s0
44genfscon proc /zoneinfo u:object_r:proc_zoneinfo:s0
45
46# selinuxfs booleans can be individually labeled.
47genfscon selinuxfs / u:object_r:selinuxfs:s0
48genfscon cgroup / u:object_r:cgroup:s0
49# sysfs labels can be set by userspace.
50genfscon sysfs / u:object_r:sysfs:s0
51genfscon sysfs /devices/system/cpu u:object_r:sysfs_devices_system_cpu:s0
52genfscon sysfs /class/leds                        u:object_r:sysfs_leds:s0
53genfscon sysfs /devices/platform/nfc-power/nfc_power u:object_r:sysfs_nfc_power_writable:s0
54genfscon sysfs /devices/virtual/block/zram0     u:object_r:sysfs_zram:s0
55genfscon sysfs /devices/virtual/block/zram1     u:object_r:sysfs_zram:s0
56genfscon sysfs /devices/virtual/block/zram0/uevent    u:object_r:sysfs_zram_uevent:s0
57genfscon sysfs /devices/virtual/block/zram1/uevent    u:object_r:sysfs_zram_uevent:s0
58genfscon sysfs /devices/virtual/misc/hw_random    u:object_r:sysfs_hwrandom:s0
59genfscon sysfs /fs/ext4/features                  u:object_r:sysfs_fs_ext4_features:s0
60genfscon sysfs /power/wake_lock u:object_r:sysfs_wake_lock:s0
61genfscon sysfs /power/wake_unlock u:object_r:sysfs_wake_lock:s0
62genfscon sysfs /kernel/uevent_helper u:object_r:sysfs_usermodehelper:s0
63genfscon sysfs /module/lowmemorykiller u:object_r:sysfs_lowmemorykiller:s0
64genfscon sysfs /module/wlan/parameters/fwpath u:object_r:sysfs_wlan_fwpath:s0
65genfscon sysfs /devices/virtual/timed_output/vibrator/enable u:object_r:sysfs_vibrator:s0
66
67genfscon debugfs /mmc0                                u:object_r:debugfs_mmc:s0
68genfscon debugfs /tracing                             u:object_r:debugfs_tracing:s0
69genfscon debugfs /tracing/instances                   u:object_r:debugfs_tracing_instances:s0
70genfscon tracefs /instances                           u:object_r:debugfs_tracing_instances:s0
71genfscon debugfs /tracing/instances/wifi              u:object_r:debugfs_wifi_tracing:s0
72genfscon tracefs /instances/wifi                      u:object_r:debugfs_wifi_tracing:s0
73genfscon debugfs /tracing/trace_marker                u:object_r:debugfs_trace_marker:s0
74genfscon tracefs /trace_marker                        u:object_r:debugfs_trace_marker:s0
75
76genfscon debugfs /tracing/events/sync/enable                         u:object_r:debugfs_tracing_debug:s0
77genfscon debugfs /tracing/events/workqueue/enable                    u:object_r:debugfs_tracing_debug:s0
78genfscon debugfs /tracing/events/regulator/enable                    u:object_r:debugfs_tracing_debug:s0
79genfscon debugfs /tracing/events/pagecache/enable                    u:object_r:debugfs_tracing_debug:s0
80genfscon debugfs /tracing/events/irq/enable                          u:object_r:debugfs_tracing_debug:s0
81genfscon debugfs /tracing/events/ipi/enable                          u:object_r:debugfs_tracing_debug:s0
82genfscon debugfs /tracing/events/f2fs/f2fs_sync_file_enter/enable    u:object_r:debugfs_tracing_debug:s0
83genfscon debugfs /tracing/events/f2fs/f2fs_sync_file_exit/enable     u:object_r:debugfs_tracing_debug:s0
84genfscon debugfs /tracing/events/f2fs/f2fs_write_begin/enable        u:object_r:debugfs_tracing_debug:s0
85genfscon debugfs /tracing/events/f2fs/f2fs_write_end/enable          u:object_r:debugfs_tracing_debug:s0
86genfscon debugfs /tracing/events/ext4/ext4_da_write_begin/enable     u:object_r:debugfs_tracing_debug:s0
87genfscon debugfs /tracing/events/ext4/ext4_da_write_end/enable       u:object_r:debugfs_tracing_debug:s0
88genfscon debugfs /tracing/events/ext4/ext4_sync_file_enter/enable    u:object_r:debugfs_tracing_debug:s0
89genfscon debugfs /tracing/events/ext4/ext4_sync_file_exit/enable     u:object_r:debugfs_tracing_debug:s0
90genfscon debugfs /tracing/events/block/block_rq_issue/enable         u:object_r:debugfs_tracing_debug:s0
91genfscon debugfs /tracing/events/block/block_rq_complete/enable      u:object_r:debugfs_tracing_debug:s0
92genfscon debugfs /tracing/saved_cmdlines_size                        u:object_r:debugfs_tracing_debug:s0
93
94genfscon tracefs /events/sync/enable                         u:object_r:debugfs_tracing_debug:s0
95genfscon tracefs /events/workqueue/enable                    u:object_r:debugfs_tracing_debug:s0
96genfscon tracefs /events/regulator/enable                    u:object_r:debugfs_tracing_debug:s0
97genfscon tracefs /events/pagecache/enable                    u:object_r:debugfs_tracing_debug:s0
98genfscon tracefs /events/irq/enable                          u:object_r:debugfs_tracing_debug:s0
99genfscon tracefs /events/ipi/enable                          u:object_r:debugfs_tracing_debug:s0
100genfscon tracefs /events/f2fs/f2fs_sync_file_enter/enable    u:object_r:debugfs_tracing_debug:s0
101genfscon tracefs /events/f2fs/f2fs_sync_file_exit/enable     u:object_r:debugfs_tracing_debug:s0
102genfscon tracefs /events/f2fs/f2fs_write_begin/enable        u:object_r:debugfs_tracing_debug:s0
103genfscon tracefs /events/f2fs/f2fs_write_end/enable          u:object_r:debugfs_tracing_debug:s0
104genfscon tracefs /events/ext4/ext4_da_write_begin/enable     u:object_r:debugfs_tracing_debug:s0
105genfscon tracefs /events/ext4/ext4_da_write_end/enable       u:object_r:debugfs_tracing_debug:s0
106genfscon tracefs /events/ext4/ext4_sync_file_enter/enable    u:object_r:debugfs_tracing_debug:s0
107genfscon tracefs /events/ext4/ext4_sync_file_exit/enable     u:object_r:debugfs_tracing_debug:s0
108genfscon tracefs /events/block/block_rq_issue/enable         u:object_r:debugfs_tracing_debug:s0
109genfscon tracefs /events/block/block_rq_complete/enable      u:object_r:debugfs_tracing_debug:s0
110genfscon tracefs /saved_cmdlines_size                        u:object_r:debugfs_tracing_debug:s0
111
112genfscon inotifyfs / u:object_r:inotify:s0
113genfscon vfat / u:object_r:vfat:s0
114genfscon debugfs / u:object_r:debugfs:s0
115genfscon tracefs / u:object_r:debugfs_tracing:s0
116genfscon fuse / u:object_r:fuse:s0
117genfscon configfs / u:object_r:configfs:s0
118genfscon sdcardfs / u:object_r:sdcardfs:s0
119genfscon pstore / u:object_r:pstorefs:s0
120genfscon functionfs / u:object_r:functionfs:s0
121genfscon usbfs / u:object_r:usbfs:s0
122genfscon binfmt_misc / u:object_r:binfmt_miscfs:s0
123