Skip to content

Commit

Permalink
DON'T COMMIT
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-tikhonov committed Jul 29, 2024
1 parent c5eb3f1 commit fc1714f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/monitor/monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -2056,6 +2056,18 @@ int main(int argc, const char *argv[])
goto out;
}

gid_t supp_gids[100];
int supp_gids_size;
supp_gids_size = getgroups(100, supp_gids);
sss_log(SSS_LOG_ALERT,
"Started under uid=%"SPRIuid" (euid=%"SPRIuid") : "
"gid=%"SPRIgid" (egid=%"SPRIgid") supplementary gid = %"SPRIuid", %"SPRIuid
" and following capabilities:\n%s",
uid, euid, gid, egid,
(supp_gids_size > 0) ? supp_gids[0] : 0,
(supp_gids_size > 1) ? supp_gids[1] : 0,
initial_caps ? initial_caps : " (nothing)\n");

#ifndef SSSD_NON_ROOT_USER
/* Non-root service user support isn't built. */
/* SSSD should run under root */
Expand Down
3 changes: 3 additions & 0 deletions src/tests/system/tests/test_passkey.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ def test_passkey__su_user(client: Client, provider: GenericProvider, moduledatad

client.sssd.start(service_user="root")

service_file_content = client.host.ssh.run("systemctl cat sssd.service").stdout
client.sssd.logger.info("\n".join(service_file_content))

assert client.auth.su.passkey(
username="user1",
pin=123456,
Expand Down

0 comments on commit fc1714f

Please sign in to comment.