Home
last modified time | relevance | path

Searched refs:selinux_state (Results 1 – 14 of 14) sorted by relevance

/Linux-v4.19/security/selinux/include/
Dsecurity.h99 struct selinux_state { struct
114 extern struct selinux_state selinux_state; argument
117 static inline bool enforcing_enabled(struct selinux_state *state) in enforcing_enabled()
122 static inline void enforcing_set(struct selinux_state *state, bool value) in enforcing_set()
127 static inline bool enforcing_enabled(struct selinux_state *state) in enforcing_enabled()
132 static inline void enforcing_set(struct selinux_state *state, bool value) in enforcing_set()
139 struct selinux_state *state = &selinux_state; in selinux_policycap_netpeer()
146 struct selinux_state *state = &selinux_state; in selinux_policycap_openperm()
153 struct selinux_state *state = &selinux_state; in selinux_policycap_extsockclass()
160 struct selinux_state *state = &selinux_state; in selinux_policycap_alwaysnetwork()
[all …]
Davc.h55 struct selinux_state *state;
100 int slow_avc_audit(struct selinux_state *state,
126 static inline int avc_audit(struct selinux_state *state, in avc_audit()
145 int avc_has_perm_noaudit(struct selinux_state *state,
151 int avc_has_perm(struct selinux_state *state,
155 int avc_has_perm_flags(struct selinux_state *state,
161 int avc_has_extended_perms(struct selinux_state *state,
166 u32 avc_policy_seqno(struct selinux_state *state);
Dconditional.h18 int security_get_bools(struct selinux_state *state,
21 int security_set_bools(struct selinux_state *state,
24 int security_get_bool_value(struct selinux_state *state,
/Linux-v4.19/security/selinux/
Dhooks.c103 struct selinux_state selinux_state; variable
287 if (selinux_state.initialized && in __inode_security_revalidate()
470 rc = avc_has_perm(&selinux_state, in may_context_mount_sb_relabel()
476 rc = avc_has_perm(&selinux_state, in may_context_mount_sb_relabel()
488 rc = avc_has_perm(&selinux_state, in may_context_mount_inode_relabel()
494 rc = avc_has_perm(&selinux_state, in may_context_mount_inode_relabel()
614 if (!selinux_state.initialized) in selinux_get_mnt_opts()
645 rc = security_sid_to_context(&selinux_state, sbsec->sid, in selinux_get_mnt_opts()
653 rc = security_sid_to_context(&selinux_state, in selinux_get_mnt_opts()
662 rc = security_sid_to_context(&selinux_state, sbsec->def_sid, in selinux_get_mnt_opts()
[all …]
Dxfrm.c104 rc = security_context_to_sid(&selinux_state, ctx->ctx_str, str_len, in selinux_xfrm_alloc_user()
109 rc = avc_has_perm(&selinux_state, in selinux_xfrm_alloc_user()
146 return avc_has_perm(&selinux_state, in selinux_xfrm_delete()
169 rc = avc_has_perm(&selinux_state, in selinux_xfrm_policy_lookup()
209 return (avc_has_perm(&selinux_state, in selinux_xfrm_state_pol_flow_match()
360 rc = security_sid_to_context(&selinux_state, secid, &ctx_str, in selinux_xfrm_state_alloc_acquire()
429 return avc_has_perm(&selinux_state, in selinux_xfrm_sock_rcv_skb()
473 return avc_has_perm(&selinux_state, sk_sid, SECINITSID_UNLABELED, in selinux_xfrm_postroute_last()
Dnetlabel.c62 rc = security_netlbl_secattr_to_sid(&selinux_state, secattr, sid); in selinux_netlbl_sidlookup_cached()
93 rc = security_netlbl_sid_to_secattr(&selinux_state, sksec->sid, in selinux_netlbl_sock_genattr()
261 rc = security_netlbl_sid_to_secattr(&selinux_state, sid, in selinux_netlbl_skbuff_setsid()
302 rc = security_netlbl_sid_to_secattr(&selinux_state, in selinux_netlbl_sctp_assoc_request()
351 rc = security_netlbl_sid_to_secattr(&selinux_state, req->secid, in selinux_netlbl_inet_conn_request()
481 rc = avc_has_perm(&selinux_state, in selinux_netlbl_sock_rcv_skb()
Dselinuxfs.c80 struct selinux_state *state;
94 fsi->state = &selinux_state; in selinux_fs_info_create()
140 struct selinux_state *state = fsi->state; in sel_write_enforce()
164 length = avc_has_perm(&selinux_state, in sel_write_enforce()
204 struct selinux_state *state = fsi->state; in sel_read_handle_unknown()
377 struct selinux_state *state = fsi->state; in sel_open_policy()
385 rc = avc_has_perm(&selinux_state, in sel_open_policy()
447 ret = avc_has_perm(&selinux_state, in sel_read_policy()
541 length = avc_has_perm(&selinux_state, in sel_write_load()
596 struct selinux_state *state = fsi->state; in sel_write_context()
[all …]
Davc.c174 static void avc_dump_query(struct audit_buffer *ab, struct selinux_state *state, in avc_dump_query()
485 static inline int avc_xperms_audit(struct selinux_state *state, in avc_xperms_audit()
766 noinline int slow_avc_audit(struct selinux_state *state, in slow_avc_audit()
999 struct avc_node *avc_compute_av(struct selinux_state *state, in avc_compute_av()
1011 static noinline int avc_denied(struct selinux_state *state, in avc_denied()
1036 int avc_has_extended_perms(struct selinux_state *state, in avc_has_extended_perms()
1132 inline int avc_has_perm_noaudit(struct selinux_state *state, in avc_has_perm_noaudit()
1178 int avc_has_perm(struct selinux_state *state, u32 ssid, u32 tsid, u16 tclass, in avc_has_perm()
1194 int avc_has_perm_flags(struct selinux_state *state, in avc_has_perm_flags()
1212 u32 avc_policy_seqno(struct selinux_state *state) in avc_policy_seqno()
[all …]
Dnetnode.c218 ret = security_node_sid(&selinux_state, PF_INET, in sel_netnode_sid_slow()
223 ret = security_node_sid(&selinux_state, PF_INET6, in sel_netnode_sid_slow()
Dibpkey.c155 ret = security_ib_pkey_sid(&selinux_state, subnet_prefix, pkey_num, in sel_ib_pkey_sid_slow()
Dnetport.c164 ret = security_port_sid(&selinux_state, protocol, pnum, sid); in sel_netport_sid_slow()
Dnetif.c165 ret = security_netif_sid(&selinux_state, dev->name, &new->nsec.sid); in sel_netif_sid_slow()
/Linux-v4.19/security/selinux/ss/
Dservices.c248 int security_mls_enabled(struct selinux_state *state) in security_mls_enabled()
728 static int security_validtrans_handle_fail(struct selinux_state *state, in security_validtrans_handle_fail()
758 static int security_compute_validatetrans(struct selinux_state *state, in security_compute_validatetrans()
838 int security_validate_transition_user(struct selinux_state *state, in security_validate_transition_user()
846 int security_validate_transition(struct selinux_state *state, in security_validate_transition()
863 int security_bounded_transition(struct selinux_state *state, in security_bounded_transition()
946 static void avd_init(struct selinux_state *state, struct av_decision *avd) in avd_init()
1009 void security_compute_xperms_decision(struct selinux_state *state, in security_compute_xperms_decision()
1107 void security_compute_av(struct selinux_state *state, in security_compute_av()
1164 void security_compute_av_user(struct selinux_state *state, in security_compute_av_user()
[all …]
Dstatus.c45 struct page *selinux_kernel_status_page(struct selinux_state *state) in selinux_kernel_status_page()
82 void selinux_status_update_setenforce(struct selinux_state *state, in selinux_status_update_setenforce()
108 void selinux_status_update_policyload(struct selinux_state *state, in selinux_status_update_policyload()