podman/libpod/events
Paul Holzinger 2ab90f2ed6
journald: podman events only show events for current user
I noticed this while running some things in parallel, podman events
would show events from other users. Because all events are written to
the journal everybody can see them. So when we read the journal we must
filter events for only the current UID.

To reproduce run `podman events` as user then in another window create a
container as root for example. After this patch it will correctly ignore
these events from other users.

[NO NEW TESTS NEEDED] I don't think we can test with two users at the same
time.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-01-27 16:20:32 +01:00
..
config.go container create: add inspect data to event 2022-11-29 10:40:24 +01:00
events.go Events for containers in pods now include the pod's ID 2022-09-22 14:18:56 -04:00
events_freebsd.go events: Fix spelling of newNullEventer 2022-09-13 08:38:13 +01:00
events_linux.go event backend none: return an error when reading events 2022-09-12 18:05:17 +02:00
events_unsupported.go events: Add freebsd support for libpod/event 2022-08-22 10:14:12 +01:00
filters.go events: support "die" filter 2022-12-22 10:59:40 +01:00
journal_linux.go journald: podman events only show events for current user 2023-01-27 16:20:32 +01:00
journal_unsupported.go go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
logfile.go Update c/storage after https://github.com/containers/storage/pull/1436 2022-12-01 16:05:13 +01:00
logfile_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
memory.go Add podman machine events 2022-05-03 13:49:01 -07:00
nullout.go event backend none: return an error when reading events 2022-09-12 18:05:17 +02:00