public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
From: "paul moore" <paulmoore100@hotmail.com>
To: 'Paul Moore' <paul.moore@hp.com>
Cc: linux-audit@redhat.com
Subject: RE: listening to /dev/audit in a pthread program
Date: Fri, 20 Apr 2007 16:08:33 -0700	[thread overview]
Message-ID: <BAY119-DAV354EE67C9CF14E6A7EC7C8C560@phx.gbl> (raw)
Message-ID: <000501c783a0$d14cdd30$656fa8c0@centrify.com> (raw)
In-Reply-To: <200704201845.27504.paul.moore@hp.com>

Sorry

Redhat es4 x86 monoproc
Kernel 2.6.9-34.EL
Audit 1.0.12-1.EL4 
gcc 3.4.5 (redhat's)

-----Original Message-----
From: Paul Moore [mailto:paul.moore@hp.com] 
Sent: Friday, April 20, 2007 3:45 PM
To: paul moore
Cc: linux-audit@redhat.com
Subject: Re: listening to /dev/audit in a pthread program

On Friday, April 20 2007 6:35:34 pm paul moore wrote:
> I have an test app that quite happily does an audit_set_pid and then 
> sits there reading /dev/audit.
>
> It works fine if its in the lead thread. But when I run the same code 
> in my real app it runs in a different thread. No matter what PID I 
> pass to the audit subsystem it complains that nobody is listening
>
> I did audit_set_pid(....getpid...) - no (passes the pid of the manager
> thread)
> I did audit_set_pid(....gettid...) - no (passes the pid of the LWP)
>
> (I dont really mean I did gettid - I did syscall(_NR_gettid))
>
> I can see in the complaint message that I have given it the pid I 
> intended to.
> I can see in gdb that my LWP id is the same as the one I send to the 
> audit subsystem - ie gettid worked.
>
> Is this a known issue?

A little more information would be helpful, such as distribution (I'm
guessing SuSE?), kernel version, audit userspace version, etc.

-Paul "The Other One" Moore

--
paul moore
linux security @ hp

  reply	other threads:[~2007-04-20 23:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <000401c7839c$359b1040$656fa8c0@centrify.com>
2007-04-20 22:35 ` listening to /dev/audit in a pthread program paul moore
2007-04-20 22:45   ` Paul Moore
     [not found]     ` <000501c783a0$d14cdd30$656fa8c0@centrify.com>
2007-04-20 23:08       ` paul moore [this message]
2007-04-20 23:13   ` Steve Grubb
     [not found]     ` <000601c783a5$aef988a0$656fa8c0@centrify.com>
2007-04-20 23:43       ` paul moore

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=BAY119-DAV354EE67C9CF14E6A7EC7C8C560@phx.gbl \
    --to=paulmoore100@hotmail.com \
    --cc=linux-audit@redhat.com \
    --cc=paul.moore@hp.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