From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Subject: Re: check_ack()
Date: Sun, 30 Nov 2008 09:25:46 -0500 [thread overview]
Message-ID: <200811300927.53046.sgrubb@redhat.com> (raw)
In-Reply-To: <2c03f9590811202230x5daf2ea8i3d7aa0aedb1bcf47@mail.gmail.com>
On Friday 21 November 2008 01:30:53 Lucas C. Villa Real wrote:
> However, since netlink is a connectionless socket, once cannot infer
> that the lack of an ACK means that the kernel didn't receive that
> message.
That sounds like a design problem. Why would they even have an ACK if they
can't guarantee its delivery?
> Similarly, in a very stressed system, one can just get -ENOBUFS when
> attempting to get a reply, even though sendto() succeeded sending the
> original message.
I think this sounds like a design problem in the netlink code.
> So, at least in a scenario where Audit is a key component and
> performance matters, wouldn't it make sense to just remove NLM_F_ACK
> from outgoing messages and just let audit_send() use the return value
> from sendto() to tell if the message has been sent instead?
The intent was to verify that all issued commands are in fact receieved so
that if they aren't, we can advise the user. I also believe the ACK is how we
find out that the command has bad parameters. So, I don't think its possible to
remove it. When an event fails to be sent, we need it to block the action
and/or otherwise log it into syslog. Otherwise you open up an avenue for
attacking systems. There are many people that consider auditing to be more
important than system availability.
-Steve
prev parent reply other threads:[~2008-11-30 14:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-21 6:30 check_ack() Lucas C. Villa Real
2008-11-30 14:25 ` Steve Grubb [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200811300927.53046.sgrubb@redhat.com \
--to=sgrubb@redhat.com \
--cc=linux-audit@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox