Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPA IPA Trust WIP #69

Open
wants to merge 119 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
a86ee64
Require OpenSSL >= 1.0.1
alexey-tikhonov Sep 18, 2024
67ba42c
pam: only set SYSDB_LOCAL_SMARTCARD_AUTH to 'true' but never to 'false'.
sumit-bose Sep 18, 2024
69f63f1
sdap: allow to provide user_map when looking up group memberships
sumit-bose Sep 6, 2024
5f5077a
ad: use default user_map when looking of host groups for GPO
sumit-bose Sep 6, 2024
f6ad182
SYSTEMD: chown gpo-cache as well
alexey-tikhonov Sep 20, 2024
823d787
SSH: sss_ssh_knownhosts must accept port numbers
aplopez Sep 20, 2024
0330ebe
CLIENT:PAM: replace deprecated `_pam_overwrite`
alexey-tikhonov Sep 23, 2024
312e0eb
Revert "ci: allow deprecated functions during build"
alexey-tikhonov Sep 18, 2024
10bf7ab
SPEC: use '/run/sssd' as a home dir for 'sssd' user
alexey-tikhonov Sep 24, 2024
ef2a618
tests: improving gpo tests to be run against ad and samba
Sep 26, 2024
3985624
CLIENT:PAM: avoid NULL deref
alexey-tikhonov Sep 30, 2024
60f282d
SPEC: keep 'sssd-polkit-rules' on RHEL9
alexey-tikhonov Sep 23, 2024
cb93196
fixed memory leak due to use popt incorrectly
xuraoqing Sep 18, 2024
3a64416
sdap: Log hint for ignore unreadable references
justin-stephenson Sep 18, 2024
b1bee78
tests: removing intg/test_sudo.py
Sep 5, 2024
4295e00
tests: removing intg/test_kcm.py
Sep 5, 2024
b4bca98
make_srpm: fallback to tar if git archive fails
pbrezina Sep 27, 2024
8be2172
conf: remove unused reconnection_retries
pbrezina Oct 3, 2024
1c91ea0
MONITOR: Link DbusConnection and sbus_connection
aplopez Sep 27, 2024
e0ec488
MONITOR: Set destructor for the right connection
aplopez Oct 7, 2024
263cb2e
sbus: terminate ongoing chained requests if backend is restarted
pbrezina Oct 3, 2024
c1434c1
rpm: drop the --remote argument from git-archive call
praiskup Oct 14, 2024
17c37e4
tests: Update ldap test to use journal utility.
jakub-vavra-cz Sep 27, 2024
36d8289
BE: Maintain the list of periodic tasks
scabrero Sep 4, 2024
423e5b9
WATCHDOG: Use a constant instead of the signal name
scabrero Sep 18, 2024
fae131a
WATCHDOG: Send SIGRTMIN+1 signal when clock shift is detected
scabrero Sep 4, 2024
07ce89e
BE: Handle SIGRTMIN+1 signal to reschedule periodic tasks
scabrero Sep 5, 2024
fdf7e75
MAN: Document SIGRTMIN+1 signal usage
scabrero Sep 5, 2024
c9026bf
Move 'nscd' helper functions out of 'utils'
alexey-tikhonov Oct 9, 2024
7f0f5a6
CONFDB: introduce helper to read a full list of configured services,
alexey-tikhonov Oct 9, 2024
28bb146
IFP: use new helper to retrieve services list
alexey-tikhonov Oct 9, 2024
59c48f7
socket_activated_responders: check confdb
alexey-tikhonov Oct 9, 2024
32e7616
socket_activated_responders: log to syslog instead of stdout
alexey-tikhonov Oct 9, 2024
272ee81
TESTS:INTG: 'implicit files domain' not supported
alexey-tikhonov Oct 9, 2024
dbf4763
CONFDB: don't hard fail in add_implicit_services()
alexey-tikhonov Oct 9, 2024
9bb7b92
CONFDB: mistype fix
alexey-tikhonov Oct 11, 2024
c265745
po: update translations
weblate Sep 2, 2024
f09a66c
po: update translations
Sep 24, 2024
2eef90a
po: fix sv language
pbrezina Oct 15, 2024
6ec5aa0
pot: update pot files
pbrezina Oct 15, 2024
217b3fa
Release sssd-2.10.0
pbrezina Oct 15, 2024
0e8e694
Update version in version.m4 to track the next release
pbrezina Oct 15, 2024
247797b
Tests: sss_ssh_knownhosts with port number
madhuriupadhye Sep 24, 2024
163b1e3
Tests: Mark builtwith for knownhosts tests
madhuriupadhye Oct 14, 2024
934ae04
tests: rm intg/test_sss_cache.py
Sep 19, 2024
7184541
ldap: add 'exop_force' value for ldap_pwmodify_mode
sumit-bose Sep 13, 2024
deefe9a
tests: add 'expo_force' tests
sumit-bose Sep 27, 2024
94e47c5
Test: Passkey test cases with diffferent auth_methods
madhuriupadhye Sep 20, 2024
4a7ab02
Tests: Add missing returncode to test_0004_bz1638295
jakub-vavra-cz Oct 2, 2024
cbe3b03
When using SPDX expression the booleans must be in all caps.
alexey-tikhonov Oct 15, 2024
b928dbe
Get rid of on-house MIN/MAX definitions
alexey-tikhonov Oct 15, 2024
ed666e9
tests: Unify packages available on client for ipa suites
jakub-vavra-cz Oct 16, 2024
a2e91d2
build: remove superfluous WITH_IFP leftover
jengelh Oct 18, 2024
510130e
man: sssd.conf update defaults for certmap maprule
spoore1 Oct 16, 2024
2b7915d
sssd: always print path when config object is rejected
jengelh Oct 16, 2024
d004e7b
ad: honor ad_use_ldaps setting with ad_machine_pw_renewal
santeri3700 Oct 15, 2024
6b22190
SPEC: require systemtap-sdt-dtrace on ELN
yselkowitz Oct 22, 2024
a822206
Missing 'dns_update_per_family' option
thalman Oct 21, 2024
42d1837
build: unbreak detection for x400Address
jengelh Oct 18, 2024
b84ced0
DEBUG: add 'debug_backtrace_enable' getter
alexey-tikhonov Oct 17, 2024
2300abb
UTILS: simplify / comment a bit better
alexey-tikhonov Oct 17, 2024
88b55de
DEBUG: propagate debug_backtrace_enabled to child processes
alexey-tikhonov Oct 17, 2024
8cdebfc
build: stop overriding CFLAGS
jengelh Oct 18, 2024
30a9803
INI: remove unused helpers
alexey-tikhonov Oct 23, 2024
1d19b8a
INI: stop using 'libini_config' for access check
alexey-tikhonov Oct 23, 2024
8472777
INI: relax config files checks
alexey-tikhonov Oct 23, 2024
518db32
Configuration: make sure /etc/sssd and everything
alexey-tikhonov Oct 24, 2024
d7c9770
INI: don't report used snippets in `sss_ini_add_snippets()`
alexey-tikhonov Oct 24, 2024
4cc62d4
SSSCTL: change error message to be more accurate
alexey-tikhonov Oct 25, 2024
60d369c
INI: add verbose error messages
alexey-tikhonov Oct 30, 2024
93eb073
build: fix spellos in configure.ac
jengelh Oct 18, 2024
2d0f048
chown() gpo cache recursively.
alexey-tikhonov Oct 30, 2024
7668205
SSH: sss_ssh_knownhosts must ignore DNS errors
aplopez Oct 28, 2024
3054970
tests: adding gpo customer test scenario to use the ldap attribute name
Sep 26, 2024
7a8da27
ipa: Check sudo command threshold correctly
justin-stephenson Nov 7, 2024
2d85f89
MAN: mistypes fixes
alexey-tikhonov Nov 5, 2024
2d408ed
pam_sss: add some missing cleanup calls.
sumit-bose Nov 1, 2024
8571d45
subdomains: check when going online
sumit-bose Oct 30, 2024
be0c232
tests: removing intg/ts_cache.py
Sep 9, 2024
d5b6484
tests: converting all the ldb cache tests to use one provider
Oct 21, 2024
56438ec
Fix bug in objectclass_matched()
ondrejv2 Nov 4, 2024
71430f7
SPEC: require OpenSSL >= 1.0.1
alexey-tikhonov Nov 7, 2024
ffec45b
ssh: do not use default_domain_suffix
sumit-bose Oct 4, 2024
fb91349
responders: deprecate default_domain_suffix option
sumit-bose Oct 30, 2024
9ee10f9
OPTS: Add the option for DP_OPT_DYNDNS_REFRESH_OFFSET
aplopez Nov 14, 2024
2c72834
TESTS: Also test default_dyndns_opts
aplopez Nov 14, 2024
b74fe65
SPEC: untie capabilities of different binaries
alexey-tikhonov Nov 7, 2024
7ce14e7
LDAP_CHILD: replace 'cap_dac_override' with 'cap_dac_read_search'
alexey-tikhonov Nov 7, 2024
942799d
LDAP_CHILD: don't require any capabilities besides 'cap_dac_read_search'
alexey-tikhonov Nov 8, 2024
5ef1efc
LDAP_CHILD: require only 'cap_dac_read_search=permitted'
alexey-tikhonov Nov 8, 2024
23d9c93
Describe current capabilities usage.
alexey-tikhonov Nov 9, 2024
507d2da
CLIENT: don't try to lookup `getservbyport(0, ...)`
alexey-tikhonov Nov 12, 2024
1f8040d
SSSDConfig: chown file to root:sssd
alexey-tikhonov Nov 8, 2024
9c4a51f
Tests: Test transformation of bash-ldap-id-ldap-auth netgroup
aborah-sudo Oct 16, 2024
3294cdb
CI: COPR: add c10s buildroot
alexey-tikhonov Nov 19, 2024
21c6280
'dtrace' was moved to a separate package on C10S as well
alexey-tikhonov Nov 15, 2024
a926f43
Tests: Reverse the condition and fail
aborah-sudo Nov 19, 2024
fce94ae
ldap_child: make sure invalid krb5 context is not used
sumit-bose Nov 21, 2024
7514309
Tests: Update sst to rhel-sst-idm-sssd for polarion.
jakub-vavra-cz Nov 25, 2024
0bb1364
analyzer: fix two crashes
justin-stephenson Nov 18, 2024
e4b2604
dyndns: collect nsupdate debug output
sumit-bose Nov 18, 2024
58a2fee
tests: adding system/tests/readme.rst as a quick primer
Nov 2, 2024
6040510
Tests: SSSD fails to store users if any of the requested attribute is…
aborah-sudo Nov 21, 2024
0981054
Tests: Add ssh to services for authentication with ssh tests.
jakub-vavra-cz Dec 2, 2024
7b855ab
Tests: Fix python black formation error
aborah-sudo Dec 3, 2024
fe26a93
Add DoT support for DNS updates
thalman Oct 23, 2024
1ca1b10
SYSDB: Store IPA trust type
justin-stephenson Apr 23, 2024
cdb0fd6
Rename struct ipa_ad_server_ctx, and add id_ctx union member
justin-stephenson Apr 24, 2024
ea85986
ipa: Make ipa_service_init() like ad_failover_init()
justin-stephenson Apr 26, 2024
caccfab
ad: Combine 1+2way trust options creation functions
justin-stephenson May 1, 2024
cdad441
ipa: Make ipa server subdomain functions generic
justin-stephenson Apr 22, 2024
87429d8
ipa: Add ipa subdomain provider initialization
justin-stephenson Apr 10, 2024
03bb520
ipa: Support ipa subdomain account info requests
justin-stephenson Apr 22, 2024
1423d24
ipa s2n: Remove check for SYSDB_UPN
justin-stephenson Apr 30, 2024
104daa8
ipa: Rename ipa_create_ad_1way_trust_ctx()
justin-stephenson May 1, 2024
6c89f9e
Handle missing SID for user private group
justin-stephenson Jul 8, 2024
816c4dd
Trust type Crash fix
justin-stephenson Jul 30, 2024
c1c31c0
ipa s2n: Ignore trusted IPA user private group
justin-stephenson Aug 9, 2024
007f3f1
AD: Remove unused AD_AT_TRUST_TYPE attribute
justin-stephenson Sep 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ jobs:
working-directory: x86_64
run: |
source ../contrib/fedora/bashrc_sssd
make CFLAGS+="$SSS_WARNINGS -Werror -Wno-error=deprecated-declarations"
make CFLAGS+="$SSS_WARNINGS -Werror"

