Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor the selinux crate #3021

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

utam0k
Copy link
Member

@utam0k utam0k commented Dec 14, 2024

No description provided.

@utam0k
Copy link
Member Author

utam0k commented Dec 14, 2024

@Gekko0114 I'm trying to remove inti_* in the selinux crate. WDYT? If you agree with me, I'll continue going on this PR.

@Gekko0114
Copy link
Contributor

What do you mean by inti_* in the selinux crate ?
I couldn't find any functions or values with the prefix inti_.

@utam0k
Copy link
Member Author

utam0k commented Dec 15, 2024

What do you mean by inti_* in the selinux crate ? I couldn't find any functions or values with the prefix inti_.

Ops, like policy_root_init_done

@Gekko0114
Copy link
Contributor

I see. I am not familiar with Rust, therefore it is possible that there should be better implementation rather than using atomicBool.
Thanks, I will wait for your PR :)

@utam0k
Copy link
Member Author

utam0k commented Jan 19, 2025

I've pushed my changes. Overall, I have already finished it, but I still need to edit it to run it on VM.

@utam0k utam0k force-pushed the refactor-selinux branch 3 times, most recently from 128d52a to 15e0444 Compare January 20, 2025 12:14
Signed-off-by: utam0k <[email protected]>
@utam0k utam0k added the kind/experimental `/experimental` label Jan 26, 2025
@utam0k
Copy link
Member Author

utam0k commented Jan 26, 2025

@Gekko0114 I couldn't completely run main.rs on VM based on Vagrantfile, even if it's in the main branch. Did you pass it?

[vagrant@centos8 youki]$ sudo ./target/debug/selinux
selinux is enabled
default enforce mode is: enforcing
current enforce mode is: permissive
SELinux label of current process is: unconfined_u:unconfined_r:unconfined_t:s0-s0
Error: SetFileLabel("Failed to set_xattr: Operation not supported (os error 95)")

@utam0k utam0k marked this pull request as ready for review January 26, 2025 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/experimental `/experimental`
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants