[PATCH] ls: also list SELinux labels if SELinux is still off
Uwe Kleine-König via busybox <[email protected]>
| Newsgroups | gmane.linux.busybox |
|---|---|
| Message-ID | <[email protected]> |
From: Uwe Kleine-König <[email protected]> Even when SELinux isn't fully initialized yet (determined by is_selinux_enabled() returning 0) it makes sense to emit the labels e.g. to debug labeling in the initramfs. This matches coreutil's ls behaviour. --- Hello, the behaviour exists since commit a1cbaca1ba6f4 ("ls: make -Z output compatible with GNU coreutils 8.25") that is included in tag 1_27_0. I have an issue with my mailsetup and in my first two tries to send this mail out it went through the wrong mail server and thus wasn't accepted by the mailing list server. Sorry for the duplicates to Denys. Best regards Uwe coreutils/ls.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/coreutils/ls.c b/coreutils/ls.c index 40017efc632b..6e8fd81a4f35 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c @@ -1229,13 +1229,6 @@ int ls_main(int argc UNUSED_PARAM, char **argv) G_terminal_width = INT_MAX; /* "infinite" */ #endif -#if ENABLE_SELINUX - if (opt & OPT_Z) { - if (!is_selinux_enabled()) - option_mask32 &= ~OPT_Z; - } -#endif - #if ENABLE_FEATURE_LS_COLOR /* set G_show_color = 1/0 */ if (ENABLE_FEATURE_LS_COLOR_IS_DEFAULT && !is_TERM_dumb()) { -- 2.47.3 _______________________________________________ busybox mailing list [email protected] https://lists.busybox.net/mailman/listinfo/busybox