- name: make check
shell: bash
working-directory: x86_64
run: |
source ../contrib/fedora/bashrc_sssd
make CFLAGS+="$SSS_WARNINGS -Werror -Wno-error=deprecated-declarations" check
make CFLAGS+="$SSS_WARNINGS -Werror" check

- name: make distcheck
shell: bash
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/copr_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
project: ${{ env.COPR_PROJECT }}
account: ${{ env.COPR_ACCOUNT }}

- name: Add buildroot repository to CentOS Stream
- name: Add buildroot repository to CentOS Streams
env:
coprcfg: ${{ steps.copr.outputs.coprcfg }}
run: |
Expand All @@ -99,6 +99,11 @@ jobs:
--repos 'https://kojihub.stream.centos.org/kojifiles/repos/c9s-build/latest/$basearch/' \
$COPR_ACCOUNT/$COPR_PROJECT/centos-stream-9-x86_64

# CentOS Stream 10
copr-cli --config "$coprcfg" edit-chroot \
--repos 'https://kojihub.stream.centos.org/kojifiles/repos/c10s-build/latest/$basearch/' \
$COPR_ACCOUNT/$COPR_PROJECT/centos-stream-10-x86_64

build:
runs-on: ubuntu-latest
needs: [prepare]
Expand Down
39 changes: 29 additions & 10 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,15 @@ ifp_systemdservice = SystemdService=sssd-ifp.service
condconfigexists = ConditionPathExists=\|/etc/sssd/sssd.conf\nConditionDirectoryNotEmpty=\|/etc/sssd/conf.d/

