Lines Matching refs:str
129 char *str; in audit_unpack_string() local
140 str = kmalloc(len + 1, GFP_KERNEL); in audit_unpack_string()
141 if (unlikely(!str)) in audit_unpack_string()
144 memcpy(str, *bufp, len); in audit_unpack_string()
145 str[len] = 0; in audit_unpack_string()
149 return str; in audit_unpack_string()
457 char *str; in audit_data_to_entry() local
524 str = audit_unpack_string(&bufp, &remain, f_val); in audit_data_to_entry()
525 if (IS_ERR(str)) { in audit_data_to_entry()
526 err = PTR_ERR(str); in audit_data_to_entry()
530 f->lsm_str = str; in audit_data_to_entry()
531 err = security_audit_rule_init(f->type, f->op, str, in audit_data_to_entry()
537 str); in audit_data_to_entry()
543 str = audit_unpack_string(&bufp, &remain, f_val); in audit_data_to_entry()
544 if (IS_ERR(str)) { in audit_data_to_entry()
545 err = PTR_ERR(str); in audit_data_to_entry()
548 err = audit_to_watch(&entry->rule, str, f_val, f->op); in audit_data_to_entry()
550 kfree(str); in audit_data_to_entry()
556 str = audit_unpack_string(&bufp, &remain, f_val); in audit_data_to_entry()
557 if (IS_ERR(str)) { in audit_data_to_entry()
558 err = PTR_ERR(str); in audit_data_to_entry()
561 err = audit_make_tree(&entry->rule, str, f->op); in audit_data_to_entry()
562 kfree(str); in audit_data_to_entry()
576 str = audit_unpack_string(&bufp, &remain, f_val); in audit_data_to_entry()
577 if (IS_ERR(str)) { in audit_data_to_entry()
578 err = PTR_ERR(str); in audit_data_to_entry()
582 entry->rule.filterkey = str; in audit_data_to_entry()
587 str = audit_unpack_string(&bufp, &remain, f_val); in audit_data_to_entry()
588 if (IS_ERR(str)) { in audit_data_to_entry()
589 err = PTR_ERR(str); in audit_data_to_entry()
592 audit_mark = audit_alloc_mark(&entry->rule, str, f_val); in audit_data_to_entry()
594 kfree(str); in audit_data_to_entry()
623 static inline size_t audit_pack_string(void **bufp, const char *str) in audit_pack_string() argument
625 size_t len = strlen(str); in audit_pack_string()
627 memcpy(*bufp, str, len); in audit_pack_string()