aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorStephen Smalley <sds@tycho.nsa.gov>2015-05-19 13:59:12 -0400
committerStephen Smalley <sds@tycho.nsa.gov>2015-05-21 11:55:47 -0400
commit1e483643a1a60a1578701437acfce5849f9373a8 (patch)
tree537f039e8b73f50dfc5a98e6b0b4c1b1a5a756c6 /fs
parentff46db849f59b873bdb61a933e848c9fd03f616e (diff)
selinux: enable per-file labeling for debugfs files.
upstream commit 6f29997f4a3117169eeabd41dbea4c1bd94a739c Add support for per-file labeling of debugfs files so that we can distinguish them in policy. This is particularly important in Android where certain debugfs files have to be writable by apps and therefore the debugfs directory tree can be read and searched by all. Since debugfs is entirely kernel-generated, the directory tree is immutable by userspace, and the inodes are pinned in memory, we can simply use the same approach as with proc and label the inodes from policy based on pathname from the root of the debugfs filesystem. Generalize the existing labeling support used for proc and reuse it for debugfs too. Change-Id: I6460fbed6bb6bd36eb8554ac8c4fdd574edf3b07 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions