linux-audit.redhat.com archive mirror
 help / color / mirror / Atom feed
* Audit, lxc containers and logged paths
@ 2016-06-30 17:27 Michele Giacomoli
  2016-06-30 17:40 ` Michele Giacomoli
  2016-06-30 18:09 ` Richard Guy Briggs
  0 siblings, 2 replies; 4+ messages in thread
From: Michele Giacomoli @ 2016-06-30 17:27 UTC (permalink / raw)
  To: linux-audit

Hello everybody,

I need to watch folders inside unprivileged linux containers. From what 
I know it's not possible to run audit inside a lxc guest, so I set up 
audit inside the host to log access to dirs using absolute path (e.g. 
/var/lib/lxc/mycontainer/rootfs/etc/) and it works, but giving a look at 
the logs I found that both the paths of the executable and the path that 
has been accessed are relative to the container (i.e. /bin/ls and 
/etc/passwd), so I don't have a clue of which is the container that 
generated the record. I could compare the uid that generated it whith 
the uids set for the containers, but it seems an ugly solution.

Can audit be configured for logging the absolute paths, or give me a 
hint of the container that generated the record?

Best regards
Michele

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-07-01  7:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-30 17:27 Audit, lxc containers and logged paths Michele Giacomoli
2016-06-30 17:40 ` Michele Giacomoli
2016-06-30 18:09 ` Richard Guy Briggs
2016-07-01  7:40   ` Michele Giacomoli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).