* Audit of physical users
@ 2013-09-02 12:49 Maupertuis Philippe
2013-09-03 21:04 ` Steve Grubb
0 siblings, 1 reply; 2+ messages in thread
From: Maupertuis Philippe @ 2013-09-02 12:49 UTC (permalink / raw)
To: linux-audit@redhat.com
[-- Attachment #1.1: Type: text/plain, Size: 2126 bytes --]
I have a requirement to trace the activity of the physical users on Redhat 5/6 systems.
I spent the last week sifting through the archive to find that the question was asked time and again.
The basic rule is easy but the hitch is when an administrator restarts a service.
Unfortunately, it seems there is no solution until systemd is used to start daemon instead of service.
The only useful thing I found was in this old post from 2007 http://www.redhat.com/archives/linux-audit/2007-February/msg00071.html to reset the auid.
I would like to know if it can be used with the current version of auditd.
If yes, I will probably give it a try with a fixed dedicated auid to clearly state that the auid was changed.
Do I need to install something besides audit and audit-libs ?
Is there any special need, for compiling this program ?
Thanks
Philippe
________________________________
Ce message et les pi?ces jointes sont confidentiels et r?serv?s ? l'usage exclusif de ses destinataires. Il peut ?galement ?tre prot?g? par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir imm?diatement l'exp?diteur et de le d?truire. L'int?grit? du message ne pouvant ?tre assur?e sur Internet, la responsabilit? de Worldline ne pourra ?tre recherch?e quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'exp?diteur ne donne aucune garantie ? cet ?gard et sa responsabilit? ne saurait ?tre recherch?e pour tout dommage r?sultant d'un virus transmis.
This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Worldline liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.
[-- Attachment #1.2: Type: text/html, Size: 5069 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Audit of physical users
2013-09-02 12:49 Audit of physical users Maupertuis Philippe
@ 2013-09-03 21:04 ` Steve Grubb
0 siblings, 0 replies; 2+ messages in thread
From: Steve Grubb @ 2013-09-03 21:04 UTC (permalink / raw)
To: linux-audit; +Cc: Maupertuis Philippe
On Monday, September 02, 2013 02:49:28 PM Maupertuis Philippe wrote:
> I have a requirement to trace the activity of the physical users on Redhat
> 5/6 systems. I spent the last week sifting through the archive to find
> that the question was asked time and again. The basic rule is easy but the
> hitch is when an administrator restarts a service. Unfortunately, it seems
> there is no solution until systemd is used to start daemon instead of
> service.
Depending on how ambitious you are, you can write a little C program that
opens /proc/self/loginuid and writes -1, then close, and execve the intended
program. You will still have a sessionid that is not -1, but you have a
solution. At the same time, it also means that admins could use the same tool
to bypass audit rules. So, you'd probably want to think about it a bit.
> The only useful thing I found was in this old post from 2007
> http://www.redhat.com/archives/linux-audit/2007-February/msg00071.html to
> reset the auid. I would like to know if it can be used with the current
> version of auditd.
Probably, but you don't really need to link against libaudit. If you looked at
the source to audit_setloginuid(), its just open /proc/self/loginuid and
writing to it.
> If yes, I will probably give it a try with a fixed
> dedicated auid to clearly state that the auid was changed. Do I need to
> install something besides audit and audit-libs ?
> Is there any special need, for compiling this program ?
I'd simplify.
-Steve
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-09-03 21:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-02 12:49 Audit of physical users Maupertuis Philippe
2013-09-03 21:04 ` Steve Grubb
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox