Skip to content
Commit 8a764ef1 authored by Christian Göttsche's avatar Christian Göttsche Committed by Paul Moore
Browse files

selinux: enable genfscon labeling for securityfs



Add support for genfscon per-file labeling of securityfs files.
This allows for separate labels and thereby access control for
different files. For example a genfscon statement

    genfscon securityfs /integrity/ima/policy \
	system_u:object_r:ima_policy_t:s0

will set a private label to the IMA policy file and thus allow to
control the ability to set the IMA policy. Setting labels directly
with setxattr(2), e.g. by chcon(1) or setfiles(8), is still not
supported.

Signed-off-by: default avatarChristian Göttsche <cgzones@googlemail.com>
[PM: line width fixes in the commit description]
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent d9d8c939
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment