diff --git a/libsemanage-rhat.patch b/libsemanage-rhat.patch index 9d0bb5d..93e7521 100644 --- a/libsemanage-rhat.patch +++ b/libsemanage-rhat.patch @@ -549,7 +549,7 @@ index 3cffef7..da0ad71 100644 return _semanage.semanage_module_install(*args) semanage_module_install = _semanage.semanage_module_install diff --git a/libsemanage/src/semanage_store.c b/libsemanage/src/semanage_store.c -index 339bbd0..f5e3572 100644 +index 339bbd0..90af360 100644 --- a/libsemanage/src/semanage_store.c +++ b/libsemanage/src/semanage_store.c @@ -57,7 +57,7 @@ typedef struct dbase_policydb dbase_t; @@ -608,7 +608,7 @@ index 339bbd0..f5e3572 100644 + int n = snprintf(path, PATH_MAX, "%s.%s", file, DISABLESTR); + if (n < 0 || n >= PATH_MAX) + return -1; -+ if ((in = open(path, O_WRONLY | O_CREAT )) == -1) { ++ if ((in = open(path, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR)) == -1) { + return -1; + } + close(in);