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: -Z SELinux context support #1359

Open
boredsquirrel opened this issue Jan 29, 2025 · 0 comments
Open

feat: -Z SELinux context support #1359

boredsquirrel opened this issue Jan 29, 2025 · 0 comments

Comments

@boredsquirrel
Copy link

when using ls on Fedora, CentOS, RHEL, AlmaLinux etc, there is an additional argument -Z to display SELinux contexts.

Can look like this

/ ❯❯❯ ls -Z
       system_u:object_r:bin_t:s0 bin@          system_u:object_r:lib_t:s0 lib64@         system_u:object_r:proc_t:s0 proc/        system_u:object_r:root_t:s0 sysroot/
      system_u:object_r:boot_t:s0 boot/         system_u:object_r:mnt_t:s0 media@   system_u:object_r:admin_home_t:s0 root@         system_u:object_r:tmp_t:s0 tmp/
    system_u:object_r:device_t:s0 dev/          system_u:object_r:mnt_t:s0 mnt@        system_u:object_r:var_run_t:s0 run/          system_u:object_r:usr_t:s0 usr/
       system_u:object_r:etc_t:s0 etc/      system_u:object_r:default_t:s0 nix/            system_u:object_r:bin_t:s0 sbin@         system_u:object_r:var_t:s0 var/
 system_u:object_r:home_root_t:s0 home@         system_u:object_r:usr_t:s0 opt@            system_u:object_r:var_t:s0 srv@
       system_u:object_r:lib_t:s0 lib@          system_u:object_r:usr_t:s0 ostree@       system_u:object_r:sysfs_t:s0 sys/

This is currently the only thing keeping me with ls

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

1 participant