Lines Matching refs:selinux_state
100 struct selinux_state { struct
115 extern struct selinux_state selinux_state; argument
118 static inline bool enforcing_enabled(struct selinux_state *state) in enforcing_enabled()
123 static inline void enforcing_set(struct selinux_state *state, bool value) in enforcing_set()
128 static inline bool enforcing_enabled(struct selinux_state *state) in enforcing_enabled()
133 static inline void enforcing_set(struct selinux_state *state, bool value) in enforcing_set()
140 struct selinux_state *state = &selinux_state; in selinux_policycap_netpeer()
147 struct selinux_state *state = &selinux_state; in selinux_policycap_openperm()
154 struct selinux_state *state = &selinux_state; in selinux_policycap_extsockclass()
161 struct selinux_state *state = &selinux_state; in selinux_policycap_alwaysnetwork()
168 struct selinux_state *state = &selinux_state; in selinux_policycap_cgroupseclabel()
175 struct selinux_state *state = &selinux_state; in selinux_policycap_nnp_nosuid_transition()
180 int security_mls_enabled(struct selinux_state *state);
181 int security_load_policy(struct selinux_state *state,
183 int security_read_policy(struct selinux_state *state,
185 size_t security_policydb_len(struct selinux_state *state);
187 int security_policycap_supported(struct selinux_state *state,
225 void security_compute_av(struct selinux_state *state,
230 void security_compute_xperms_decision(struct selinux_state *state,
235 void security_compute_av_user(struct selinux_state *state,
239 int security_transition_sid(struct selinux_state *state,
243 int security_transition_sid_user(struct selinux_state *state,
247 int security_member_sid(struct selinux_state *state, u32 ssid, u32 tsid,
250 int security_change_sid(struct selinux_state *state, u32 ssid, u32 tsid,
253 int security_sid_to_context(struct selinux_state *state, u32 sid,
256 int security_sid_to_context_force(struct selinux_state *state,
259 int security_sid_to_context_inval(struct selinux_state *state,
262 int security_context_to_sid(struct selinux_state *state,
266 int security_context_str_to_sid(struct selinux_state *state,
269 int security_context_to_sid_default(struct selinux_state *state,
273 int security_context_to_sid_force(struct selinux_state *state,
277 int security_get_user_sids(struct selinux_state *state,
281 int security_port_sid(struct selinux_state *state,
284 int security_ib_pkey_sid(struct selinux_state *state,
287 int security_ib_endport_sid(struct selinux_state *state,
290 int security_netif_sid(struct selinux_state *state,
293 int security_node_sid(struct selinux_state *state,
297 int security_validate_transition(struct selinux_state *state,
301 int security_validate_transition_user(struct selinux_state *state,
305 int security_bounded_transition(struct selinux_state *state,
308 int security_sid_mls_copy(struct selinux_state *state,
311 int security_net_peersid_resolve(struct selinux_state *state,
316 int security_get_classes(struct selinux_state *state,
318 int security_get_permissions(struct selinux_state *state,
320 int security_get_reject_unknown(struct selinux_state *state);
321 int security_get_allow_unknown(struct selinux_state *state);
332 int security_fs_use(struct selinux_state *state, struct super_block *sb);
334 int security_genfs_sid(struct selinux_state *state,
339 int security_netlbl_secattr_to_sid(struct selinux_state *state,
343 int security_netlbl_sid_to_secattr(struct selinux_state *state,
347 static inline int security_netlbl_secattr_to_sid(struct selinux_state *state, in security_netlbl_secattr_to_sid()
354 static inline int security_netlbl_sid_to_secattr(struct selinux_state *state, in security_netlbl_sid_to_secattr()
367 extern struct page *selinux_kernel_status_page(struct selinux_state *state);
381 extern void selinux_status_update_setenforce(struct selinux_state *state,
383 extern void selinux_status_update_policyload(struct selinux_state *state,
386 extern int selinux_disable(struct selinux_state *state);