# Bounding set needs to list capabilities required by ldap/krb5/selinux_childs and sssd_pam, otherwise they can't gain it.
# Capabilities usage by binaries:
# - 'ldap_child': read keytab (dac_read_search)
# - 'krb5_child':
# - store TGT for a given user (set*id);
# - create path components of DIR:/FILE: cache, for example: /run/user/$UID (dac_override, chown)
# - read keytab (dac_read_search could be enough but dac_override due to above)
# If system doesn't need to support DIR:/FILE: then 'cap_chown' can be stripped and 'cap_dac_override' replaced with 'dac_read_search'
# - 'selinux_child': currently chown, dac_override, set*id -- to be narrowed
# - 'sssd_pam': read keytab in gss ops (dac_read_search)
capabilities = CapabilityBoundingSet= CAP_CHOWN CAP_DAC_OVERRIDE CAP_SETGID CAP_SETUID CAP_DAC_READ_SEARCH

if BUILD_CONF_SERVICE_USER_SUPPORT
Expand Down Expand Up @@ -137,7 +146,7 @@ ifp_non_root_owner_policy =
endif


AM_CFLAGS =
AM_CFLAGS = $(my_CFLAGS)
if WANT_AUX_INFO
AM_CFLAGS += -aux-info [email protected]
endif
Expand Down Expand Up @@ -633,7 +642,6 @@ SSSD_TOOLS_OBJ = \
src/tools/common/sss_tools.c \
src/tools/common/sss_process.c \
src/confdb/confdb_setup.c \
src/util/nscd.c \
$(NULL)

