Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4547b3bc authored by Gao feng's avatar Gao feng Committed by Eric Paris
Browse files

audit: use old_lock in audit_set_feature



we already have old_lock, no need to calculate it again.

Acked-by: default avatarEric Paris <eparis@redhat.com>
Signed-off-by: default avatarGao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: default avatarRichard Guy Briggs <rgb@redhat.com>
Signed-off-by: default avatarEric Paris <eparis@redhat.com>
parent b6c50fe0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -714,7 +714,7 @@ static int audit_set_feature(struct sk_buff *skb)
		old_lock = af.lock & feature;

		/* are we changing a locked feature? */
		if ((af.lock & feature) && (new_feature != old_feature)) {
		if (old_lock && (new_feature != old_feature)) {
			audit_log_feature_change(i, old_feature, new_feature,
						 old_lock, new_lock, 0);
			return -EPERM;