Skip to content

fix handling of sysctl fs.protected_fifos and fs.protected_regular#172

Merged
schurzi merged 1 commit into
masterfrom
protected_fifos
Jul 11, 2022
Merged

fix handling of sysctl fs.protected_fifos and fs.protected_regular#172
schurzi merged 1 commit into
masterfrom
protected_fifos

Conversation

@schurzi
Copy link
Copy Markdown
Contributor

@schurzi schurzi commented Jul 11, 2022

our solution with cmp for fs.protected_fifos did not work. Checking for
all possible values combined with an or seems more reasonable here.

Also both sysctl parameters are not available in RHEL7. The chosen
solution seems to be the least complex, that also works on all systems.

Signed-off-by: Martin Schurz Martin.Schurz@t-systems.com

our solution with cmp for fs.protected_fifos did not work. Checking for
all possible values combined with an `or` seems more reasonable here.

Also both sysctl parameters are not available in RHEL7. The chosen
solution seems to be the least complex, that also works on all systems.

Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com>
@schurzi
Copy link
Copy Markdown
Contributor Author

schurzi commented Jul 11, 2022

fixes #170

Copy link
Copy Markdown
Member

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

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

Thank you @schurzi

@schurzi schurzi merged commit 81ce2ab into master Jul 11, 2022
@schurzi schurzi deleted the protected_fifos branch July 11, 2022 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants