[SSSD] [PATCH] SSSD: Add the options to specify a UID and GID to run as

Pavel Reichl preichl at redhat.com
Tue Oct 14 16:22:05 UTC 2014


On 10/13/2014 04:08 PM, Jakub Hrozek wrote:
> Hi,
>
> I guess I can safely send another round of patches that were already
> tested by Michal and me.
>
> The first patch adds new command line options --uid and --gid to all SSSD
> servers, making it possible to switch to another user ID if needed. So
> far all the servers still run as root.
>
> The other patches are trivial refactoring for unit tests (2 and 3). I
> don't like the #ifdefs in server.c, but I couldn't think of another
> way..
>
> The final patch is a unit test for server_setup, exercising different
> options.
>
>
> _______________________________________________
> sssd-devel mailing list
> sssd-devel at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/sssd-devel
I'm seeing this minor problem:

../../../../src/tests/cwrap/../../../src/util/domain_info_utils.c: In 
function ‘subdomain_enumerates’:
../../../../src/tests/cwrap/../../../src/util/domain_info_utils.c:77:9: 
error: ‘for’ loop initial declarations are only allowed in C99 mode
          for (int i=0; parent->sd_enumerate[i]; i++) {
          ^
../../../../src/tests/cwrap/../../../src/util/domain_info_utils.c:77:9: 
note: use option -std=c99 or -std=gnu99 to compile your code
make[3]: *** [../../../src/util/server_tests-domain_info_utils.o] Error 1


I attached patch that (applies on top of these patches) which resolves 
the problem for me. Feel free to squeeze it in.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20141014/7dfd5703/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-TESTS-fix-compilation-warning.patch
Type: text/x-patch
Size: 1301 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20141014/7dfd5703/attachment.bin>


More information about the sssd-devel mailing list