Change libsemanage mechanism for handling disabled modules. Now it will only create a flag for a module
indicating the module is disabled. MODULE.pp.disabled, it will no longer rename the module. This way we can ship active modules in rpm.
This commit is contained in:
parent
410db78cc0
commit
568e47f118
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user