summaryrefslogtreecommitdiff
path: root/security/safesetid/lsm.h
diff options
context:
space:
mode:
authorJann Horn <jannh@google.com>2019-04-11 23:11:54 +0300
committerMicah Morton <mortonm@chromium.org>2019-07-15 18:07:40 +0300
commitfbd9acb2dc2aa55902c48a83f157082849209fba (patch)
treed679fe88f9abdf52198a72397d7116d970fce953 /security/safesetid/lsm.h
parent03638e62f55f27e7a96d6b1175e75b7a81e562b3 (diff)
downloadlinux-fbd9acb2dc2aa55902c48a83f157082849209fba.tar.xz
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;
};