Skip to content

Commit

Permalink
drop unneeded/broken systemd options
Browse files Browse the repository at this point in the history
at least on systemd235, PrivateDevices=yes doesn't work together with
the CAP_IPC_LOCK. The CAP_SYSLOG capability isn't needed. Capabilities=
is deprecated.
  • Loading branch information
bastelfreak committed May 1, 2018
1 parent 4aadbbd commit 74af33c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions templates/vault.systemd.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ After=basic.target network.target
[Service]
User=<%= scope['vault::user'] %>
Group=<%= scope['vault::group'] %>
PrivateDevices=yes
PrivateTmp=yes
ProtectSystem=full
ProtectHome=read-only
Expand All @@ -22,10 +21,7 @@ ProtectHome=read-only
CapabilityBoundingSet=CAP_SYSLOG
NoNewPrivileges=yes
<% else -%>
SecureBits=keep-caps
Capabilities=CAP_IPC_LOCK+ep
CapabilityBoundingSet=CAP_SYSLOG CAP_IPC_LOCK
NoNewPrivileges=yes
CapabilityBoundingSet=CAP_IPC_LOCK
<% end -%>
Environment=GOMAXPROCS=<%= scope['vault::num_procs'] %>
ExecStart=<%= scope['vault::bin_dir'] %>/vault server -config=<%= scope['vault::config_dir'] %>/config.json <%= scope['vault::service_options'] %>
Expand Down

0 comments on commit 74af33c

Please sign in to comment.