-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Make it work without CAP_SYS_PTRACE whenever possible.
- Loading branch information
1 parent
806c30f
commit a6d7575
Showing
10 changed files
with
213 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ jobs: | |
ci: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/staex-io/cijail-ci:latest@sha256:a34338b49056f528fbf439f0dc6c196c01b38174aa7ad9345b1bb8c00c8dea52 | ||
image: ghcr.io/staex-io/cijail-ci:latest@sha256:592e78d4432c1db857cd0e64d6a4c89b5d056358291a5e81b73fd8ee907a14de | ||
credentials: | ||
username: token | ||
password: ${{ secrets.GHCR_TOKEN }} | ||
|
@@ -19,7 +19,8 @@ jobs: | |
lb-140-82-113-3-iad.github.com:443 lb-140-82-114-4-iad.github.com:443 lb-140-82-116-4-sea.github.com:443 | ||
151.101.44.223:443 lb-140-82-113-4-iad.github.com:443 api.github.com:443 uploads.github.com:443 | ||
lb-140-82-116-14-sea.github.com:443 lb-140-82-112-13-iad.github.com:443 lb-140-82-114-3-iad.github.com:443 | ||
lb-140-82-116-3-sea.github.com:443 lb-140-82-112-3-iad.github.com:443 | ||
lb-140-82-116-3-sea.github.com:443 lb-140-82-112-3-iad.github.com:443 151.101.130.137:443 | ||
151.101.2.137:443 151.101.66.137:443 151.101.194.137:443 | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "cijail" | ||
version = "0.4.2" | ||
version = "0.5.0" | ||
edition = "2021" | ||
publish = false | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
use std::process::ExitCode; | ||
|
||
use caps::errors::CapsError; | ||
use caps::CapSet; | ||
|
||
fn main() -> Result<ExitCode, CapsError> { | ||
for set in [ | ||
CapSet::Permitted, | ||
CapSet::Effective, | ||
CapSet::Inheritable, | ||
CapSet::Ambient, | ||
CapSet::Bounding, | ||
] { | ||
let capabilities = caps::read(None, set)?; | ||
let mut capabilities = capabilities | ||
.iter() | ||
.map(|x| x.to_string()) | ||
.collect::<Vec<_>>(); | ||
capabilities.sort(); | ||
println!("{:?}: {}", set, capabilities.join(" ")); | ||
} | ||
Ok(ExitCode::SUCCESS) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.