diff options
author | Jann Horn <jannh@google.com> | 2019-04-11 23:11:54 +0300 |
---|---|---|
committer | Micah Morton <mortonm@chromium.org> | 2019-07-15 18:07:40 +0300 |
commit | fbd9acb2dc2aa55902c48a83f157082849209fba (patch) | |
tree | d679fe88f9abdf52198a72397d7116d970fce953 /security/safesetid/lsm.h | |
parent | 03638e62f55f27e7a96d6b1175e75b7a81e562b3 (diff) | |
download | linux-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.h | 1 |
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; }; |