Lines Matching refs:len
835 nlh->nlmsg_len = skb->len; in kauditd_send_multicast_skb()
1228 u32 len; in audit_receive_msg() local
1478 len = 0; in audit_receive_msg()
1480 err = security_secid_to_secctx(audit_sig_sid, &ctx, &len); in audit_receive_msg()
1484 sig_data = kmalloc(sizeof(*sig_data) + len, GFP_KERNEL); in audit_receive_msg()
1487 security_release_secctx(ctx, len); in audit_receive_msg()
1493 memcpy(sig_data->ctx, ctx, len); in audit_receive_msg()
1494 security_release_secctx(ctx, len); in audit_receive_msg()
1497 sig_data, sizeof(*sig_data) + len); in audit_receive_msg()
1565 int len; in audit_receive() local
1569 len = skb->len; in audit_receive()
1572 while (nlmsg_ok(nlh, len)) { in audit_receive()
1581 nlh = nlmsg_next(nlh, &len); in audit_receive()
1963 int len, avail; in audit_log_vformat() local
1979 len = vsnprintf(skb_tail_pointer(skb), avail, fmt, args); in audit_log_vformat()
1980 if (len >= avail) { in audit_log_vformat()
1985 max_t(unsigned, AUDIT_BUFSIZ, 1+len-avail)); in audit_log_vformat()
1988 len = vsnprintf(skb_tail_pointer(skb), avail, fmt, args2); in audit_log_vformat()
1990 if (len > 0) in audit_log_vformat()
1991 skb_put(skb, len); in audit_log_vformat()
2029 size_t len) in audit_log_n_hex() argument
2041 new_len = len<<1; in audit_log_n_hex()
2051 for (i = 0; i < len; i++) in audit_log_n_hex()
2054 skb_put(skb, len << 1); /* new string is twice the old string */ in audit_log_n_hex()
2094 bool audit_string_contains_control(const char *string, size_t len) in audit_string_contains_control() argument
2097 for (p = string; p < (const unsigned char *)string + len; p++) { in audit_string_contains_control()
2119 size_t len) in audit_log_n_untrustedstring() argument
2121 if (audit_string_contains_control(string, len)) in audit_log_n_untrustedstring()
2122 audit_log_n_hex(ab, string, len); in audit_log_n_untrustedstring()
2124 audit_log_n_string(ab, string, len); in audit_log_n_untrustedstring()
2184 unsigned len; in audit_log_task_context() local
2192 error = security_secid_to_secctx(sid, &ctx, &len); in audit_log_task_context()
2200 security_release_secctx(ctx, len); in audit_log_task_context()
2439 nlh->nlmsg_len = skb->len - NLMSG_HDRLEN; in audit_log_end()