Skip to content

Add fctrl::SealFlag::F_SEAL_FUTURE_WRITE#2213

Merged
SteveLauC merged 3 commits intonix-rust:masterfrom
tdryer:seal-future-write
Nov 26, 2023
Merged

Add fctrl::SealFlag::F_SEAL_FUTURE_WRITE#2213
SteveLauC merged 3 commits intonix-rust:masterfrom
tdryer:seal-future-write

Conversation

@tdryer
Copy link
Copy Markdown
Contributor

@tdryer tdryer commented Nov 26, 2023

What does this PR do

Add fctrl::SealFlag::F_SEAL_FUTURE_WRITE, a file sealing flag available since Linux 5.1 which prevents modification except via shared writable mappings that were created prior to the seal being set.

Checklist:

  • I have read CONTRIBUTING.md
  • I have written necessary tests and rustdoc comments
  • A change log has been added if this PR modifies nix's API

Add `fctrl::SealFlag::F_SEAL_FUTURE_WRITE`, a file sealing flag
available since Linux 5.1 which prevents modification except via shared
writable mappings that were created prior to the seal being set.
Comment thread src/fcntl.rs Outdated
Co-authored-by: SteveLauC <stevelauc@outlook.com>
@SteveLauC
Copy link
Copy Markdown
Member

Mind removing the WIP status? This PR looks good

@tdryer tdryer marked this pull request as ready for review November 26, 2023 03:18
@SteveLauC SteveLauC added this pull request to the merge queue Nov 26, 2023
Merged via the queue into nix-rust:master with commit 54ded47 Nov 26, 2023
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.

2 participants