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

feat: SELinux support #952

Open
dylanmtaylor opened this issue Apr 27, 2024 · 7 comments
Open

feat: SELinux support #952

dylanmtaylor opened this issue Apr 27, 2024 · 7 comments

Comments

@dylanmtaylor
Copy link

ls -Z and eza -Z have very different results produced

@cafkafk
Copy link
Member

cafkafk commented Apr 27, 2024

could you describe in more detail what the differences are and how this affects your usage?

@dylanmtaylor
Copy link
Author

ls -Z:
image

eza -Z:
image

@cafkafk
Copy link
Member

cafkafk commented Apr 29, 2024

what does this look like with the -l flag? (I don't have a SELinux box to test on)

@dylanmtaylor
Copy link
Author

ls -l
image

eza -l
image

You can test on a Fedora Live ISO which has SELinux by default.

@MartinFillon
Copy link
Contributor

Hey, as per right now, -Z or security contextm is keeped behind two things, first the -l flag, and secondly xattr, they need to be enabled, they are currenty only supported on target oses:

  • linux
  • netbsd
  • macos
  • freebsd

if SELinux is a different os than those then this can be the reason why its not working. As I dont have the ability to run a SELinux os . Feel free to test and maybe debug the variable to see if its enabled in a rust basic project. code the ENABLED const is here the reason.

@dylanmtaylor
Copy link
Author

Hey, as per right now, -Z or security contextm is keeped behind two things, first the -l flag, and secondly xattr, they need to be enabled, they are currenty only supported on target oses:

* `linux`

* `netbsd`

* `macos`

* `freebsd`

if SELinux is a different os than those then this can be the reason why its not working. As I dont have the ability to run a SELinux os . Feel free to test and maybe debug the variable to see if its enabled in a rust basic project. code the ENABLED const is here the reason.

SELinux is not a different OS than Linux.

@MartinFillon
Copy link
Contributor

SELinux is not a different OS than Linux.

Ok then i think you not having the same output is due to us gatekeeping it behind -l

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants