-
Notifications
You must be signed in to change notification settings - Fork 904
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
More sandboxing using systemd's features #6634
Conversation
I bet we can handle that during packaging. |
Quite likely, yes. I can't find the versions in which |
We should perhaps check this with the result from systemd/systemd#10701 😃 |
Out of curiosity, results of running
Additional restrictions:
|
Pushed a commit detecting the systemd version during configure, and enabling only the available sandboxing features. |
@@ -128,3 +128,66 @@ AC_DEFUN([AX_AVAILABLE_SYSTEMD], [ | |||
AX_CHECK_SYSTEMD_DETECT_AND_ENABLE() | |||
AX_CHECK_SYSTEMD() | |||
]) | |||
|
|||
AC_DEFUN([AX_CHECK_SYSTEMD_FEATURES], [ | |||
if test x"$systemd" = "xy"; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps we should AC_MSG_ERR
if this macro is called when systemd
is not y
? This makes it mandatory to call one of the AX_*_SYSTEMD
macros beforehand (as we can't use AC_REQUIRE
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering if we should't move that to a separate m4 file, I have searched a while for something similar, and I believe it might be of use in other projects.
Note that I also added a |
442fe40
to
75e04c7
Compare
Rebased on master to make Travis happy (dnspython stuff, AFAICT). |
75e04c7
to
6db97da
Compare
And a new rebase + commit for the spell checker. |
Short description
Recent versions of
systemd
feature many new sandboxing options, and enabling them would make the exploitation of an issue in one of our daemons harder by reducing the attack surface:Possible drawbacks:
Lua
Older versions of:systemd
will log warning messages stating they have no clue about these options, but will start all the sameChecklist
I have: