This source file includes following definitions.
- netlbl_calipso_genl_init
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 #ifndef _NETLABEL_CALIPSO
18 #define _NETLABEL_CALIPSO
19
20 #include <net/netlabel.h>
21 #include <net/calipso.h>
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74 enum {
75 NLBL_CALIPSO_C_UNSPEC,
76 NLBL_CALIPSO_C_ADD,
77 NLBL_CALIPSO_C_REMOVE,
78 NLBL_CALIPSO_C_LIST,
79 NLBL_CALIPSO_C_LISTALL,
80 __NLBL_CALIPSO_C_MAX,
81 };
82
83
84 enum {
85 NLBL_CALIPSO_A_UNSPEC,
86 NLBL_CALIPSO_A_DOI,
87
88
89 NLBL_CALIPSO_A_MTYPE,
90
91
92
93 __NLBL_CALIPSO_A_MAX,
94 };
95
96 #define NLBL_CALIPSO_A_MAX (__NLBL_CALIPSO_A_MAX - 1)
97
98
99 #if IS_ENABLED(CONFIG_IPV6)
100 int netlbl_calipso_genl_init(void);
101 #else
102 static inline int netlbl_calipso_genl_init(void)
103 {
104 return 0;
105 }
106 #endif
107
108 int calipso_doi_add(struct calipso_doi *doi_def,
109 struct netlbl_audit *audit_info);
110 void calipso_doi_free(struct calipso_doi *doi_def);
111 int calipso_doi_remove(u32 doi, struct netlbl_audit *audit_info);
112 struct calipso_doi *calipso_doi_getdef(u32 doi);
113 void calipso_doi_putdef(struct calipso_doi *doi_def);
114 int calipso_doi_walk(u32 *skip_cnt,
115 int (*callback)(struct calipso_doi *doi_def, void *arg),
116 void *cb_arg);
117 int calipso_sock_getattr(struct sock *sk, struct netlbl_lsm_secattr *secattr);
118 int calipso_sock_setattr(struct sock *sk,
119 const struct calipso_doi *doi_def,
120 const struct netlbl_lsm_secattr *secattr);
121 void calipso_sock_delattr(struct sock *sk);
122 int calipso_req_setattr(struct request_sock *req,
123 const struct calipso_doi *doi_def,
124 const struct netlbl_lsm_secattr *secattr);
125 void calipso_req_delattr(struct request_sock *req);
126 unsigned char *calipso_optptr(const struct sk_buff *skb);
127 int calipso_getattr(const unsigned char *calipso,
128 struct netlbl_lsm_secattr *secattr);
129 int calipso_skbuff_setattr(struct sk_buff *skb,
130 const struct calipso_doi *doi_def,
131 const struct netlbl_lsm_secattr *secattr);
132 int calipso_skbuff_delattr(struct sk_buff *skb);
133 void calipso_cache_invalidate(void);
134 int calipso_cache_add(const unsigned char *calipso_ptr,
135 const struct netlbl_lsm_secattr *secattr);
136
137 #endif