-
Notifications
You must be signed in to change notification settings - Fork 351
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
selinux: implemented remaining selinux functions #2850
Conversation
474bb5f
to
005b243
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll still review this PR because the changes are significant. But I've done the first my review.
Signed-off-by: Hiroyuki Moriya <[email protected]>
Signed-off-by: Hiroyuki Moriya <[email protected]>
Signed-off-by: Hiroyuki Moriya <[email protected]>
Signed-off-by: Hiroyuki Moriya <[email protected]>
Hi @utam0k Thank you so much for your review. I've fixed or replied to your comments. |
Signed-off-by: Hiroyuki Moriya <[email protected]>
Signed-off-by: Hiroyuki Moriya <[email protected]>
Signed-off-by: Hiroyuki Moriya <[email protected]>
Signed-off-by: Hiroyuki Moriya <[email protected]>
I'll review it when I have more time to review. But the structure itself seemed very readable 😍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The structure itself looks good to me +1. May I ask you to add I was mistaken.main.rs
to show an example of how to use this crate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The structure itself looks good to me +1. May I ask you to add main.rs to show an example of how to use this crate?
Signed-off-by: Hiroyuki Moriya <[email protected]>
Signed-off-by: Hiroyuki Moriya <[email protected]>
Is this PR ready for re-reviewing? |
Signed-off-by: Hiroyuki Moriya <[email protected]>
@utam0k |
Awesome! Does
|
Ah I hadn't tried this as a root on workspace, but seems you're right (I've tried it just now). Seems that whether main.rs can be executed successfully depends on development environment. |
Hey @Gekko0114 , do you think adding a vagrant file (or making changes in existing ones) to enable selinux in the vagrant box would be a good/easy idea? That way we can have a common dev env to write and test these things. As you said depending on how selinux is setup on machine, the main file can succeed or fail, I think it is a good idea to have a standard env to test in. wdyt? |
+1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
* added selinux functions Signed-off-by: Hiroyuki Moriya <[email protected]> * not use arc Signed-off-by: Hiroyuki Moriya <[email protected]> * follow reviewer comment Signed-off-by: Hiroyuki Moriya <[email protected]> * divided selinux impl into two files Signed-off-by: Hiroyuki Moriya <[email protected]> * fix Signed-off-by: Hiroyuki Moriya <[email protected]> * fix Signed-off-by: Hiroyuki Moriya <[email protected]> * fix Signed-off-by: Hiroyuki Moriya <[email protected]> * use SELinuxLabel struct Signed-off-by: Hiroyuki Moriya <[email protected]> * use pointer instead of clone Signed-off-by: Hiroyuki Moriya <[email protected]> * not loop Signed-off-by: Hiroyuki Moriya <[email protected]> * add main.rs Signed-off-by: Hiroyuki Moriya <[email protected]> --------- Signed-off-by: Hiroyuki Moriya <[email protected]>
This is an experimental create. This PR is for selinux crate written in Rust.
In this PR, most of remaining selinux functions are implemented.
ref: #2718 #2800 #2825