selinux/policycoreutils
Vit Mojzis b8004f0586 policycoreutils: Improve error message when selabel_open fails
When selabel_open fails to locate file_context files and
selabel_opt_path is not specified (e.g. when the policy type is
missconfigured in /etc/selinux/config), perror only prints
"No such file or directory".
This can be confusing in case of "restorecon" since it's
not apparent that the issue is in policy store.

Before:
  \# restorecon -v /tmp/foo.txt
  No such file or directory
After:
  \# restorecon -v /tmp/foo.txt
  /etc/selinux/yolo/contexts/files/file_contexts: No such file or directory

Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
2022-01-14 08:55:13 -06:00
..
.tx
hll Fix many misspellings 2019-09-18 22:47:35 +02:00
load_policy selinux: Remove legacy local boolean and user code 2019-07-29 23:46:24 +02:00
man Modified Russian and English man pages to fix typo; REQUIREUSERS -> REQUIRESEUSERS 2021-11-29 18:51:19 +01:00
newrole policycoreutils: mark local functions static 2021-11-15 16:00:54 -05:00
po Fix many misspellings 2019-09-18 22:47:35 +02:00
run_init policycoreutils: mark local functions static 2021-11-15 16:00:54 -05:00
scripts fixfiles: do not exclude /dev and /run in -C mode 2021-05-12 09:36:16 +02:00
secon policycoreutils: silence -Wextra-semi-stmt warning 2021-07-06 11:08:11 -04:00
semodule semodule: Don't forget to munmap() data 2021-11-29 18:50:01 +01:00
sestatus policycoreutils: mark local functions static 2021-11-15 16:00:54 -05:00
setfiles policycoreutils: Improve error message when selabel_open fails 2022-01-14 08:55:13 -06:00
setsebool setsebool: report errors from commit phase 2020-04-28 09:26:26 +02:00
.gitignore Move policycoreutils/semodule_package to semodule-utils. 2016-11-16 11:19:51 -05:00
COPYING
Makefile Move policycoreutils/semodule_package to semodule-utils. 2016-11-16 11:19:51 -05:00
VERSION Update VERSIONs to 3.3 for release. 2021-10-21 16:31:23 +02:00