Skip to content
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

memfd_create(): add support for file sealing #2027

Merged
merged 2 commits into from
Jun 6, 2024

Conversation

francescolavra
Copy link
Member

This change set enhances the tmpfs implementation so that it supports file sealing, and modifies memfd_create() so that it acts upon the MFD_ALLOW_SEALING flag when configuring the initial set of seals for the underlying tmpfs file.
The fcntl() syscall now accepts 2 additional commands, needed for file sealing operations: F_ADD_SEALS and F_GET_SEALS.
The fcntl runtime test has been amended to exercise this new feature.

The new function unix_file_new() allocates a file descriptor for an
open file; it can be used when some operations have to be performed
on an open file before creating a file descriptor (and thus making
the file available to userspace).
This function will be used by memfd_create() when adding support
for file sealing.
This change enhances the tmpfs implementation so that it supports
file sealing, and modifies memfd_create() so that it acts upon the
MFD_ALLOW_SEALING flag when configuring the initial set of seals
for the underlying tmpfs file.
The fcntl() syscall now accepts 2 additional commands, needed for
file sealing operations: F_ADD_SEALS and F_GET_SEALS.
The fcntl runtime test has been amended to exercise this new
feature.
@francescolavra francescolavra merged commit 033a1ed into master Jun 6, 2024
5 checks passed
@francescolavra francescolavra deleted the feature/file-sealing branch June 6, 2024 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant