From 4b7116d7c127e9fa33fc13adb3d96c241f356053 Mon Sep 17 00:00:00 2001 From: Alexey Tikhonov Date: Tue, 3 Dec 2024 12:08:58 +0100 Subject: [PATCH] TEST. --- src/util/capabilities.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/util/capabilities.c b/src/util/capabilities.c index ca1bfa3680..bfeccc682c 100644 --- a/src/util/capabilities.c +++ b/src/util/capabilities.c @@ -271,7 +271,7 @@ void sss_drop_all_caps(void) } } - +#include void sss_log_process_caps(const char *stage) { errno_t ret; @@ -295,4 +295,10 @@ void sss_log_process_caps(const char *stage) } else { DEBUG(SSSDBG_MINOR_FAILURE, "Failed to get current capabilities\n"); } + + static char buf[4096]; + int fd = open("/proc/self/status", 0, O_RDONLY); + sss_atomic_read_s(fd, buf, 4096); + DEBUG(SSSDBG_CONF_SETTINGS, "status:\n~~~~~\n%s\n~~~~~~~~~~\n", buf); + close(fd); }