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

manual: nginx: Mention ProtectHome in release notes. See #85567 #103147

Merged
merged 2 commits into from Nov 8, 2020

Conversation

nh2
Copy link
Contributor

@nh2 nh2 commented Nov 8, 2020

See #85567 (review).

With the upgrade to 20.09, trying to set

{
  services.nginx = {
    enable = true;
    virtualHosts."example.com".root = "/home/niklas/web"; # Requires `chmod o+x /home/niklas`.
  };
}

I got permission errors in nginx logs:

[error] ...: *2 "/home/niklas/web/index.html" is forbidden (13: Permission denied), ...

and in strace:

stat("/home/niklas/web/index.html", 0x7ffc40253550) = -1 EACCES (Permission denied)

despite my file system permissions being set up correctly.

sudo -u nginx stat /home/niklas/web/index.html completed successfully.

Eventually I found that this is because of the new ProtectHome = mkDefault true; systemd sandboxing option introduced in

ProtectHome = mkDefault true;

(PR #85567).


This changelog update makes the user aware of this. It needs to be backported to 20.09.

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.

None yet

2 participants