* Error starting auditd
@ 2019-05-16 10:47 Wolff Felix (ETAS-SEC/ECT-Be)
2019-05-16 13:56 ` Richard Guy Briggs
0 siblings, 1 reply; 3+ messages in thread
From: Wolff Felix (ETAS-SEC/ECT-Be) @ 2019-05-16 10:47 UTC (permalink / raw)
To: Linux-audit@redhat.com
[-- Attachment #1.1.1: Type: text/plain, Size: 945 bytes --]
Hello,
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?
Thank you and greets,
Felix
--
Mit freundlichen Grüßen/Best regards
Felix Wolff
Software Engineer
[ESCRYPT-Logo_RGB]
ESCRYPT GmbH
Wittener Straße 45
44789 Bochum, Germany
Email: felix.wolff@escrypt.com
Phone: +49 30 403 691 957
Mobile: +49 1525 6953 720
www.escrypt.com
Managing directors: Christopher White, Dr.-Ing. Thomas Wollinger
Registered office and court of registry: Bochum, Germany, HRB 7877
[-- Attachment #1.1.2: Type: text/html, Size: 7386 bytes --]
[-- Attachment #1.2: image003.png --]
[-- Type: image/png, Size: 6498 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Error starting auditd
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 ` AW: " Wolff Felix (ETAS-SEC/ECT-Be)
0 siblings, 1 reply; 3+ messages in thread
From: Richard Guy Briggs @ 2019-05-16 13:56 UTC (permalink / raw)
To: Wolff Felix (ETAS-SEC/ECT-Be); +Cc: Linux-audit@redhat.com
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* AW: Error starting auditd
2019-05-16 13:56 ` Richard Guy Briggs
@ 2019-05-16 14:11 ` Wolff Felix (ETAS-SEC/ECT-Be)
0 siblings, 0 replies; 3+ messages in thread
From: Wolff Felix (ETAS-SEC/ECT-Be) @ 2019-05-16 14:11 UTC (permalink / raw)
To: Richard Guy Briggs; +Cc: Linux-audit@redhat.com
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-05-16 14:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` AW: " Wolff Felix (ETAS-SEC/ECT-Be)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox