From: "Wolff Felix (ETAS-SEC/ECT-Be)" <Felix.Wolff@escrypt.com>
To: Richard Guy Briggs <rgb@redhat.com>
Cc: "Linux-audit@redhat.com" <Linux-audit@redhat.com>
Subject: AW: Error starting auditd
Date: Thu, 16 May 2019 14:11:47 +0000 [thread overview]
Message-ID: <349996a1e9564695a2a281c9396b4f80@escrypt.com> (raw)
In-Reply-To: <20190516135644.nt3l4l4xwmrkhizl@madcap2.tricolour.ca>
Good hint, thanks! Running `dmesg | grep audit_pid` revealed the pid of the already running process!
-----Ursprüngliche Nachricht-----
Von: Richard Guy Briggs <rgb@redhat.com>
Gesendet: Donnerstag, 16. Mai 2019 15:57
An: Wolff Felix (ETAS-SEC/ECT-Be) <Felix.Wolff@escrypt.com>
Cc: Linux-audit@redhat.com
Betreff: Re: Error starting auditd
On 2019-05-16 10:47, Wolff Felix (ETAS-SEC/ECT-Be) wrote:
> Hello,
Hi Felix,
> I am currently porting auditd to a new platform. When starting it using `auditd -f`, I get the following error:
>
> "Error setting audit daemon pid (File exists)"
>
> It occurs during the call to `audit_set_pid(fd, getpid(), WAIT_YES);` in auditd.c. If I understand correctly, this call registers auditd with the kernel, is that correct? fd looks like a valid file descriptor, at least its >0. Especially the "file exists" part confuses me. In which direction can I investigate that error?
It appears you already have a process/task that is registered with the kernel for this purpose and it is still alive and healthy. On a normal system I would say it is likely auditd that was started by the system.
On yours, are you sure you haven't got a previous one already at least partly running?
The line responsible in the kernel is here:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/kernel/audit.c#n1262
> Thank you and greets,
> Felix
- RGB
--
Richard Guy Briggs <rgb@redhat.com>
Sr. S/W Engineer, Kernel Security, Base Operating Systems Remote, Ottawa, Red Hat Canada
IRC: rgb, SunRaycer
Voice: +1.647.777.2635, Internal: (81) 32635
prev parent reply other threads:[~2019-05-16 14:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-16 10:47 Error starting auditd Wolff Felix (ETAS-SEC/ECT-Be)
2019-05-16 13:56 ` Richard Guy Briggs
2019-05-16 14:11 ` Wolff Felix (ETAS-SEC/ECT-Be) [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=349996a1e9564695a2a281c9396b4f80@escrypt.com \
--to=felix.wolff@escrypt.com \
--cc=Linux-audit@redhat.com \
--cc=rgb@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