summaryrefslogtreecommitdiff
path: root/include/net/netlabel.h
diff options
context:
space:
mode:
authorHuw Davies <huw@codeweavers.com>2016-06-27 22:02:48 +0300
committerPaul Moore <paul@paul-moore.com>2016-06-27 22:02:48 +0300
commite1ce69df7e6e8cbdca78ae831ecf435b12b4c168 (patch)
tree390601563496364614c223897c0ded59afbf6b8c /include/net/netlabel.h
parenta5e34490c3160e09814403d040765b0ae0003121 (diff)
downloadlinux-e1ce69df7e6e8cbdca78ae831ecf435b12b4c168.tar.xz
netlabel: Add support for enumerating the CALIPSO DOI list.
Enumerate the DOI list through the NLBL_CALIPSO_C_LISTALL command. It takes no attributes. Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'include/net/netlabel.h')
-rw-r--r--include/net/netlabel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/netlabel.h b/include/net/netlabel.h
index 0f05b83851e2..2653d3a8cde8 100644
--- a/include/net/netlabel.h
+++ b/include/net/netlabel.h
@@ -225,6 +225,7 @@ struct netlbl_lsm_secattr {
* @doi_free: free a CALIPSO DOI
* @doi_getdef: returns a reference to a DOI
* @doi_putdef: releases a reference of a DOI
+ * @doi_walk: enumerate the DOI list
*
* Description:
* This structure is filled out by the CALIPSO engine and passed
@@ -238,6 +239,9 @@ struct netlbl_calipso_ops {
void (*doi_free)(struct calipso_doi *doi_def);
struct calipso_doi *(*doi_getdef)(u32 doi);
void (*doi_putdef)(struct calipso_doi *doi_def);
+ int (*doi_walk)(u32 *skip_cnt,
+ int (*callback)(struct calipso_doi *doi_def, void *arg),
+ void *cb_arg);
};
/*