aboutsummaryrefslogtreecommitdiffstats
path: root/security/smack/smack.h
diff options
context:
space:
mode:
authorCasey Schaufler <casey@schaufler-ca.com>2020-08-11 17:39:43 -0700
committerCasey Schaufler <cschaufler@localhost.localdomain>2020-09-11 15:31:31 -0700
commit322dd63c7f98315b5794653bc582d109841219ae (patch)
tree8e27960271441520510c2cde964a4106212a547d /security/smack/smack.h
parentSmack: Set socket labels only once (diff)
downloadlinux-dev-322dd63c7f98315b5794653bc582d109841219ae.tar.xz
linux-dev-322dd63c7f98315b5794653bc582d109841219ae.zip
Smack: Use the netlabel cache
Utilize the Netlabel cache mechanism for incoming packet matching. Refactor the initialization of secattr structures, as it was being done in two places. Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Diffstat (limited to 'security/smack/smack.h')
-rw-r--r--security/smack/smack.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/security/smack/smack.h b/security/smack/smack.h
index c5d745a3ada8..a9768b12716b 100644
--- a/security/smack/smack.h
+++ b/security/smack/smack.h
@@ -297,6 +297,7 @@ struct smack_known *smk_find_entry(const char *);
bool smack_privileged(int cap);
bool smack_privileged_cred(int cap, const struct cred *cred);
void smk_destroy_label_list(struct list_head *list);
+int smack_populate_secattr(struct smack_known *skp);
/*
* Shared data.