projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6c50fe
)
audit: use old_lock in audit_set_feature
author
Gao feng
<
[email protected]
>
Fri, 1 Nov 2013 11:34:44 +0000
(19:34 +0800)
committer
Eric Paris
<
[email protected]
>
Tue, 14 Jan 2014 03:30:19 +0000
(22:30 -0500)
we already have old_lock, no need to calculate it again.
Acked-by: Eric Paris <
[email protected]
>
Signed-off-by: Gao feng <
[email protected]
>
Signed-off-by: Richard Guy Briggs <
[email protected]
>
Signed-off-by: Eric Paris <
[email protected]
>
kernel/audit.c
patch
|
blob
|
history
diff --git
a/kernel/audit.c
b/kernel/audit.c
index 2360da991721ac77e044f973384603b7695769b2..0d4865a50171bb78ead7a2f34ac2257cd226d235 100644
(file)
--- a/
kernel/audit.c
+++ b/
kernel/audit.c
@@
-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;