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.
This commit is contained in:
Lennart Poettering
2017-08-10 15:02:50 +02:00
parent 6067611a08
commit 39f608e4b0
3 changed files with 19 additions and 0 deletions
+2
View File
@@ -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;