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

Enable systemd security mechanisms in our unit files #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rgacogne
Copy link
Member

@rgacogne rgacogne commented Jun 7, 2017

We should double check that it doesn't cause any issue, especially with regard to file system accesses. The communication socket is in /run, as is the pid file, but I may have missed some other files we need access to.

@gdelafond
Copy link
Contributor

gdelafond commented Dec 1, 2017

The default config file use /usr/local/run/cloudgateway folder for CommunicationSocket & PidFile. It must be changed to /run/cloudgateway because ProtectSystem=full set /usr to be read-only.

So, the systemd files, config file and the installer should be modified to use /run/cloudgateway.

@gdelafond
Copy link
Contributor

For cloudgatewaymount@.service.tmpl, we need more rights.
The only things that works here (Debian 9.2) is :

  • CapabilityBoundingSet=CAP_SYS_ADMIN
  • LimitNOFILE=163840
    All others variables needs to be removed :(

Copy link
Contributor

@gdelafond gdelafond left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chbruyand chbruyand removed their request for review August 16, 2018 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants