-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
allow sysctl assignments to fail #13191
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
8a65188
sysctl: switch to log_syntax()
poettering 2de3023
sysctl: reset 'r' only where needed
poettering dec02d6
sysctl: if options are prefixed with "-" ignore write errors
poettering e08be64
man: document the new sysctl.d/ - prefix
poettering 0338934
Revert "Revert "sysctl: Enable ping(8) inside rootless Podman contain…
poettering 000500c
sysctl: prefix ping port range setting with a dash
poettering b64c47c
NEWS: mention the new sysctl.d/ - prefix
poettering File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,14 @@ net.ipv4.conf.all.accept_source_route = 0 | |
# Promote secondary addresses when the primary address is removed | ||
net.ipv4.conf.all.promote_secondaries = 1 | ||
|
||
# ping(8) without CAP_NET_ADMIN and CAP_NET_RAW | ||
# The upper limit is set to 2^31-1. Values greater than that get rejected by | ||
# the kernel because of this definition in linux/include/net/ping.h: | ||
# #define GID_T_MAX (((gid_t)~0U) >> 1) | ||
# That's not so bad because values between 2^31 and 2^32-1 are reserved on | ||
# systemd-based systems anyway: https://systemd.io/UIDS-GIDS.html#summary | ||
-net.ipv4.ping_group_range = 0 2147483647 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not compatible with sysctl anymore, and will in particular break |
||
|
||
# Fair Queue CoDel packet scheduler to fight bufferbloat | ||
net.core.default_qdisc = fq_codel | ||
|
||
|
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.
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.
Maybe:
Any access permission errors and attempts to write variables not defined on the local system are logged, but do not cause the the service to fail. Moreover, if a variable assignment is prefixed with a single "-" character, failure to set the variable will be logged, but will not cause the service to fail. All other errors when setting variables cause the service to return failure at the end (other variables are still processed).