summaryrefslogtreecommitdiffstats
path: root/security/safesetid/lsm.h
diff options
context:
space:
mode:
authorJann Horn <jannh@google.com>2019-04-11 22:11:54 +0200
committerMicah Morton <mortonm@chromium.org>2019-07-15 17:07:40 +0200
commitfbd9acb2dc2aa55902c48a83f157082849209fba (patch)
treed679fe88f9abdf52198a72397d7116d970fce953 /security/safesetid/lsm.h
parentLSM: SafeSetID: rewrite userspace API to atomic updates (diff)
downloadlinux-fbd9acb2dc2aa55902c48a83f157082849209fba.tar.xz
linux-fbd9acb2dc2aa55902c48a83f157082849209fba.zip
LSM: SafeSetID: add read handler
For debugging a running system, it is very helpful to be able to see what policy the system is using. Add a read handler that can dump out a copy of the loaded policy. Signed-off-by: Jann Horn <jannh@google.com> Signed-off-by: Micah Morton <mortonm@chromium.org>
Diffstat (limited to 'security/safesetid/lsm.h')
-rw-r--r--security/safesetid/lsm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/security/safesetid/lsm.h b/security/safesetid/lsm.h
index 4a34f558d964..db6d16e6bbc3 100644
--- a/security/safesetid/lsm.h
+++ b/security/safesetid/lsm.h
@@ -41,6 +41,7 @@ struct setuid_rule {
struct setuid_ruleset {
DECLARE_HASHTABLE(rules, SETID_HASH_BITS);
+ char *policy_str;
struct rcu_head rcu;
};