SSSD_LCL_TOOLS_OBJ = \
Expand Down Expand Up @@ -700,10 +708,10 @@ dist_noinst_HEADERS = \
src/sss_iface/sss_iface_sync.h \
src/sss_iface/sss_iface.h \
src/util/crypto/sss_crypto.h \
src/util/crypto/libcrypto/sss_openssl.h \
src/util/cert.h \
src/util/dlinklist.h \
src/util/debug.h \
src/util/memory_erase.h \
src/util/util.h \
src/util/util_errors.h \
src/util/safe-format-string.h \
Expand Down Expand Up @@ -986,6 +994,7 @@ SSS_CRYPT_SOURCES = src/util/crypto/libcrypto/crypto_base64.c \
src/util/crypto/libcrypto/crypto_prng.c \
src/util/atomic_io.c \
src/util/memory.c \
src/util/memory_erase.c \
$(NULL)
SSS_CRYPT_CFLAGS = $(CRYPTO_CFLAGS)
SSS_CRYPT_LIBS = $(CRYPTO_LIBS)
Expand Down Expand Up @@ -1265,6 +1274,7 @@ libsss_util_la_SOURCES = \
src/util/util_ext.c \
src/util/util_preauth.c \
src/util/memory.c \
src/util/memory_erase.c \
src/util/safe-format-string.c \
src/util/server.c \
src/util/signal.c \
Expand Down Expand Up @@ -1517,8 +1527,8 @@ endif
sssd_SOURCES = \
src/monitor/monitor.c \
src/monitor/monitor_bootstrap.c \
src/monitor/nscd.c \
src/confdb/confdb_setup.c \
src/util/nscd.c \
$(NULL)
sssd_LDADD = \
$(SSSD_LIBS) \
Expand Down Expand Up @@ -2003,6 +2013,7 @@ endif
if HAVE_SYSTEMD_UNIT
sssd_check_socket_activated_responders_SOURCES = \
src/tools/sssd_check_socket_activated_responders.c \
src/tools/common/sss_tools.c \
$(NULL)
sssd_check_socket_activated_responders_CFLAGS = \
$(AM_CFLAGS) \
Expand Down Expand Up @@ -2879,7 +2890,8 @@ dyndns_tests_SOURCES = \
$(SSSD_RESOLV_OBJ) \
src/tests/cmocka/common_mock_be.c \
src/tests/cmocka/test_dyndns.c \
src/providers/data_provider_opts.c
src/providers/data_provider_opts.c \
src/util/child_common.c
dyndns_tests_CFLAGS = \
$(AM_CFLAGS) \
$(CMOCKA_CFLAGS) \
Expand Down Expand Up @@ -3558,10 +3570,13 @@ test_ipa_subdom_server_SOURCES = \
src/tests/cmocka/common_mock_sdap.c \
src/tests/cmocka/common_mock_be.c \
src/tests/cmocka/common_mock_krb5.c \
src/tests/cmocka/data_provider/mock_dp.c \
src/tests/cmocka/test_ipa_subdomains_server.c \
src/providers/ipa/ipa_subdomains_server.c \
src/providers/ipa/ipa_subdomains_utils.c \
src/providers/ipa/ipa_common.c \
src/providers/ipa/ipa_opts.c \
src/providers/ipa/ipa_srv.c \
src/providers/ldap/ldap_common.c \
$(NULL)
test_ipa_subdom_server_CFLAGS = \
Expand Down Expand Up @@ -4169,6 +4184,7 @@ pam_sss_la_SOURCES = \
src/sss_client/sss_cli.h \
src/util/atomic_io.c \
src/util/authtok-utils.c \
src/util/memory_erase.c \
src/sss_client/sss_pam_macros.h \
src/sss_client/sss_pam_compat.h

