Lines Matching refs:nentry
406 struct ima_rule_entry *nentry;
413 nentry = kmemdup(entry, sizeof(*nentry), GFP_KERNEL);
414 if (!nentry)
417 memset(nentry->lsm, 0, sizeof_field(struct ima_rule_entry, lsm));
423 nentry->lsm[i].type = entry->lsm[i].type;
424 nentry->lsm[i].args_p = entry->lsm[i].args_p;
426 ima_filter_rule_init(nentry->lsm[i].type, Audit_equal,
427 nentry->lsm[i].args_p,
428 &nentry->lsm[i].rule);
429 if (!nentry->lsm[i].rule)
431 nentry->lsm[i].args_p);
433 return nentry;
439 struct ima_rule_entry *nentry;
441 nentry = ima_lsm_copy_rule(entry);
442 if (!nentry)
445 list_replace_rcu(&entry->list, &nentry->list);
449 * LSM references, from entry to nentry so we only want to free the LSM
451 * be owned by nentry.