Repository navigation
Conversation
* changed User to Dynamic user * Set PrivateDevices=yes, PrivateTmp=yes, ProtectHome=yes, ProtectKernelLogs=yes, and ProtectKernelModules=yes * Set ProtectSystem=strict
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
My systemd complained about the use of the
nobodyuser. Using DynamicUser=yes instead is recommended in this case.I furthermore added a few options that I think might be worth adding without too much risk of breaking something. However, I'm not too familiar with the sources and all of V2ray's features and I might be wrong about some of the options. If so, I can remove conflicting options from this PR.
I myself have tested a far more extensive set of sandboxing options, inluding the ones suggested in this PR. See my systemd-drop-in file:
This has been working for around a year now an a simple client and server setup (both client and server use that drop-in file). I had no issues with it so far.
Please let me know if something is missing or wrong so I am able to fix it. If there is a simple test-setup, I might also be able to run that.