Expand Down Expand Up @@ -4693,6 +4709,7 @@ krb5_child_SOURCES = \
src/util/find_uid.c \
src/util/atomic_io.c \
src/util/memory.c \
src/util/memory_erase.c \
src/util/authtok.c \
src/util/authtok-utils.c \
src/util/util.c \
Expand Down Expand Up @@ -4737,6 +4754,7 @@ ldap_child_SOURCES = \
src/util/sss_iobuf.c \
src/util/atomic_io.c \
src/util/memory.c \
src/util/memory_erase.c \
src/util/authtok.c \
src/util/authtok-utils.c \
src/util/util.c \
Expand Down Expand Up @@ -4886,6 +4904,7 @@ oidc_child_SOURCES = \
src/oidc_child/oidc_child_json.c \
src/util/atomic_io.c \
src/util/memory.c \
src/util/memory_erase.c \
src/util/strtonum.c \
$(NULL)
oidc_child_CFLAGS = \
Expand Down Expand Up @@ -5297,7 +5316,8 @@ edit_cmd = $(SED) \
-e 's|@supplementary_groups[@]|$(supplementary_groups)|g' \
-e 's|@sssdconfdir[@]|$(sssdconfdir)|g' \
-e 's|@secdbpath[@]|$(secdbpath)|g' \
-e 's|@dbpath[@]|$(dbpath)|g'
-e 's|@dbpath[@]|$(dbpath)|g' \
-e 's|@gpocachepath[@]|$(gpocachepath)|g'

