Skip to content

fcntl: F_SEAL_FUTURE_WRITE constant #114061

Closed as not planned
Closed as not planned

Description

@emanuele6

Feature or enhancement

Proposal:

#13694 added fcntl.F_ADD_SEALS/fcntl.F_GET_SEALS and the fcntl.F_SEAL_* constants in the fcntl module, but the "new" fcntl.F_SEAL_FUTURE_WRITE constant from Linux 5.1 is missing.

Also, the documentation of the fcntl module only mentions the constants in:

Changed in version 3.8: The fcntl module now contains F_ADD_SEALS, F_GET_SEALS, and F_SEAL_* constants for sealing of os.memfd_create() file descriptors

Instead of listing out "F_SEAL_WRITE, F_SEAL_SHRINK, F_SEAL_GROW, and F_SEAL_SEAL", so I was not expecting F_SEAL_FUTURE_WRITE to be missing.

It would be awesome if F_SEAL_FUTURE_WRITE (0x10 by the way) was also defined in fcntl! :-)

Thank you!

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Activity

  1. ronaldoussoren commented on Jan 15, 2024

    @ronaldoussoren
    Contributor

    Do you want to provide a PR for this?

  2. serhiy-storchaka commented on Jan 19, 2024

    @serhiy-storchaka
    Member

    I included it in #114322.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    extension-modulesC modules in the Modules dirtype-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions