9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashovdist_noinst_DATA = \
d82741b1a8ada493ca74efa5d5c8b731412d035cLukas Slebodnik __init__.py \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov config.py.m4 \
4e17c050dac8f2c6e2d278c4c4a27001c8d7d164Jakub Hrozek util.py \
1921d739ff7b028baa591272cc8969e330c8f872Jakub Hrozek sssd_nss.py \
38b07019861240cf5107f5d51fc0027519e21619Lukas Slebodnik sssd_id.py \
b8946a5dbde01a87465de707092716349a35248bJakub Hrozek sssd_ldb.py \
b4633e73067d7bf3b0dbaf212569c123de88f306Lukas Slebodnik sssd_netgroup.py \
8578fba1500d43ad9632784462c255bf8bb360feJakub Hrozek sssd_passwd.py \
3728db53ac32da51fcaae96b132e8e56ebbaebfaJakub Hrozek sssd_group.py \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov ds.py \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov ds_openldap.py \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov ent.py \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov ent_test.py \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov ldap_ent.py \
8d1dcb6af723f2968410c4b088d06d63d02b4feaPavel Reichl ldap_local_override_test.py \
586f512ab8b6e5a03349598846141f43c1d505b8Michal Židek test_local_domain.py \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov util.py \
1f4dc2971bac4ceb0803b18f86a746656a0f1990Lukas Slebodnik test_enumeration.py \
49a5412cbc98e630de17359c29cb8d6ce0e16168Lukas Slebodnik test_ldap.py \
a2c10cf31d14bac598f5cd008973375c3f9575a6Lukas Slebodnik test_memory_cache.py \
53a4219e2f51cd0443931aa931505bf0b4bf5a45Nikolai Kondrashov test_session_recording.py \
b8946a5dbde01a87465de707092716349a35248bJakub Hrozek test_ts_cache.py \
05457ed0e399aaacc919b7aacee5d8210e1c1072Petr Cech test_netgroup.py \
db0982c52294ee5ea08ed242d27660783fde29cdJakub Hrozek secrets.py \
db0982c52294ee5ea08ed242d27660783fde29cdJakub Hrozek test_secrets.py \
35ecfab87a24031e55798b22975e02832ee0f2adMichal Židek test_sssctl.py \
8bdb8c0970dc9acb5b0a54dab0bae306ca964944Jakub Hrozek files_ops.py \
8bdb8c0970dc9acb5b0a54dab0bae306ca964944Jakub Hrozek test_files_ops.py \
8bdb8c0970dc9acb5b0a54dab0bae306ca964944Jakub Hrozek test_files_provider.py \
0700118d8388c38b8cb28279510b206b76a3a411Jakub Hrozek kdc.py \
0700118d8388c38b8cb28279510b206b76a3a411Jakub Hrozek krb5utils.py \
0700118d8388c38b8cb28279510b206b76a3a411Jakub Hrozek test_kcm.py \
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose test_pac_responder.py \
36df33cd44774a5b5eab52ab222bcd3240b3ca5aLukas Slebodnik data/ad_data.ldif \
36df33cd44774a5b5eab52ab222bcd3240b3ca5aLukas Slebodnik data/ad_schema.ldif \
da7a3c347dd630085839afa7ec245ee9d36f6ce2Lukas Slebodnik test_pysss_nss_idmap.py \
0df79781d78973e5462dbef1e89d8fd6001da05cLukas Slebodnik test_infopipe.py \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov $(NULL)
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov
52ae4eeba9c97c0254a2025ec3b5ffe90588b775Lukas SlebodnikEXTRA_DIST = data/cwrap-dbus-system.conf.in
52ae4eeba9c97c0254a2025ec3b5ffe90588b775Lukas Slebodnik
52ae4eeba9c97c0254a2025ec3b5ffe90588b775Lukas Slebodnikdbussysconfdir = $(sysconfdir)/dbus-1
52ae4eeba9c97c0254a2025ec3b5ffe90588b775Lukas Slebodnikdbusservicedir = $(datadir)/dbus-1/system-services
52ae4eeba9c97c0254a2025ec3b5ffe90588b775Lukas Slebodnik
52ae4eeba9c97c0254a2025ec3b5ffe90588b775Lukas Slebodnikif INTG_BUILD
e64696e1fab85c42aaeda65ddf49ee1b7e3f07e1Lukas Slebodniklib_LTLIBRARIES = getsockopt_wrapper.la
e64696e1fab85c42aaeda65ddf49ee1b7e3f07e1Lukas Slebodnik
e64696e1fab85c42aaeda65ddf49ee1b7e3f07e1Lukas Slebodnikgetsockopt_wrapper_la_SOURCES = \
e64696e1fab85c42aaeda65ddf49ee1b7e3f07e1Lukas Slebodnik getsockopt_wrapper.c
e64696e1fab85c42aaeda65ddf49ee1b7e3f07e1Lukas Slebodnikgetsockopt_wrapper_la_CFLAGS = \
e64696e1fab85c42aaeda65ddf49ee1b7e3f07e1Lukas Slebodnik $(AM_CFLAGS)
e64696e1fab85c42aaeda65ddf49ee1b7e3f07e1Lukas Slebodnikgetsockopt_wrapper_la_LIBADD = \
e64696e1fab85c42aaeda65ddf49ee1b7e3f07e1Lukas Slebodnik $(LIBADD_DL) \
e64696e1fab85c42aaeda65ddf49ee1b7e3f07e1Lukas Slebodnik $(NULL)
e64696e1fab85c42aaeda65ddf49ee1b7e3f07e1Lukas Slebodnikgetsockopt_wrapper_la_LDFLAGS = \
e64696e1fab85c42aaeda65ddf49ee1b7e3f07e1Lukas Slebodnik -avoid-version \
e64696e1fab85c42aaeda65ddf49ee1b7e3f07e1Lukas Slebodnik -module
e64696e1fab85c42aaeda65ddf49ee1b7e3f07e1Lukas Slebodnik
52ae4eeba9c97c0254a2025ec3b5ffe90588b775Lukas Slebodnikdist_dbussysconf_DATA = cwrap-dbus-system.conf
52ae4eeba9c97c0254a2025ec3b5ffe90588b775Lukas Slebodnik
52ae4eeba9c97c0254a2025ec3b5ffe90588b775Lukas Slebodnikinstall-data-hook:
52ae4eeba9c97c0254a2025ec3b5ffe90588b775Lukas Slebodnik $(MKDIR_P) $(DESTDIR)$(runstatedir)/dbus
52ae4eeba9c97c0254a2025ec3b5ffe90588b775Lukas Slebodnik $(MKDIR_P) $(DESTDIR)$(sysconfdir)/session.d
52ae4eeba9c97c0254a2025ec3b5ffe90588b775Lukas Slebodnik
52ae4eeba9c97c0254a2025ec3b5ffe90588b775Lukas Slebodnikendif
52ae4eeba9c97c0254a2025ec3b5ffe90588b775Lukas Slebodnik
52ae4eeba9c97c0254a2025ec3b5ffe90588b775Lukas Slebodnikcwrap-dbus-system.conf: data/cwrap-dbus-system.conf.in Makefile
52ae4eeba9c97c0254a2025ec3b5ffe90588b775Lukas Slebodnik $(SED) -e "s!@runstatedir[@]!$(runstatedir)!" \
52ae4eeba9c97c0254a2025ec3b5ffe90588b775Lukas Slebodnik -e "s!@dbusservicedir[@]!$(dbusservicedir)!" \
52ae4eeba9c97c0254a2025ec3b5ffe90588b775Lukas Slebodnik $< > $@
52ae4eeba9c97c0254a2025ec3b5ffe90588b775Lukas Slebodnik
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashovconfig.py: config.py.m4
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov m4 -D "prefix=\`$(prefix)'" \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov -D "sysconfdir=\`$(sysconfdir)'" \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov -D "dbpath=\`$(dbpath)'" \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov -D "pidpath=\`$(pidpath)'" \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov -D "logpath=\`$(logpath)'" \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov -D "mcpath=\`$(mcpath)'" \
db0982c52294ee5ea08ed242d27660783fde29cdJakub Hrozek -D "secdbpath=\`$(secdbpath)'" \
db0982c52294ee5ea08ed242d27660783fde29cdJakub Hrozek -D "libexecpath=\`$(libexecdir)'" \
db0982c52294ee5ea08ed242d27660783fde29cdJakub Hrozek -D "runstatedir=\`$(runstatedir)'" \
91b0592cdab22915dff27ceae6d8e49c608aea4aJakub Hrozek -D "abs_builddir=\`$(abs_builddir)'" \
53a4219e2f51cd0443931aa931505bf0b4bf5a45Nikolai Kondrashov -D "session_recording_shell=\`$(session_recording_shell)'" \
a3bed9df5a47bfc84b82341f0f7e693e2b14a67aLukas Slebodnik -D "py2execdir=\`$(py2execdir)'" \
a3bed9df5a47bfc84b82341f0f7e693e2b14a67aLukas Slebodnik -D "py3execdir=\`$(py3execdir)'" \
a3bed9df5a47bfc84b82341f0f7e693e2b14a67aLukas Slebodnik -D "python2dir=\`$(python2dir)'" \
a3bed9df5a47bfc84b82341f0f7e693e2b14a67aLukas Slebodnik -D "python3dir=\`$(python3dir)'" \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov $< > $@
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashovroot:
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov : "Create directory for emulated root's D-Bus cookies."
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov : "See http://dbus.freedesktop.org/doc/dbus-specification.html#auth-mechanisms"
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov $(MKDIR_P) -m 0700 root/.dbus-keyrings
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashovpasswd: root
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov echo "root:x:0:0:root:$(abs_builddir)/root:/bin/bash" > $@
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashovgroup:
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov echo "root:x:0:" > $@
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai KondrashovCLEANFILES=config.py config.pyc passwd group
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashovclean-local:
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov rm -Rf root
52ae4eeba9c97c0254a2025ec3b5ffe90588b775Lukas Slebodnik rm -f $(builddir)/cwrap-dbus-system.conf
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashovintgcheck-installed: config.py passwd group
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov pipepath="$(DESTDIR)$(pipepath)"; \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov if test $${#pipepath} -gt 80; then \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov echo "error: Pipe directory path too long," \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov "D-Bus won't be able to open sockets" >&2; \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov exit 1; \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov fi
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov set -e; \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov cd "$(abs_srcdir)"; \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov nss_wrapper=$$(pkg-config --libs nss_wrapper); \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov uid_wrapper=$$(pkg-config --libs uid_wrapper); \
82c36227e36de155b13e6eb7cfa3e80a25774157Lukas Slebodnik unset HOME; \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov PATH="$$(dirname -- $(SLAPD)):$$PATH" \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov PATH="$(DESTDIR)$(sbindir):$(DESTDIR)$(bindir):$$PATH" \
841bcb5e1f66bb9c41e1884a2ab1dae654def13eLukas Slebodnik PATH="$$PATH:$(abs_builddir):$(abs_srcdir)" \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov PYTHONPATH="$(abs_builddir):$(abs_srcdir)" \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov LDB_MODULES_PATH="$(DESTDIR)$(ldblibdir)" \
f75ba99fc8dd64e45af2f642d9fb7660860fd28fLukas Slebodnik NON_WRAPPED_UID=$$(id -u) \
e64696e1fab85c42aaeda65ddf49ee1b7e3f07e1Lukas Slebodnik LD_PRELOAD="$(libdir)/getsockopt_wrapper.so:$$nss_wrapper:$$uid_wrapper" \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov NSS_WRAPPER_PASSWD="$(abs_builddir)/passwd" \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov NSS_WRAPPER_GROUP="$(abs_builddir)/group" \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov NSS_WRAPPER_MODULE_SO_PATH="$(DESTDIR)$(nsslibdir)/libnss_sss.so.2" \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov NSS_WRAPPER_MODULE_FN_PREFIX="sss" \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov UID_WRAPPER=1 \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov UID_WRAPPER_ROOT=1 \
e64696e1fab85c42aaeda65ddf49ee1b7e3f07e1Lukas Slebodnik DBUS_SOCK_DIR="$(DESTDIR)$(runstatedir)/dbus/" \
e64696e1fab85c42aaeda65ddf49ee1b7e3f07e1Lukas Slebodnik DBUS_SESSION_BUS_ADDRESS="unix:path=$$DBUS_SOCK_DIR/fake_socket" \
e64696e1fab85c42aaeda65ddf49ee1b7e3f07e1Lukas Slebodnik DBUS_SYSTEM_BUS_ADDRESS="unix:path=$$DBUS_SOCK_DIR/system_bus_socket" \
e64696e1fab85c42aaeda65ddf49ee1b7e3f07e1Lukas Slebodnik DBUS_SYSTEM_BUS_DEFAULT_ADDRESS="$$DBUS_SYSTEM_BUS_ADDRESS" \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov fakeroot $(PYTHON2) $(PYTEST) -v --tb=native $(INTGCHECK_PYTEST_ARGS) .
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov rm -f $(DESTDIR)$(logpath)/*