replace_script = \
@rm -f $@ [email protected]; \
Expand Down Expand Up @@ -5562,14 +5582,13 @@ else
$(MKDIR_P) $(DESTDIR)$(initdir)
endif

CHILD_CAPABILITIES="cap_chown,cap_dac_override,cap_setuid,cap_setgid=ep"
if SSSD_USER
-chgrp $(SSSD_USER) $(DESTDIR)$(sssdlibexecdir)/ldap_child
chmod 750 $(DESTDIR)$(sssdlibexecdir)/ldap_child
-$(SETCAP) $(CHILD_CAPABILITIES) $(DESTDIR)$(sssdlibexecdir)/ldap_child
-$(SETCAP) cap_dac_read_search=p $(DESTDIR)$(sssdlibexecdir)/ldap_child
-chgrp $(SSSD_USER) $(DESTDIR)$(sssdlibexecdir)/krb5_child
chmod 750 $(DESTDIR)$(sssdlibexecdir)/krb5_child
-$(SETCAP) $(CHILD_CAPABILITIES) $(DESTDIR)$(sssdlibexecdir)/krb5_child
-$(SETCAP) cap_chown,cap_dac_override,cap_setuid,cap_setgid=ep $(DESTDIR)$(sssdlibexecdir)/krb5_child
-chgrp $(SSSD_USER) $(DESTDIR)$(sssdlibexecdir)/proxy_child
chmod 750 $(DESTDIR)$(sssdlibexecdir)/proxy_child
-chgrp $(SSSD_USER) $(DESTDIR)$(sssdlibexecdir)/sssd_pam
Expand All @@ -5578,7 +5597,7 @@ if SSSD_USER
if BUILD_SELINUX
-chgrp $(SSSD_USER) $(DESTDIR)$(sssdlibexecdir)/selinux_child
chmod 750 $(DESTDIR)$(sssdlibexecdir)/selinux_child
-$(SETCAP) $(CHILD_CAPABILITIES) $(DESTDIR)$(sssdlibexecdir)/selinux_child
-$(SETCAP) cap_chown,cap_dac_override,cap_setuid,cap_setgid=ep $(DESTDIR)$(sssdlibexecdir)/selinux_child
endif
endif

Expand Down
16 changes: 8 additions & 8 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ m4_ifdef([AC_USE_SYSTEM_EXTENSIONS],
[AC_USE_SYSTEM_EXTENSIONS],
[AC_GNU_SOURCE])

CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
my_CFLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
AC_SUBST([my_CFLAGS])


