#3890 SSSD changes the memory cache file ownership away from the SSSD user when running as root
Closed: Fixed 5 months ago by jhrozek. Opened 8 months ago by jhrozek.

In case SSSD is compiled --with-sssd-user but run as root (which is the default on RHEL and derivatives), then the memory cache will be owned by the user that sssd_nss runs as, so root.

This conflicts with the packaging which specifies sssd.sssd as the owner. And in turn, this means that users can't reliably assess the package integrity using rpm -V.

We can't just switch the file ownership as this would just revert the problem. But we can chown the memory cache files to sssd.sssd on runtime, provided that the nss process would be a member of the sssd group and the memory cache files were writable by the group.


Metadata Update from @jhrozek:
- Issue assigned to jhrozek

8 months ago

Metadata Update from @jhrozek:
- Issue tagged with: PR

8 months ago

Not closing yet because we still need a 1.16 backport

Metadata Update from @jhrozek:
- Issue set to the milestone: SSSD 2.1

7 months ago

Metadata Update from @jhrozek:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1576524

7 months ago

Metadata Update from @jhrozek:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

5 months ago

Login to comment on this ticket.

Metadata