1
0
mirror of https://github.com/containers/youki synced 2024-11-23 09:21:57 +01:00
youki/experiment/selinux
Hiroyuki Moriya c7d5992c01
selinux: implemented remaining selinux functions (#2850)
* added selinux functions

Signed-off-by: Hiroyuki Moriya <41197469+Gekko0114@users.noreply.github.com>

* not use arc

Signed-off-by: Hiroyuki Moriya <41197469+Gekko0114@users.noreply.github.com>

* follow reviewer comment

Signed-off-by: Hiroyuki Moriya <41197469+Gekko0114@users.noreply.github.com>

* divided selinux impl into two files

Signed-off-by: Hiroyuki Moriya <41197469+Gekko0114@users.noreply.github.com>

* fix

Signed-off-by: Hiroyuki Moriya <41197469+Gekko0114@users.noreply.github.com>

* fix

Signed-off-by: Hiroyuki Moriya <41197469+Gekko0114@users.noreply.github.com>

* fix

Signed-off-by: Hiroyuki Moriya <41197469+Gekko0114@users.noreply.github.com>

* use SELinuxLabel struct

Signed-off-by: Hiroyuki Moriya <41197469+Gekko0114@users.noreply.github.com>

* use pointer instead of clone

Signed-off-by: Hiroyuki Moriya <41197469+Gekko0114@users.noreply.github.com>

* not loop

Signed-off-by: Hiroyuki Moriya <41197469+Gekko0114@users.noreply.github.com>

* add main.rs

Signed-off-by: Hiroyuki Moriya <41197469+Gekko0114@users.noreply.github.com>

---------

Signed-off-by: Hiroyuki Moriya <41197469+Gekko0114@users.noreply.github.com>
2024-08-16 21:25:52 +09:00
..
src selinux: implemented remaining selinux functions (#2850) 2024-08-16 21:25:52 +09:00
Cargo.lock selinux: implemented remaining selinux functions (#2850) 2024-08-16 21:25:52 +09:00
Cargo.toml selinux: implemented remaining selinux functions (#2850) 2024-08-16 21:25:52 +09:00
README.md selinux: implemented remaining selinux functions (#2850) 2024-08-16 21:25:52 +09:00

This is an experimental project in order to create selinux library in Rust.
Ref: https://github.com/containers/youki/issues/2718.
Reimplementation of opencontainers/selinux in Rust.
Also selinux depends on xattr, but nix doesn't cover xattr function. Therefore, this PR will implement xattr in Rust.
Referenced the implementation of xattr in unix repo.

Please import and use this project.

$ cargo run