Lines Matching defs:old
816 * will be updated in the copy. The point is to be able to replace the old
817 * rule with the new rule in the filterlist, then free the old rule.
820 struct audit_entry *audit_dupe_rule(struct audit_krule *old)
822 u32 fcount = old->field_count;
833 new->flags = old->flags;
834 new->pflags = old->pflags;
835 new->listnr = old->listnr;
836 new->action = old->action;
838 new->mask[i] = old->mask[i];
839 new->prio = old->prio;
840 new->buflen = old->buflen;
841 new->inode_f = old->inode_f;
842 new->field_count = old->field_count;
851 new->tree = old->tree;
852 memcpy(new->fields, old->fields, sizeof(struct audit_field) * fcount);
855 * the originals will all be freed when the old rule is freed. */
869 &old->fields[i]);
872 fk = kstrdup(old->filterkey, GFP_KERNEL);
879 err = audit_dupe_exe(new, old);
890 if (old->watch) {
891 audit_get_watch(old->watch);
892 new->watch = old->watch;
1436 * LSM field is re-initialized, and the old rule is replaced with the