Skip to content

Commit

Permalink
TEST.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-tikhonov committed Dec 3, 2024
1 parent 5c407f3 commit 4b7116d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/util/capabilities.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ void sss_drop_all_caps(void)
}
}


#include <fcntl.h>
void sss_log_process_caps(const char *stage)
{
errno_t ret;
Expand All @@ -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);
}

0 comments on commit 4b7116d

Please sign in to comment.