Hide Forgot
Description of problem: Version-Release number of selected component (if applicable): libselinux-utils-2.5-6.el7.x86_64 How reproducible: * always Steps to Reproduce: # mkdir booleans # mount --bind ./booleans /sys/fs/selinux/booleans # getsebool -a getsebool: Unable to get boolean names: Success # Expected results: getsebool: Unable to get boolean names
--- a/libselinux/src/booleans.c +++ b/libselinux/src/booleans.c @@ -53,6 +53,7 @@ int security_get_boolean_names(char ***names, int *len) snprintf(path, sizeof path, "%s%s", selinux_mnt, SELINUX_BOOL_DIR); *len = scandir(path, &namelist, &filename_select, alphasort); if (*len <= 0) { + errno = ENOENT; return -1; }
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:1853