AM_INIT_AUTOMAKE([-Wall -Wno-portability foreign subdir-objects tar-pax
Expand Down Expand Up @@ -187,7 +188,6 @@ WITH_SUBID_LIB_PATH
WITH_PASSKEY
WITH_SSH
WITH_SSH_KNOWN_HOSTS_PROXY
WITH_IFP
WITH_LIBSIFP
WITH_SYSLOG
WITH_SAMBA
Expand Down Expand Up @@ -300,9 +300,9 @@ AS_IF([! $PKG_CONFIG --atleast-version 1.0.0 dbus-1], [
])

AS_IF([test x$has_dbus != xno], [
SAFE_LIBS="$LIBS"
SAVED_LIBS="$LIBS"
LIBS="$DBUS_LIBS"
SAFE_CFLAGS=$CFLAGS
SAVED_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS $DBUS_CFLAGS"

AC_CHECK_FUNC([dbus_watch_get_unix_fd],
Expand All @@ -313,8 +313,8 @@ AS_IF([test x$has_dbus != xno], [
[],
[ #include <dbus/dbus.h> ])

LIBS="$SAFE_LIBS"
CFLAGS=$SAFE_CFLAGS
LIBS="$SAVED_LIBS"
CFLAGS=$SAVED_CFLAGS
])

# work around a bug in cov-build from Coverity
Expand Down Expand Up @@ -479,7 +479,7 @@ AS_IF([test x"$sss_cv_attribute_warn_unused_result" = xyes], [
[whether compiler supports __attribute__((warn_unused_result))])
])

SAFE_CFLAGS=$CFLAGS
SAVED_CFLAGS=$CFLAGS
CFLAGS="-Werror"
AC_CACHE_CHECK(
[whether compiler supports __attribute__((fallthrough))],
Expand All @@ -505,7 +505,7 @@ AC_CACHE_CHECK(
sss_cv_attribute_fallthrough_val="((void)0)"
])
])
CFLAGS=$SAFE_CFLAGS
CFLAGS=$SAVED_CFLAGS

AC_DEFINE_UNQUOTED(
[SSS_ATTRIBUTE_FALLTHROUGH],
Expand Down
6 changes: 6 additions & 0 deletions contrib/ci/deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ if [[ "$DISTRO_BRANCH" == -redhat-* ]]; then
libcap-devel
)

if [[ "$DISTRO_BRANCH" == -redhat-fedora-4[1-9]* ||
"$DISTRO_BRANCH" == -redhat-redhatenterprise*-10.*- ||
"$DISTRO_BRANCH" == -redhat-centos*-10*- ]]; then
DEPS_LIST+=(systemtap-sdt-dtrace)
fi

if [[ "$DISTRO_BRANCH" == -redhat-fedora-4[0-9]* ||
"$DISTRO_BRANCH" == -redhat-fedora-3[7-9]* ||
"$DISTRO_BRANCH" == -redhat-redhatenterprise*-9.*- ||
Expand Down
18 changes: 14 additions & 4 deletions contrib/fedora/make_srpm.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -x

# Authors:
# Lukas Slebodnik <[email protected]>
Expand Down Expand Up @@ -166,10 +166,20 @@ sed -e "s/@PACKAGE_NAME@/$PACKAGE_NAME/" \
> "$RPMBUILD/SPECS/$PACKAGE_NAME.spec"

NAME="$PACKAGE_NAME-$PACKAGE_VERSION"
TARBALL="$RPMBUILD/SOURCES/$NAME.tar.gz"

git archive --format=tar --prefix="$NAME"/ \
--remote="file://$SRC_DIR" \
HEAD \
| gzip > "$RPMBUILD/SOURCES/$NAME.tar.gz"
HEAD | gzip > "$TARBALL"

# fallback to tar if git archive failed
# tar may include more files so git archive is preferred
tar -tzf "$TARBALL" &> /dev/null
if [ $? -ne 0 ]; then
rm -f "$TARBALL"
pushd "$SRC_DIR"
tar -cvzf "$TARBALL" --transform "s,^,$NAME/," *
popd
fi

cp "$SRC_DIR"/contrib/*.patch "$RPMBUILD/SOURCES" 2>/dev/null
add_patches "$RPMBUILD/SPECS/$PACKAGE_NAME.spec" \
Expand Down
Loading
Loading