diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-08-09 15:07:15 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-08-10 15:02:50 +0200 |
commit | 39f608e4b0ec2eea0a1a97df14bbcbe511101e18 (patch) | |
tree | de102eb9789be4716133ef40a1344fd486f6b11e /src/test/test-capability.c | |
parent | 6067611a0847d5b8d4f322cf6540b016c95d4cb4 (diff) | |
download | systemd-39f608e4b0ec2eea0a1a97df14bbcbe511101e18.tar.gz |
capability: add new ambient_capabilities_supported() helper
This new function reports whether ambient caps are available, and should
be quick because the result is cached.
Diffstat (limited to 'src/test/test-capability.c')
-rw-r--r-- | src/test/test-capability.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test-capability.c b/src/test/test-capability.c index 629bb63c81..8276c75987 100644 --- a/src/test/test-capability.c +++ b/src/test/test-capability.c @@ -205,6 +205,8 @@ int main(int argc, char *argv[]) { log_parse_environment(); log_open(); + log_info("have ambient caps: %s", yes_no(ambient_capabilities_supported())); + if (getuid() != 0) return EXIT_TEST_SKIP; |