android_kernel_samsung_msm8976/security/selinux
Stephen Smalley 659e4f9211 selinux: enable genfscon labeling for sysfs and pstore files
Support per-file labeling of sysfs and pstore files based on
genfscon policy entries.  This is safe because the sysfs
and pstore directory tree cannot be manipulated by userspace,
except to unlink pstore entries.
This provides an alternative method of assigning per-file labeling
to sysfs or pstore files without needing to set the labels from
userspace on each boot.  The advantages of this approach are that
the labels are assigned as soon as the dentry is first instantiated
and userspace does not need to walk the sysfs or pstore tree and
set the labels on each boot.  The limitations of this approach are
that the labels can only be assigned based on pathname prefix matching.
You can initially assign labels using this mechanism and then change
them at runtime via setxattr if allowed to do so by policy.

Change-Id: If5999785fdc1d24d869b23ae35cd302311e94562
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Suggested-by: Dominick Grift <dac.override@gmail.com>
Git-commit: 6f4f0dc1bc18de691668acf4bfeb9420507e2aa5
Git-repo: https://android.googlesource.com/kernel/common.git
Signed-off-by: Kaushal Kumar <kaushalk@codeaurora.org>
2015-09-16 18:20:18 +05:30
..
include selinux: enable per-file labeling for debugfs files. 2015-09-16 18:20:18 +05:30
ss SELinux: ss: Fix policy write for ioctl operations 2015-09-16 18:20:17 +05:30
.gitignore
Kconfig
Makefile
avc.c SELinux: use deletion-safe iterator to free list 2015-06-19 14:35:55 +05:30
exports.c
hooks.c selinux: enable genfscon labeling for sysfs and pstore files 2015-09-16 18:20:18 +05:30
netif.c selinux: make the netif cache namespace aware 2015-03-19 15:00:08 -07:00
netlabel.c
netlink.c
netnode.c selinux: reduce the number of calls to synchronize_net() when flushing caches 2015-01-28 11:24:46 +05:30
netport.c selinux: reduce the number of calls to synchronize_net() when flushing caches 2015-01-28 11:24:46 +05:30
nlmsgtab.c selinux: add SOCK_DIAG_BY_FAMILY to the list of netlink message types 2015-09-16 18:20:16 +05:30
selinuxfs.c
xfrm.c