Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AmbientCapabilities in systemd units is more privileged than Hashicorp's unit #294

Open
dixneuf19 opened this issue May 19, 2022 · 0 comments

Comments

@dixneuf19
Copy link

While reviewing the official Hashicorp Vault Hardening guidelines, I found a difference between in the systemd unit of this repository and the official units installed with hashicorp linux packages.

One of the more relevant part for me is AmbientCapabilities, which is set to CAP_IPC_LOCK on Hashicorp repo, but CAP_SYSLOG CAP_IPC_LOCK here.

This modification was added in this commit 5c4f74a without much explanation, and I have tested on my setup reverting to AmbientCapabilities=CAP_IPC_LOCK without any issues.

Why is there this difference ? If there is no specific reason, I would be pleased to contribute to this repo with this simple PR!

There are also other difference, for ulimits for example, but there are not a specific issue in my case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant