chore: Remove redundant capability SYS_PTRACE#2624
Conversation
Doesn't seem to be required. It was originally added when the original change detection feature PR apparently needed it to function.
No longer required.
|
Older Postfix versions
That required the Docker container |
|
Documentation preview for this PR is ready! 🎉 Built with commit: 66f7cf7 |
|
@casperklein Oh awesome thank you so much for sharing that! 😁 Good to know this is safe to go ahead with then :) |
|
@casperklein would this also mean that the wrapper scripts aren't likely required anymore? At least for Postfix? Or do you know if the concerns about losing PID remain valid for using |
|
The wrapper script is (still) needed, because: docker-mailserver/target/scripts/wrapper/postfix-wrapper.sh Lines 3 to 8 in 851ec8c However, there should be no problem when issuing Not sure if I understood your question correctly, let me know if not 😉 |
What about https://serverfault.com/a/916072? |
|
I didn't know that. That might be worth investigating/testing. Not sure, if the things |
I'm not sure what benefit there is from starting Postfix in foreground mode for a multi-service/process container? Isn't this the difference between Postfix 3.3 (Feb 2018) and Postfix 3.4 (March 2019) mentioned in the link at least does mean those were not available originally in Oct 2017 when the wrapper workaround was added. So I suppose it could be worth looking into.
Someone running Podman Rootless had some odd permission issues occur, not sure why though: It affected
This was apparently an issue cited around the same time, some concern about losing a PID. The maintainer at the time did not clarify the concern that well. |
No benefit, but a requirement for supervisord. Because postfix did not support foreground mode in the past, the wrapper script was needed.
|
Description
This capability was added as part of the original
check-for-changes.shfeature PR in Oct 2017:postfix reloadcommit, or thesupervisorctl restart postfixline that replaced it.postfix reloadthat may possibly lead to a process (which one?) losing a PID (for Postfix?).In June 2018, the
SYS_PTRACErequirement was clarified:and:
That is still a bit vague. None of the current unit tests seem to fail anymore. I assume the referenced "postfix management script" is
wrappers/postfix-wrapper.sh?postfix-wrapper.shwas introduced in Aug 2017 (as part of addingsupervisordinto the image), so a little bit earlier than the change detection service. The wrapper purpose is described:I'm not sure what has changed since. Perhaps @casperklein or @georglauterbach know of a reason to keep
SYS_PTRACEaround?I'd also like to understand the intent to require restarting Postfix and Dovecot, as opposed to
postfix reload/dovecot reload. This was used prior to adoptingsupervisord(and the wrapper scripts that it seemed to require?). All I have to go by is the concern that maintainer expressed with a PID possibly being lost.Type of change
Checklist:
docs/)