diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2017-03-21 13:25:11 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2017-03-27 09:59:03 +0200 |
commit | 2b5518eeaacc6245cfa77ee4a7086f16208060fc (patch) | |
tree | 82646fc3be5f95416d8bbfd84c93fd8a1f32c8c1 /Makefile.am | |
parent | 35c9dfe9ba78d3a635cd1af0fb6349ba44344623 (diff) | |
download | sssd-2b5518eeaacc6245cfa77ee4a7086f16208060fc.tar.gz sssd-2b5518eeaacc6245cfa77ee4a7086f16208060fc.tar.xz sssd-2b5518eeaacc6245cfa77ee4a7086f16208060fc.zip |
KCM: Queue requests by the same UID
In order to avoid race conditions, we queue requests towards the KCM
responder coming from the same client UID.
Reviewed-by: Michal Židek <mzidek@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index e9eaa312c..91afdd669 100644 --- a/Makefile.am +++ b/Makefile.am @@ -304,7 +304,10 @@ non_interactive_cmocka_based_tests += test_inotify endif # HAVE_INOTIFY if BUILD_KCM -non_interactive_cmocka_based_tests += test_kcm_json +non_interactive_cmocka_based_tests += \ + test_kcm_json \ + test_kcm_queue \ + $(NULL) endif # BUILD_KCM if BUILD_SAMBA @@ -1501,6 +1504,7 @@ sssd_kcm_SOURCES = \ src/responder/kcm/kcmsrv_ccache_json.c \ src/responder/kcm/kcmsrv_ccache_secrets.c \ src/responder/kcm/kcmsrv_ops.c \ + src/responder/kcm/kcmsrv_op_queue.c \ src/util/sss_sockets.c \ src/util/sss_krb5.c \ src/util/sss_iobuf.c \ @@ -3402,6 +3406,21 @@ test_kcm_json_LDADD = \ $(SSSD_INTERNAL_LTLIBS) \ libsss_test_common.la \ $(NULL) + +test_kcm_queue_SOURCES = \ + src/tests/cmocka/test_kcm_queue.c \ + src/responder/kcm/kcmsrv_op_queue.c \ + $(NULL) +test_kcm_queue_CFLAGS = \ + $(AM_CFLAGS) \ + $(NULL) +test_kcm_queue_LDADD = \ + $(CMOCKA_LIBS) \ + $(SSSD_LIBS) \ + $(SSSD_INTERNAL_LTLIBS) \ + libsss_test_common.la \ + $(NULL) + endif # BUILD_KCM endif # HAVE_CMOCKA |