-
Notifications
You must be signed in to change notification settings - Fork 602
Fcntl: export File Sealing flags on request #22071
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
Conversation
I have to admit that I have a negative reaction whenever I see a pull request whose commit message reads like, On Linux we can do blah, blah, blah; therefore we should modify core like so. We're not supporting a Linux application; we're supporting a language on dozens of operating systems. I'm particularly put off by this p.r.'s commit message, because in less than 60 seconds I was able to confirm that So I think should investigate other platforms, revise the commit message to reflect what we learn, then make the revised p.r. from a |
I used #21695, since it had already been merged, as a template for both the change and the commit message. This seemed like a reasonable thing to do at the time, but I apologise for any offence caused and am happy to reword the commit message. I'm not sure what a |
Precisely. A |
|
…
Here's some info on the intention behind and concept of a smoke-me branch if that's what you were wondering about. https://perldoc.perl.org/perlgit#Using-a-smoke-me-branch-to-test-changes |
On many Unix-like platforms, anonymous files can be created using memfd_create(2). Where supported, File sealing provides a mechanism whereby a process can ensure that the underlying shared memory cannot be unexpectedly tampered with. This commit adds the flags for this mechanism to the Fcntl module, from where they can be optionally exported. See, for example: https://man7.org/linux/man-pages/man2/memfd_create.2.html
1c2705c to
f606bc4
Compare
|
I've also updated the commit message within this PR. |
For what benefit? It would make the subsequent flow of comments more difficult to understand. |
On Linux, anonymous files can be created with memfd_create(2). File sealing provides a mechanism for a process to ensure that the shared memory cannot be unexpectedly tampered with.
This commit adds the flags for this mechanism to the Fcntl module, from where they can be optionally exported.
See: https://man7.org/linux/man-pages/man2/memfd_create.2.html