Chris PeBenito ab58ad
# FLASK
Chris PeBenito ab58ad
Chris PeBenito ab58ad
#
Chris PeBenito ab58ad
# Security contexts for files in filesystems that
Chris PeBenito ab58ad
# cannot support xattr or use one of the fixed labeling schemes 
Chris PeBenito ab58ad
# specified in fs_use.
Chris PeBenito ab58ad
#
Chris PeBenito ab58ad
# Each specifications has the form:
Chris PeBenito ab58ad
# 	genfscon fstype pathname-prefix [ -type ] context
Chris PeBenito ab58ad
#
Chris PeBenito ab58ad
# The entry with the longest matching pathname prefix is used.
Chris PeBenito ab58ad
# / refers to the root directory of the file system, and
Chris PeBenito ab58ad
# everything is specified relative to this root directory.
Chris PeBenito ab58ad
# If there is no entry with a matching pathname prefix, then 
Chris PeBenito ab58ad
# the unlabeled initial SID is used.
Chris PeBenito ab58ad
#
Chris PeBenito ab58ad
# The optional type field specifies the file type as shown in the mode
Chris PeBenito ab58ad
# field by ls, e.g. use -c to match only character device files, -b
Chris PeBenito ab58ad
# to match only block device files.
Chris PeBenito ab58ad
#
Chris PeBenito ab58ad
# Except for proc, in 2.6 other filesystems are limited to a single entry (/)
Chris PeBenito ab58ad
# that covers all entries in the filesystem with a default file context.
Chris PeBenito ab58ad
# For proc, a pathname can be reliably generated from the proc_dir_entry
Chris PeBenito ab58ad
# tree.  The proc /sys entries are used for both proc inodes and for sysctl(2)
Chris PeBenito ab58ad
# calls. /proc/PID entries are automatically labeled based on the associated
Chris PeBenito ab58ad
# process.
Chris PeBenito ab58ad
#
Chris PeBenito ab58ad
# Support for other filesystem types requires corresponding code to be
Chris PeBenito ab58ad
# added to the kernel, either as an xattr handler in the filesystem 
Chris PeBenito ab58ad
# implementation (preferred, and necessary if you want to access the labels
Chris PeBenito ab58ad
# from userspace) or as logic in the SELinux module.
Chris PeBenito ab58ad
Chris PeBenito ab58ad
# proc (excluding /proc/PID)
Chris PeBenito ab58ad
genfscon proc /				system_u:object_r:proc_t:s0
Chris PeBenito ab58ad
genfscon proc /kmsg			system_u:object_r:proc_kmsg_t:s0
Chris PeBenito ab58ad
genfscon proc /kcore			system_u:object_r:proc_kcore_t:s0
Chris PeBenito ab58ad
genfscon proc /mdstat			system_u:object_r:proc_mdstat_t:s0
Chris PeBenito ab58ad
genfscon proc /mtrr			system_u:object_r:mtrr_device_t:s0
Chris PeBenito ab58ad
genfscon proc /net			system_u:object_r:proc_net_t:s0
Chris PeBenito ab58ad
genfscon proc /sysvipc			system_u:object_r:proc_t:s0
Chris PeBenito ab58ad
genfscon proc /sys			system_u:object_r:sysctl_t:s0
Chris PeBenito ab58ad
genfscon proc /sys/kernel		system_u:object_r:sysctl_kernel_t:s0
Chris PeBenito ab58ad
genfscon proc /sys/kernel/modprobe	system_u:object_r:sysctl_modprobe_t:s0
Chris PeBenito ab58ad
genfscon proc /sys/kernel/hotplug	system_u:object_r:sysctl_hotplug_t:s0
Chris PeBenito ab58ad
genfscon proc /sys/net			system_u:object_r:sysctl_net_t:s0
Chris PeBenito ab58ad
genfscon proc /sys/net/unix		system_u:object_r:sysctl_net_unix_t:s0
Chris PeBenito ab58ad
genfscon proc /sys/vm			system_u:object_r:sysctl_vm_t:s0
Chris PeBenito ab58ad
genfscon proc /sys/dev			system_u:object_r:sysctl_dev_t:s0
Chris PeBenito ab58ad
genfscon proc /net/rpc			system_u:object_r:sysctl_rpc_t:s0
Chris PeBenito ab58ad
genfscon proc /irq			system_u:object_r:sysctl_irq_t:s0
Chris PeBenito ab58ad
Chris PeBenito ab58ad
# rootfs
Chris PeBenito ab58ad
genfscon rootfs /			system_u:object_r:root_t:s0
Chris PeBenito ab58ad
Chris PeBenito ab58ad
# sysfs
Chris PeBenito ab58ad
genfscon sysfs /			system_u:object_r:sysfs_t:s0
Chris PeBenito ab58ad
Chris PeBenito ab58ad
# selinuxfs
Chris PeBenito ab58ad
genfscon selinuxfs /			system_u:object_r:security_t:s0
Chris PeBenito ab58ad
Chris PeBenito ab58ad
# autofs
Chris PeBenito ab58ad
genfscon autofs /			system_u:object_r:autofs_t:s0
Chris PeBenito ab58ad
genfscon automount /			system_u:object_r:autofs_t:s0
Chris PeBenito ab58ad
Chris PeBenito ab58ad
# usbdevfs
Chris PeBenito ab58ad
genfscon usbdevfs /			system_u:object_r:usbdevfs_t:s0
Chris PeBenito ab58ad
Chris PeBenito ab58ad
# iso9660
Chris PeBenito ab58ad
genfscon iso9660 /			system_u:object_r:iso9660_t:s0
Chris PeBenito ab58ad
genfscon udf /				system_u:object_r:iso9660_t:s0
Chris PeBenito ab58ad
Chris PeBenito ab58ad
# romfs
Chris PeBenito ab58ad
genfscon romfs /			system_u:object_r:romfs_t:s0
Chris PeBenito ab58ad
genfscon cramfs /			system_u:object_r:romfs_t:s0
Chris PeBenito ab58ad
Chris PeBenito ab58ad
# ramfs
Chris PeBenito ab58ad
genfscon ramfs /			system_u:object_r:ramfs_t:s0
Chris PeBenito ab58ad
Chris PeBenito ab58ad
# vfat, msdos
Chris PeBenito ab58ad
genfscon vfat /				system_u:object_r:dosfs_t:s0
Chris PeBenito ab58ad
genfscon msdos /			system_u:object_r:dosfs_t:s0
Chris PeBenito ab58ad
genfscon fat /				system_u:object_r:dosfs_t:s0
Chris PeBenito ab58ad
genfscon ntfs /				system_u:object_r:dosfs_t:s0
Chris PeBenito ab58ad
Chris PeBenito ab58ad
# samba
Chris PeBenito ab58ad
genfscon cifs /				system_u:object_r:cifs_t:s0
Chris PeBenito ab58ad
genfscon smbfs /			system_u:object_r:cifs_t:s0
Chris PeBenito ab58ad
Chris PeBenito ab58ad
# nfs
Chris PeBenito ab58ad
genfscon nfs /				system_u:object_r:nfs_t:s0
Chris PeBenito ab58ad
genfscon nfs4 /				system_u:object_r:nfs_t:s0
Chris PeBenito ab58ad
genfscon afs /				system_u:object_r:nfs_t:s0
Chris PeBenito ab58ad
Chris PeBenito ab58ad
genfscon debugfs /			system_u:object_r:debugfs_t:s0
Chris PeBenito ab58ad
genfscon inotifyfs /			system_u:object_r:inotifyfs_t:s0
Chris PeBenito ab58ad
genfscon hugetlbfs /			system_u:object_r:hugetlbfs_t:s0
Chris PeBenito ab58ad
genfscon capifs /			system_u:object_r:capifs_t:s0
Chris PeBenito ab58ad
genfscon configfs /			system_u:object_r:configfs_t:s0
Chris PeBenito ab58ad
Chris PeBenito ab58ad
# needs more work
Chris PeBenito ab58ad
genfscon eventpollfs / system_u:object_r:eventpollfs_t:s0
Chris PeBenito ab58ad
genfscon futexfs / system_u:object_r:futexfs_t:s0
Chris PeBenito ab58ad
genfscon bdev / system_u:object_r:bdev_t:s0
Chris PeBenito ab58ad
genfscon usbfs / system_u:object_r:usbfs_t:s0
Chris PeBenito ab58ad
genfscon nfsd / system_u:object_r:nfsd_fs_t:s0
Chris PeBenito ab58ad
genfscon rpc_pipefs / system_u:object_r:rpc_pipefs_t:s0
Chris PeBenito ab58ad
genfscon binfmt_misc / system_u:object_r:binfmt_misc_fs_t:s0
Chris PeBenito ab58ad