Skip to content

Commit 3fbd13e

Browse files
authored
Merge pull request #9 from haha-business/iliana/dev
add lower-level memfd API; handle newer Linux functionality
2 parents 72ef295 + 983ee27 commit 3fbd13e

File tree

7 files changed

+628
-46
lines changed

7 files changed

+628
-46
lines changed

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ on:
77
merge_group:
88
jobs:
99
test:
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-22.04
1111
steps:
1212
- uses: actions/checkout@v2
1313
- run: rustup update stable
1414
- run: cargo fmt -- --check
15-
- run: cargo clippy -- -D warnings
15+
- run: cargo clippy --all-targets -- -D warnings
1616
- run: cargo test

CHANGELOG.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,20 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
### Added
9+
- `SealOptions`, an interface for directly creating and sealing anonymous files outside the context
10+
of executing them
11+
12+
### Fixed
13+
- Creating executable anonymous files works correctly since Linux 6.3 when the sysctl
14+
`vm.memfd_noexec = 1` is set
15+
- `is_sealed` correctly handles the presence of additional seals (e.g. `F_SEAL_FUTURE_WRITE` since
16+
Linux 5.1 or `F_SEAL_EXEC` since Linux 6.3)
17+
818
### Changed
9-
- `is_sealed` correctly handles the presence of additional seals (e.g. `F_SEAL_FUTURE_WRITE` since Linux 5.1)
19+
- `SealedCommand` and `execute_sealed` set `F_SEAL_EXEC` on Linux 6.3 and newer
20+
- Moved source repository to <https://github.com/haha-business/pentacle>
21+
- Minimum supported Rust version (MSRV) now 1.59.0
1022

1123
## [1.0.0] - 2020-09-29
1224
### Changed

Cargo.lock

+11-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
[package]
22
name = "pentacle"
33
version = "1.0.0"
4-
authors = ["iliana destroyer of worlds <[email protected]>"]
5-
edition = "2018"
6-
exclude = [".github", ".gitignore"]
4+
edition = "2021"
5+
rust-version = "1.59"
76
description = "Executes programs as sealed anonymous files on Linux"
8-
repository = "https://github.com/iliana/pentacle"
97
readme = "README.md"
10-
keywords = ["command", "exec", "memfd", "memfd_create", "seal"]
8+
repository = "https://github.com/haha-business/pentacle"
119
license = "MIT"
10+
keywords = ["command", "exec", "memfd", "memfd_create", "seal"]
11+
exclude = [".github", ".gitignore"]
1212

1313
[dependencies]
14-
libc = "0.2"
15-
log = "0.4"
14+
libc = "0.2.153"
15+
log = "0.4.4"
1616

1717
[package.metadata.docs.rs]
1818
# https://docs.rs/about/metadata

0 commit comments

Comments
 (0)