Lines Matching refs:nentry
354 struct ima_rule_entry *nentry;
361 nentry = kmemdup(entry, sizeof(*nentry), GFP_KERNEL);
362 if (!nentry)
365 memset(nentry->lsm, 0, sizeof_field(struct ima_rule_entry, lsm));
371 nentry->lsm[i].type = entry->lsm[i].type;
372 nentry->lsm[i].args_p = entry->lsm[i].args_p;
374 ima_filter_rule_init(nentry->lsm[i].type, Audit_equal,
375 nentry->lsm[i].args_p,
376 &nentry->lsm[i].rule);
377 if (!nentry->lsm[i].rule)
379 nentry->lsm[i].args_p);
381 return nentry;
387 struct ima_rule_entry *nentry;
389 nentry = ima_lsm_copy_rule(entry);
390 if (!nentry)
393 list_replace_rcu(&entry->list, &nentry->list);
397 * LSM references, from entry to nentry so we only want to free the LSM
399 * be owned by nentry.