Lines Matching refs:nentry
382 struct ima_rule_entry *nentry; in ima_lsm_copy_rule() local
389 nentry = kmemdup(entry, sizeof(*nentry), GFP_KERNEL); in ima_lsm_copy_rule()
390 if (!nentry) in ima_lsm_copy_rule()
393 memset(nentry->lsm, 0, sizeof_field(struct ima_rule_entry, lsm)); in ima_lsm_copy_rule()
399 nentry->lsm[i].type = entry->lsm[i].type; in ima_lsm_copy_rule()
400 nentry->lsm[i].args_p = entry->lsm[i].args_p; in ima_lsm_copy_rule()
408 ima_filter_rule_init(nentry->lsm[i].type, Audit_equal, in ima_lsm_copy_rule()
409 nentry->lsm[i].args_p, in ima_lsm_copy_rule()
410 &nentry->lsm[i].rule); in ima_lsm_copy_rule()
411 if (!nentry->lsm[i].rule) in ima_lsm_copy_rule()
413 nentry->lsm[i].args_p); in ima_lsm_copy_rule()
415 return nentry; in ima_lsm_copy_rule()
420 struct ima_rule_entry *nentry; in ima_lsm_update_rule() local
422 nentry = ima_lsm_copy_rule(entry); in ima_lsm_update_rule()
423 if (!nentry) in ima_lsm_update_rule()
426 list_replace_rcu(&entry->list, &nentry->list); in ima_lsm_update_rule()