* audit 1.2.7 released
@ 2006-09-19 0:13 Steve Grubb
2006-09-19 21:05 ` Amy Griffis
0 siblings, 1 reply; 8+ messages in thread
From: Steve Grubb @ 2006-09-19 0:13 UTC (permalink / raw)
To: linux-audit
Hi,
I've just released a new version of the audit daemon. It can be downloaded
from http://people.redhat.com/sgrubb/audit It will also be in rawhide
tomorrow. The Changelog is:
- Fix logging messages to use addr if passed.
- Apply patches from Tony Jones correcting no kernel support messages
- Updated syscall tables for 2.6.18 kernel
- Remove deprecated functions: audit_log, audit_log_avc, audit_log_if_enabled
- Disallow syscall auditing on exclude list
- Improve time handling in ausearch and aureport (#191394)
- Attempt to reconstruct full path from relative for searching
Please let me know if there are any problems with this release.
-Steve
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: audit 1.2.7 released
2006-09-19 0:13 audit 1.2.7 released Steve Grubb
@ 2006-09-19 21:05 ` Amy Griffis
2006-09-19 22:18 ` Steve Grubb
2006-09-20 19:12 ` Stephen Smalley
0 siblings, 2 replies; 8+ messages in thread
From: Amy Griffis @ 2006-09-19 21:05 UTC (permalink / raw)
To: linux-audit
Steve Grubb wrote: [Mon Sep 18 2006, 08:13:40PM EDT]
> Please let me know if there are any problems with this release.
I'm seeing some truncated audit records, e.g.
type=DAEMON_END msg=audit(1158669003.740:6165) auditd normal halt,
sending auid=1001 pid=32268 subj=user_u:system_r:initrc_t:s0 res=suc
which should continue with something like
cess, auditd pid=6785
There are some static buffer sizes in auditd.c that look way too small
given that libselinux defines the max context size as
#define DEFAULT_CONTEXT_SIZE 255
I think this is an existing problem, and not new to 1.2.7.
Thanks,
Amy
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: audit 1.2.7 released
2006-09-19 21:05 ` Amy Griffis
@ 2006-09-19 22:18 ` Steve Grubb
2006-09-20 19:12 ` Stephen Smalley
1 sibling, 0 replies; 8+ messages in thread
From: Steve Grubb @ 2006-09-19 22:18 UTC (permalink / raw)
To: linux-audit
On Tuesday 19 September 2006 17:05, Amy Griffis wrote:
> I'm seeing some truncated audit records, e.g.
OK, will be fixed in 1.2.8...
Thanks,
-Steve
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: audit 1.2.7 released
2006-09-19 21:05 ` Amy Griffis
2006-09-19 22:18 ` Steve Grubb
@ 2006-09-20 19:12 ` Stephen Smalley
2006-09-20 19:19 ` Steve Grubb
1 sibling, 1 reply; 8+ messages in thread
From: Stephen Smalley @ 2006-09-20 19:12 UTC (permalink / raw)
To: Amy Griffis; +Cc: linux-audit
On Tue, 2006-09-19 at 17:05 -0400, Amy Griffis wrote:
> Steve Grubb wrote: [Mon Sep 18 2006, 08:13:40PM EDT]
> > Please let me know if there are any problems with this release.
>
> I'm seeing some truncated audit records, e.g.
>
> type=DAEMON_END msg=audit(1158669003.740:6165) auditd normal halt,
> sending auid=1001 pid=32268 subj=user_u:system_r:initrc_t:s0 res=suc
>
> which should continue with something like
>
> cess, auditd pid=6785
>
> There are some static buffer sizes in auditd.c that look way too small
> given that libselinux defines the max context size as
>
> #define DEFAULT_CONTEXT_SIZE 255
>
> I think this is an existing problem, and not new to 1.2.7.
SELinux userland code isn't supposed to assume any fixed max.
libselinux does use an initial buffer size as a starting point when
calling e.g. getxattr, but will resize the buffer to a larger size if
necessary.
--
Stephen Smalley
National Security Agency
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: audit 1.2.7 released
2006-09-20 19:12 ` Stephen Smalley
@ 2006-09-20 19:19 ` Steve Grubb
2006-09-20 19:26 ` Paul Moore
0 siblings, 1 reply; 8+ messages in thread
From: Steve Grubb @ 2006-09-20 19:19 UTC (permalink / raw)
To: linux-audit
On Wednesday 20 September 2006 15:12, Stephen Smalley wrote:
> SELinux userland code isn't supposed to assume any fixed max.
> libselinux does use an initial buffer size as a starting point when
> calling e.g. getxattr, but will resize the buffer to a larger size if
> necessary.
I try very hard to not have any memory allocations in the audit system to
prevent and possible failure due to fragmentation or leaks. I need to cap the
buffer size at something to meet this design goal.
-Steve
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: audit 1.2.7 released
2006-09-20 19:19 ` Steve Grubb
@ 2006-09-20 19:26 ` Paul Moore
2006-09-20 19:40 ` Steve Grubb
0 siblings, 1 reply; 8+ messages in thread
From: Paul Moore @ 2006-09-20 19:26 UTC (permalink / raw)
To: linux-audit
Steve Grubb wrote:
> On Wednesday 20 September 2006 15:12, Stephen Smalley wrote:
>
>>SELinux userland code isn't supposed to assume any fixed max.
>>libselinux does use an initial buffer size as a starting point when
>>calling e.g. getxattr, but will resize the buffer to a larger size if
>>necessary.
>
> I try very hard to not have any memory allocations in the audit system to
> prevent and possible failure due to fragmentation or leaks. I need to cap the
> buffer size at something to meet this design goal.
>
If this buffer limitation results in the loss or partial-loss of an
audit record is there some notification sent? This seems like an
excellent way for an individual to obscure their actions on a system.
--
paul moore
linux security @ hp
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: audit 1.2.7 released
2006-09-20 19:26 ` Paul Moore
@ 2006-09-20 19:40 ` Steve Grubb
2006-09-21 19:43 ` Karl MacMillan
0 siblings, 1 reply; 8+ messages in thread
From: Steve Grubb @ 2006-09-20 19:40 UTC (permalink / raw)
To: Paul Moore; +Cc: linux-audit
On Wednesday 20 September 2006 15:26, Paul Moore wrote:
> > I try very hard to not have any memory allocations in the audit system to
> > prevent any possible failure due to fragmentation or leaks. I need to cap
> > the buffer size at something to meet this design goal.
>
> If this buffer limitation results in the loss or partial-loss of an
> audit record is there some notification sent?
No.
> This seems like an excellent way for an individual to obscure their actions
> on a system.
Well, the particular buffer that Amy cited was 128 in size and only for
startup/shutdown messages. It has been increased to 384. The other buffer
that holds the events from syscall, file system, and trusted apps was 8460
and is now 8970.
-Steve
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: audit 1.2.7 released
2006-09-20 19:40 ` Steve Grubb
@ 2006-09-21 19:43 ` Karl MacMillan
0 siblings, 0 replies; 8+ messages in thread
From: Karl MacMillan @ 2006-09-21 19:43 UTC (permalink / raw)
To: Steve Grubb; +Cc: linux-audit
On Wed, 2006-09-20 at 15:40 -0400, Steve Grubb wrote:
> On Wednesday 20 September 2006 15:26, Paul Moore wrote:
> > > I try very hard to not have any memory allocations in the audit system to
> > > prevent any possible failure due to fragmentation or leaks. I need to cap
> > > the buffer size at something to meet this design goal.
> >
> > If this buffer limitation results in the loss or partial-loss of an
> > audit record is there some notification sent?
>
> No.
>
> > This seems like an excellent way for an individual to obscure their actions
> > on a system.
>
> Well, the particular buffer that Amy cited was 128 in size and only for
> startup/shutdown messages. It has been increased to 384. The other buffer
> that holds the events from syscall, file system, and trusted apps was 8460
> and is now 8970.
>
There are very few limits on the size of contexts, though, and any heavy
use of MLS / MCS categories could make the average context size grow
quickly. Granted this is controllable by policy and, presumably,
solvable by an admin.
Karl
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-09-21 19:43 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-19 0:13 audit 1.2.7 released Steve Grubb
2006-09-19 21:05 ` Amy Griffis
2006-09-19 22:18 ` Steve Grubb
2006-09-20 19:12 ` Stephen Smalley
2006-09-20 19:19 ` Steve Grubb
2006-09-20 19:26 ` Paul Moore
2006-09-20 19:40 ` Steve Grubb
2006-09-21 19:43 ` Karl MacMillan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox