提交 4547b3bc 编写于 作者: G Gao feng 提交者: Eric Paris

audit: use old_lock in audit_set_feature

we already have old_lock, no need to calculate it again.
Acked-by: NEric Paris <eparis@redhat.com>
Signed-off-by: NGao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: NRichard Guy Briggs <rgb@redhat.com>
Signed-off-by: NEric Paris <eparis@redhat.com>
上级 b6c50fe0
...@@ -714,7 +714,7 @@ static int audit_set_feature(struct sk_buff *skb) ...@@ -714,7 +714,7 @@ static int audit_set_feature(struct sk_buff *skb)
old_lock = af.lock & feature; old_lock = af.lock & feature;
/* are we changing a locked 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, audit_log_feature_change(i, old_feature, new_feature,
old_lock, new_lock, 0); old_lock, new_lock, 0);
return -EPERM; return -EPERM;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册