Skip to content

Commit

Permalink
SYSTEMD: fix missing 'g+x' on /etc/sssd and subdirs
Browse files Browse the repository at this point in the history
for rpm-ostree based systems
  • Loading branch information
alexey-tikhonov committed Jan 2, 2025
1 parent 1c1945d commit e9b1e9f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sysv/systemd/sssd-kcm.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ Also=sssd-kcm.socket
Environment=DEBUG_LOGGER=--logger=files
ExecStartPre=+-/bin/chown -f -R -H root:@SSSD_USER@ @sssdconfdir@
ExecStartPre=+-/bin/chmod -f -R g+r @sssdconfdir@
ExecStartPre=+-/bin/chmod -f g+x @sssdconfdir@
ExecStartPre=+-/bin/chmod -f g+x @sssdconfdir@/conf.d
ExecStartPre=+-/bin/chmod -f g+x @sssdconfdir@/pki
ExecStartPre=+-/bin/sh -c "/bin/chown -f -h @SSSD_USER@:@SSSD_USER@ @secdbpath@/*.ldb"
ExecStartPre=+-/bin/chown -f -h @SSSD_USER@:@SSSD_USER@ @logpath@/sssd_kcm.log
ExecStart=@libexecdir@/sssd/sssd_kcm ${DEBUG_LOGGER}
Expand Down
3 changes: 3 additions & 0 deletions src/sysv/systemd/sssd.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ Environment=DEBUG_LOGGER=--logger=files
EnvironmentFile=-@environment_file@
ExecStartPre=+-/bin/chown -f -R -H root:@SSSD_USER@ @sssdconfdir@
ExecStartPre=+-/bin/chmod -f -R g+r @sssdconfdir@
ExecStartPre=+-/bin/chmod -f g+x @sssdconfdir@
ExecStartPre=+-/bin/chmod -f g+x @sssdconfdir@/conf.d
ExecStartPre=+-/bin/chmod -f g+x @sssdconfdir@/pki
ExecStartPre=+-/bin/sh -c "/bin/chown -f -h @SSSD_USER@:@SSSD_USER@ @dbpath@/*.ldb"
ExecStartPre=+-/bin/chown -f -R -h @SSSD_USER@:@SSSD_USER@ @gpocachepath@
ExecStartPre=+-/bin/sh -c "/bin/chown -f -h @SSSD_USER@:@SSSD_USER@ @logpath@/*.log"
Expand Down

0 comments on commit e9b1e9f

Please sign in to comment.