2012-01-06 14:19:58 +00:00
|
|
|
diff --git a/libsemanage/src/handle.c b/libsemanage/src/handle.c
|
2012-03-29 19:28:29 +00:00
|
|
|
index 4b43ba7..7fcd2b4 100644
|
2012-01-06 14:19:58 +00:00
|
|
|
--- a/libsemanage/src/handle.c
|
|
|
|
+++ b/libsemanage/src/handle.c
|
2012-03-29 19:28:29 +00:00
|
|
|
@@ -186,7 +186,8 @@ const char *semanage_selinux_path(void) {
|
2012-01-06 14:19:58 +00:00
|
|
|
|
2012-03-29 19:28:29 +00:00
|
|
|
const char *semanage_conf_path(void)
|
|
|
|
{
|
|
|
|
- if (private_semanage_conf_path)
|
2012-01-06 14:19:58 +00:00
|
|
|
+ if (private_semanage_conf_path &&
|
|
|
|
+ access(private_semanage_conf_path, R_OK) == 0)
|
2012-03-29 19:28:29 +00:00
|
|
|
return private_semanage_conf_path;
|
2012-01-06 14:19:58 +00:00
|
|
|
|
2012-03-29 19:28:29 +00:00
|
|
|
return SEMANAGE_CONF_PATH;
|