diff options
author | Shawn Landden <shawnlandden@gmail.com> | 2013-07-15 18:10:56 -0700 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-07-16 04:27:04 +0200 |
commit | 3a83211689bdf4ab617a4fb79e11980c50918123 (patch) | |
tree | e01b35ef57b7fb48ee3acd7ced3cdb9dc9498848 /src/journal | |
parent | fa7deadb074dfbe473cf3bd942768dbd94cbf7c3 (diff) |
journal: add logging of effective capabilities _CAP_EFFECTIVE
I think this is the most important of the capabilities bitmasks to log.
Diffstat (limited to 'src/journal')
-rw-r--r-- | src/journal/journald-server.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c index 6beaa8a729..332ba41363 100644 --- a/src/journal/journald-server.c +++ b/src/journal/journald-server.c @@ -578,6 +578,13 @@ static void dispatch_message_real( IOVEC_SET_STRING(iovec[n++], x); } + r = get_process_capeff(ucred->pid, &t); + if (r >= 0) { + x = strappenda("_CAP_EFFECTIVE=", t); + free(t); + IOVEC_SET_STRING(iovec[n++], x); + } + #ifdef HAVE_AUDIT r = audit_session_from_pid(ucred->pid, &audit); if (r >= 0) { |