diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2014-10-07 11:30:01 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-10-22 15:44:17 +0200 |
commit | 5960687483a5d3d99093c9d6ab64e11c9bde7f7b (patch) | |
tree | e5b06570880583f579635b7112eae16dee235ed5 /src/tests | |
parent | a10ac1d0a7210def232205a48c53a075930e82f6 (diff) | |
download | sssd-5960687483a5d3d99093c9d6ab64e11c9bde7f7b.tar.gz sssd-5960687483a5d3d99093c9d6ab64e11c9bde7f7b.tar.xz sssd-5960687483a5d3d99093c9d6ab64e11c9bde7f7b.zip |
SBUS: Chown the sbus socket if needed
When setting up the sbus server, we might need to chown the sbus socket
to make sure non-root peers, running as the SSSD user are able to access
the file.
Reviewed-by: Pavel Reichl <preichl@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/common_dbus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/common_dbus.c b/src/tests/common_dbus.c index 3117c080d..1b0ae88dc 100644 --- a/src/tests/common_dbus.c +++ b/src/tests/common_dbus.c @@ -112,8 +112,8 @@ mock_server_child(void *data) ctx = talloc_new(NULL); loop = tevent_context_init(ctx); - verify_eq (sbus_new_server(ctx, loop, mock->dbus_address, false, - &server, on_accept_connection, mock), EOK); + verify_eq (sbus_new_server(ctx, loop, mock->dbus_address, geteuid(), getegid(), + false, &server, on_accept_connection, mock), EOK); tevent_add_fd(loop, ctx, mock->sync_fds[1], TEVENT_FD_READ, on_sync_fd_written, &stop_server); |