Skip to content

Example of minimal / container oriented SSSD build#8391

Draft
alexey-tikhonov wants to merge 3 commits intoSSSD:masterfrom
alexey-tikhonov:containers
Draft

Example of minimal / container oriented SSSD build#8391
alexey-tikhonov wants to merge 3 commits intoSSSD:masterfrom
alexey-tikhonov:containers

Conversation

@alexey-tikhonov
Copy link
Copy Markdown
Member

@alexey-tikhonov alexey-tikhonov commented Jan 20, 2026

This example can be used as inspiration for how to build a tailored SSSD package suitable for container use cases.

Patch containers friendly ./configure settings excludes features typically unused within a container, and patch build and package SSSD without any file capabilities removes all capabilities (for a price described here) to cater for a case of a restricted profile.

Note that a special build isn't always necessarily and depending on a specific case, stock package might be used as well.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request provides an example of a minimal, container-oriented SSSD build. The changes are extensive and consistently applied across Makefile.am, configure.ac scripts, and the RPM spec file. Key changes include switching the logging backend to stderr, removing hardcoded file capabilities, and disabling integration with systemd, SELinux, netlink, and systemtap. These modifications are logical for creating a stripped-down SSSD build suitable for container environments, reducing the image size and runtime dependencies. The implementation appears correct and internally consistent.

@alexey-tikhonov
Copy link
Copy Markdown
Member Author

An example of a Containerfile to build a container on top of this PR could be:

FROM quay.io/fedora/fedora-minimal:rawhide

RUN dnf5 --nodocs -y install --setopt=install_weak_deps=False 'dnf5-command(copr)' && \
    dnf5 -y copr enable packit/SSSD-sssd-8391 fedora-rawhide-x86_64 && \
    dnf5 --nodocs -y install --setopt=install_weak_deps=False sssd-ldap sssd-krb5 && \
    dnf5 -y copr remove packit/SSSD-sssd-8391 && \
    dnf5 -y remove dnf5-plugins && \
    dnf5 clean all

Note that if 'sssd-ipa' or 'sssd-ad' is being used on a minimal image without 'systemd', it's recommended to install 'systemd-standalone-tmpfiles' first otherwise Samba dependencies might pull in entire 'systemd'.

Those depends on 'systemd' integration.
 - don't build 'systemtap' support
 - don't build 'systemd' integration
 - build '--with-syslog=stderr'
 - don't build 'libnl' support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sssd container support

1 participant