Lines Matching refs:nentry
375 struct ima_rule_entry *nentry; in ima_lsm_copy_rule() local
382 nentry = kmemdup(entry, sizeof(*nentry), GFP_KERNEL); in ima_lsm_copy_rule()
383 if (!nentry) in ima_lsm_copy_rule()
386 memset(nentry->lsm, 0, sizeof_field(struct ima_rule_entry, lsm)); in ima_lsm_copy_rule()
392 nentry->lsm[i].type = entry->lsm[i].type; in ima_lsm_copy_rule()
393 nentry->lsm[i].args_p = entry->lsm[i].args_p; in ima_lsm_copy_rule()
401 ima_filter_rule_init(nentry->lsm[i].type, Audit_equal, in ima_lsm_copy_rule()
402 nentry->lsm[i].args_p, in ima_lsm_copy_rule()
403 &nentry->lsm[i].rule); in ima_lsm_copy_rule()
404 if (!nentry->lsm[i].rule) in ima_lsm_copy_rule()
406 nentry->lsm[i].args_p); in ima_lsm_copy_rule()
408 return nentry; in ima_lsm_copy_rule()
413 struct ima_rule_entry *nentry; in ima_lsm_update_rule() local
415 nentry = ima_lsm_copy_rule(entry); in ima_lsm_update_rule()
416 if (!nentry) in ima_lsm_update_rule()
419 list_replace_rcu(&entry->list, &nentry->list); in ima_lsm_update_rule()