mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-29 09:12:07 +00:00
audit: use old_lock in audit_set_feature
we already have old_lock, no need to calculate it again. Acked-by: Eric Paris <eparis@redhat.com> Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com> Signed-off-by: Richard Guy Briggs <rgb@redhat.com> Signed-off-by: Eric Paris <eparis@redhat.com>
This commit is contained in:
parent
b6c50fe0be
commit
4547b3bc43
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user