login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
July
»
31
Re: [PATCH] Fix the bug of using AUDIT_STATUS_RATE_LIMIT when set fail, no error output.
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Eric Paris
Subject:
Re: [PATCH] Fix the bug of using AUDIT_STATUS_RATE_LIMIT when set fail, no error output.
Date: Wednesday, July 30, 2008 - 8:15 pm
On Thu, 2008-07-31 at 10:11 +0800, zhangxiliang wrote:
quoted text
> When the "status_get->mask" is "AUDIT_STATUS_RATE_LIMIT || AUDIT_STATUS_BACKLOG_LIMIT". > If "audit_set_rate_limit" fails and "audit_set_backlog_limit" succeeds, the "err" value will be greater than or equal to 0. It will miss the failure of rate set. > > Signed-off-by: Zhang Xiliang <zhangxiliang@cn.fujitsu.com>
man, it gives me the heebee jeebies with the coding style but it follows everything else Acked-by: Eric Paris <eparis@redhat.com>
quoted text
> --- > kernel/audit.c | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/kernel/audit.c b/kernel/audit.c > index e092f1c..38a4080 100644 > --- a/kernel/audit.c > +++ b/kernel/audit.c > @@ -725,9 +725,11 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh) > audit_pid = new_pid; > audit_nlk_pid = NETLINK_CB(skb).pid; > } > - if (status_get->mask & AUDIT_STATUS_RATE_LIMIT) > + if (status_get->mask & AUDIT_STATUS_RATE_LIMIT) { > err = audit_set_rate_limit(status_get->rate_limit, > loginuid, sessionid, sid); > + if (err < 0) return err; > + } > if (status_get->mask & AUDIT_STATUS_BACKLOG_LIMIT) > err = audit_set_backlog_limit(status_get->backlog_limit, > loginuid, sessionid, sid); > -- > 1.5.4.2 > >
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] Fix the bug of using AUDIT_STATUS_RATE_LIMIT when ...
, zhangxiliang
, (Wed Jul 30, 7:11 pm)
Re: [PATCH] Fix the bug of using AUDIT_STATUS_RATE_LIMIT w ...
, Eric Paris
, (Wed Jul 30, 8:15 pm)
Re: [PATCH] Fix the bug of using AUDIT_STATUS_RATE_LIMIT w ...
, Al Viro
, (Thu Jul 31, 9:04 am)
Re: [PATCH] Fix the bug of using AUDIT_STATUS_RATE_LIMIT w ...
, Andrew Morton
, (Thu Jul 31, 2:59 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
jimmy bahuleyan
Re: how about mutual compatibility between Linux's GPLv2 and GPLv3?
Andrew Morton
Re: 2.6.26-rc2-mm1
James Bottomley
Re: INITIO scsi driver fails to work properly
Kamalesh Babulal
Re: [BUG] 2.6.25-rc5-mm1 kernel panic with "Exception: 501 " on powerpc
git-commits-head
:
Linux Kernel Mailing List
amba: struct device - replace bus_id with dev_name(), dev_set_name()
Linux Kernel Mailing List
cpumask: make irq_set_affinity() take a const struct cpumask
Linux Kernel Mailing List
[ARM] move include/asm-arm to arch/arm/include/asm
Linux Kernel Mailing List
FS-Cache: Implement the cookie management part of the netfs API
Linux Kernel Mailing List
x86: remove subarchitecture support
git
:
Junio C Hamano
Re: mingw, windows, crlf/lf, and git
Santi Béjar
Re: How to use git-fmt-merge-msg?
Johannes Sixt
Re: Trying to use git-filter-branch to compress history by removing large, obsol...
Nicolas Pitre
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle
Junio C Hamano
Re: [PATCH 1/2] Teach git-describe to display distances from tags.
freebsd-current
:
Michael Moll
Re: Unable to boot on ECS K7S5A
FreeBSD Tinderbox
[head tinderbox] failure on ia64/ia64
Jack Vogel
RFC: Capability addition for IEEE 1588
Julian Elischer
oh-oh .. 128 processors..
Stefan Lambrev
rtfree: 0xc741ee88 has 1 refs
linux-netdev
:
Arnaud Ebalard
Re: [REGRESSION,BISECTED] MIPv6 support broken by f4f914b58019f0
jamal
RE: [PATCH 1/4] [NET_SCHED] explict hold dev tx lock
Patrick Ohly
[RFC PATCH 04/13] net: implement generic SOF_TIMESTAMPING_TX_* support
Ben Hutchings
[PATCH 11/11] sfc: Replace stats_enabled flag with a disable count
Jesse Barnes
Re: [PATCH] pci: fix kexec with power state D3
Colocation donated by:
Syndicate