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