72a84c3f42
* Alternate path for semanage.conf * do not link against libpython, this is considered bad in Debian * Allow to build for several ruby version * fallback-user-level
15 lines
454 B
Diff
15 lines
454 B
Diff
diff --git a/libsemanage/src/handle.c b/libsemanage/src/handle.c
|
|
index 4b43ba7..7fcd2b4 100644
|
|
--- a/libsemanage/src/handle.c
|
|
+++ b/libsemanage/src/handle.c
|
|
@@ -186,7 +186,8 @@ const char *semanage_selinux_path(void) {
|
|
|
|
const char *semanage_conf_path(void)
|
|
{
|
|
- if (private_semanage_conf_path)
|
|
+ if (private_semanage_conf_path &&
|
|
+ access(private_semanage_conf_path, R_OK) == 0)
|
|
return private_semanage_conf_path;
|
|
|
|
return SEMANAGE_CONF_PATH;
|