-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* selinux_init Signed-off-by: Hiroyuki Moriya <[email protected]> * use_unimplemented Signed-off-by: Hiroyuki Moriya <[email protected]> * add_explanation Signed-off-by: Hiroyuki Moriya <[email protected]> * update Signed-off-by: Hiroyuki Moriya <[email protected]> * use_path_instead_of_str Signed-off-by: Hiroyuki Moriya <[email protected]> * use_thiserror Signed-off-by: Hiroyuki Moriya <[email protected]> * use_struct Signed-off-by: Hiroyuki Moriya <[email protected]> --------- Signed-off-by: Hiroyuki Moriya <[email protected]>
- Loading branch information
Showing
8 changed files
with
665 additions
and
1 deletion.
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[workspace] | ||
resolver = "2" | ||
members = ["crates/*", "tests/contest/*", "tools/*"] | ||
exclude = ["experiment/seccomp"] | ||
exclude = ["experiment/seccomp", "experiment/selinux"] | ||
|
||
[profile.release] | ||
lto = true |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[package] | ||
name = "selinux" | ||
version = "0.1.0" | ||
description = "Library for selinux" | ||
license-file = "../../LICENSE" | ||
repository = "https://github.com/containers/youki" | ||
homepage = "https://containers.github.io/youki" | ||
readme = "README.md" | ||
authors = ["youki team"] | ||
edition = "2021" | ||
autoexamples = true | ||
keywords = ["youki", "container", "selinux"] | ||
|
||
[dependencies] | ||
nix = { version = "0.29.0", features = ["process", "fs"] } | ||
thiserror = "1.0.61" |
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,7 @@ | ||
This is an experimental project in order to create selinux library in Rust. | ||
Ref: https://github.com/containers/youki/issues/2718. | ||
Reimplementation of (selinux)[https://github.com/opencontainers/selinux] in Rust. | ||
Also selinux depends on xattr, but nix doesn't cover xattr function. | ||
Therefore, this PR will implement xattr in Rust. | ||
|
||
Please import and use this project. |
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,2 @@ | ||
pub mod selinux; | ||
pub mod xattr; |
Oops, something went wrong.