Lines Matching refs:smack
73 struct inode_smack *new_inode_smack(char *smack) in new_inode_smack() argument
81 isp->smk_inode = smack; in new_inode_smack()
1420 char *smack = smack_from_secid(secid); in smack_kernel_act_as() local
1422 if (smack == NULL) in smack_kernel_act_as()
1425 new_tsp->smk_task = smack; in smack_kernel_act_as()
1803 static void smack_to_secattr(char *smack, struct netlbl_lsm_secattr *nlsp) in smack_to_secattr() argument
1808 nlsp->domain = smack; in smack_to_secattr()
1811 rc = smack_to_cipso(smack, &cipso); in smack_to_secattr()
1817 smack_set_catset(smack, nlsp); in smack_to_secattr()
2471 char *smack = ipp->security; in smack_ipc_getsecid() local
2473 *secid = smack_to_secid(smack); in smack_ipc_getsecid()
2819 char smack[SMK_LABELLEN]; in smack_from_secattr() local
2834 memset(smack, '\0', SMK_LABELLEN); in smack_from_secattr()
2841 smack_catset_bit(pcat, smack); in smack_from_secattr()
2848 memcpy(sip, smack, SMK_MAXLEN); in smack_from_secattr()
2855 smack_from_cipso(sap->attr.mls.lvl, smack, sip); in smack_from_secattr()
2894 char smack[SMK_LABELLEN]; in smack_socket_sock_rcv_skb() local
2908 smack_from_secattr(&secattr, smack); in smack_socket_sock_rcv_skb()
2909 csp = smack; in smack_socket_sock_rcv_skb()
2979 char smack[SMK_LABELLEN]; in smack_socket_getpeersec_dgram() local
3003 smack_from_secattr(&secattr, smack); in smack_socket_getpeersec_dgram()
3004 s = smack_to_secid(smack); in smack_socket_getpeersec_dgram()
3052 char smack[SMK_LABELLEN]; in smack_inet_conn_request() local
3063 smack_from_secattr(&secattr, smack); in smack_inet_conn_request()
3065 strncpy(smack, smack_known_huh.smk_known, SMK_MAXLEN); in smack_inet_conn_request()
3078 rc = smk_access(smack, ssp->smk_in, MAY_WRITE, &ad); in smack_inet_conn_request()
3086 req->peer_secid = smack_to_secid(smack); in smack_inet_conn_request()
3099 smack_to_secattr(smack, &secattr); in smack_inet_conn_request()
3121 char *smack; in smack_inet_csk_clone() local
3124 smack = smack_from_secid(req->peer_secid); in smack_inet_csk_clone()
3125 strncpy(ssp->smk_packet, smack, SMK_MAXLEN); in smack_inet_csk_clone()
3285 char *smack; in smack_audit_rule_match() local
3297 smack = smack_from_secid(secid); in smack_audit_rule_match()
3305 return (rule == smack); in smack_audit_rule_match()
3307 return (rule != smack); in smack_audit_rule_match()