Skip to content

Commit 610bba4

Browse files
committed
Use PrivateTmp=true on systemd services
Using a private tmp directory improves security.
1 parent fe035de commit 610bba4

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ This changelog adheres to [Keep a CHANGELOG](http://keepachangelog.com/).
77
* Drop platform 6 fpm support
88
* On all Debian platforms simplify java depends, allow 17 or 11, prefer 17
99
* Add Debian 12 bookworm as a FOSS build target
10+
* Use systemd's PrivateTmp feature for improved security
1011

1112
## [2.6.1]
1213
* Fix the ability to add a resources directory to a project with :include-dir by copying the resources to the staging directory directly.

resources/puppetlabs/lein-ezbake/template/global/ext/debian/ezbake.service.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ TimeoutStopSec=<%= EZBake::Config[:stop_timeout] %>
2727
Restart=on-failure
2828
StartLimitBurst=5
2929
PIDFile=/run/puppetlabs/<%= EZBake::Config[:real_name] %>/<%= EZBake::Config[:real_name] %>.pid
30+
PrivateTmp=true
3031

3132
# https://tickets.puppetlabs.com/browse/EZ-129
3233
# Prior to systemd v228, TasksMax was unset by default, and unlimited. Starting in 228 a default of '512'

resources/puppetlabs/lein-ezbake/template/global/ext/redhat/ezbake.service.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ TimeoutStopSec=<%= EZBake::Config[:stop_timeout] %>
2727
Restart=on-failure
2828
StartLimitBurst=5
2929
PIDFile=/run/puppetlabs/<%= EZBake::Config[:real_name] %>/<%= EZBake::Config[:real_name] %>.pid
30+
PrivateTmp=true
3031

3132
# https://tickets.puppetlabs.com/browse/EZ-129
3233
# Prior to systemd v228, TasksMax was unset by default, and unlimited. Starting in 228 a default of '512'

0 commit comments

Comments
 (0)