int main(int argc, char *argv[]) { int r; bool run_ambient; log_parse_environment(); log_open(); if (getuid() != 0) return EXIT_TEST_SKIP; r = setup_tests(&run_ambient); if (r < 0) return -r; show_capabilities(); test_drop_privileges(); test_update_inherited_set(); fork_test(test_have_effective_cap); if (run_ambient) fork_test(test_set_ambient_caps); return 0; }
int main(int argc, char *argv[]) { int r; log_parse_environment(); log_open(); if (getuid() != 0) return EXIT_TEST_SKIP; r = setup_tests(); if (r < 0) return -r; show_capabilities(); test_drop_privileges(); fork_test(test_have_effective_cap); return 0; }