Lines Matching refs:nentry
406 struct ima_rule_entry *nentry; in ima_lsm_copy_rule() local
413 nentry = kmemdup(entry, sizeof(*nentry), GFP_KERNEL); in ima_lsm_copy_rule()
414 if (!nentry) in ima_lsm_copy_rule()
417 memset(nentry->lsm, 0, sizeof_field(struct ima_rule_entry, lsm)); in ima_lsm_copy_rule()
423 nentry->lsm[i].type = entry->lsm[i].type; in ima_lsm_copy_rule()
424 nentry->lsm[i].args_p = entry->lsm[i].args_p; in ima_lsm_copy_rule()
426 ima_filter_rule_init(nentry->lsm[i].type, Audit_equal, in ima_lsm_copy_rule()
427 nentry->lsm[i].args_p, in ima_lsm_copy_rule()
428 &nentry->lsm[i].rule); in ima_lsm_copy_rule()
429 if (!nentry->lsm[i].rule) in ima_lsm_copy_rule()
431 nentry->lsm[i].args_p); in ima_lsm_copy_rule()
433 return nentry; in ima_lsm_copy_rule()
439 struct ima_rule_entry *nentry; in ima_lsm_update_rule() local
441 nentry = ima_lsm_copy_rule(entry); in ima_lsm_update_rule()
442 if (!nentry) in ima_lsm_update_rule()
445 list_replace_rcu(&entry->list, &nentry->list); in ima_lsm_update_rule()