Lines Matching refs:nentry
354 struct ima_rule_entry *nentry; in ima_lsm_copy_rule() local
361 nentry = kmemdup(entry, sizeof(*nentry), GFP_KERNEL); in ima_lsm_copy_rule()
362 if (!nentry) in ima_lsm_copy_rule()
365 memset(nentry->lsm, 0, sizeof_field(struct ima_rule_entry, lsm)); in ima_lsm_copy_rule()
371 nentry->lsm[i].type = entry->lsm[i].type; in ima_lsm_copy_rule()
372 nentry->lsm[i].args_p = entry->lsm[i].args_p; in ima_lsm_copy_rule()
380 ima_filter_rule_init(nentry->lsm[i].type, Audit_equal, in ima_lsm_copy_rule()
381 nentry->lsm[i].args_p, in ima_lsm_copy_rule()
382 &nentry->lsm[i].rule); in ima_lsm_copy_rule()
383 if (!nentry->lsm[i].rule) in ima_lsm_copy_rule()
385 nentry->lsm[i].args_p); in ima_lsm_copy_rule()
387 return nentry; in ima_lsm_copy_rule()
392 struct ima_rule_entry *nentry; in ima_lsm_update_rule() local
394 nentry = ima_lsm_copy_rule(entry); in ima_lsm_update_rule()
395 if (!nentry) in ima_lsm_update_rule()
398 list_replace_rcu(&entry->list, &nentry->list); in ima_lsm_update_rule()