* Confused about audit=1 in grub.conf
@ 2010-10-28 19:40 Robert Evans
2010-10-28 20:22 ` Steve Grubb
0 siblings, 1 reply; 4+ messages in thread
From: Robert Evans @ 2010-10-28 19:40 UTC (permalink / raw)
To: linux-audit
[-- Attachment #1: Type: text/html, Size: 1543 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Confused about audit=1 in grub.conf
2010-10-28 19:40 Confused about audit=1 in grub.conf Robert Evans
@ 2010-10-28 20:22 ` Steve Grubb
2010-10-29 0:21 ` Eric Paris
0 siblings, 1 reply; 4+ messages in thread
From: Steve Grubb @ 2010-10-28 20:22 UTC (permalink / raw)
To: linux-audit; +Cc: Robert Evans
On Thursday, October 28, 2010 03:40:58 pm Robert Evans wrote:
> I did some research and am confused about starting the audit daemon at
> boot time, so that you don't get auid's of 4294967295.
>
> In RHEL 5.5, my grub.conf looks like this:
>
> audit=1
> # grub.conf generated by anaconda
> #
> # Note that you do not have to rerun grub after making changes to this
> file # NOTICE: You have a /boot partition. This means that
> # all kernel and initrd paths are relative to /boot/, eg.
> # root (hd0,0)
> # kernel /vmlinuz-version ro root=/dev/sda4
> # initrd /initrd-version.img
> #boot=/dev/sda
> default=0
> timeout=5
> splashimage=(hd0,0)/grub/splash.xpm.gz
> hiddenmenu
> title Red Hat Enterprise Linux Server (2.6.18-194.el5)
> root (hd0,0)
> kernel /vmlinuz-2.6.18-194.el5 ro root=LABEL=/ rhgb quiet
You needed to add audit=1 to the kernel line ^^^ so that its passed to the
kernel.
> initrd /initrd-2.6.18-194.el5.img
>
>
> audit=1 is the first line, so why am I still getting the 4294967295
> auid's?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Confused about audit=1 in grub.conf
2010-10-28 20:22 ` Steve Grubb
@ 2010-10-29 0:21 ` Eric Paris
2010-10-29 16:20 ` Steve Grubb
0 siblings, 1 reply; 4+ messages in thread
From: Eric Paris @ 2010-10-29 0:21 UTC (permalink / raw)
To: Steve Grubb; +Cc: linux-audit, Robert Evans
On Thu, 2010-10-28 at 16:22 -0400, Steve Grubb wrote:
> On Thursday, October 28, 2010 03:40:58 pm Robert Evans wrote:
> > I did some research and am confused about starting the audit daemon at
> > boot time, so that you don't get auid's of 4294967295.
> >
> > In RHEL 5.5, my grub.conf looks like this:
> >
> > audit=1
> > # grub.conf generated by anaconda
> > #
> > # Note that you do not have to rerun grub after making changes to this
> > file # NOTICE: You have a /boot partition. This means that
> > # all kernel and initrd paths are relative to /boot/, eg.
> > # root (hd0,0)
> > # kernel /vmlinuz-version ro root=/dev/sda4
> > # initrd /initrd-version.img
> > #boot=/dev/sda
> > default=0
> > timeout=5
> > splashimage=(hd0,0)/grub/splash.xpm.gz
> > hiddenmenu
> > title Red Hat Enterprise Linux Server (2.6.18-194.el5)
> > root (hd0,0)
> > kernel /vmlinuz-2.6.18-194.el5 ro root=LABEL=/ rhgb quiet
>
> You needed to add audit=1 to the kernel line ^^^ so that its passed to the
> kernel.
>
>
> > initrd /initrd-2.6.18-194.el5.img
> >
> >
> > audit=1 is the first line, so why am I still getting the 4294967295
> > auid's?
Steve's right, but the answer to your question is "because that has
nothing to do with audit=1." auid's = -1 just mean that the process was
not started by a logged in user. They were likely started by init.
-Eric
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Confused about audit=1 in grub.conf
2010-10-29 0:21 ` Eric Paris
@ 2010-10-29 16:20 ` Steve Grubb
0 siblings, 0 replies; 4+ messages in thread
From: Steve Grubb @ 2010-10-29 16:20 UTC (permalink / raw)
To: Eric Paris; +Cc: linux-audit, Robert Evans
On Thursday, October 28, 2010 08:21:42 pm Eric Paris wrote:
> On Thu, 2010-10-28 at 16:22 -0400, Steve Grubb wrote:
> > You needed to add audit=1 to the kernel line ^^^ so that its passed to
> > the kernel.
>
> Steve's right, but the answer to your question is "because that has
> nothing to do with audit=1." auid's = -1 just mean that the process was
> not started by a logged in user. They were likely started by init.
That is true when you have audit=1 being passed to the kernel correctly.
However, if you do not do that. You sometimes run into problems with gdm
because of parallel booting. Its possible (even required an entry in the FAQ
because it was happening that often - see #8) to get auid of -1 when logging
in via gdm.
So, if you have audit=1 and pam_loginuid is in the correct places and you
still get auid=-1, that is because its a daemon or program running that is not
associated with a user session.
-Steve
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-10-29 16:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-28 19:40 Confused about audit=1 in grub.conf Robert Evans
2010-10-28 20:22 ` Steve Grubb
2010-10-29 0:21 ` Eric Paris
2010-10-29 16:20 ` Steve Grubb
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox