Skip to content

Commit

Permalink
ensure that the sshd privilege separation directory exists
Browse files Browse the repository at this point in the history
Adds /usr/lib/tmpfiles.d/sshd-priv-sep.conf to ensure that /run/sshd exists on all boots.

Addresses #478
  • Loading branch information
ewdurbin committed Aug 26, 2024
1 parent 87e9f09 commit b174422
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions salt/ssh/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ ssh:
- mode: "0644"


/usr/lib/tmpfiles.d/sshd-priv-sep.conf:
file.managed:
- contents: |
d /run/sshd 0755 root root
- user: root
- group: root
- mode: "0644"


# If we have defined host keys for this server, then we want to drop them here
# instead of whatever is here by default.
{% for fn in host_keys %}
Expand Down

0 comments on commit b174422

Please sign in to comment.