Skip to contentSkip to conversation

libsemanage: Improve warning for installing disabled module

PATCH In review Vit Mojzis 2 participants 3 messages Feb 28, 2018 SELinux security module

lore
Share & tools
lore

Vit Mojzis

author
#0 lore raw

PATCH 1/1 libsemanage: Improve warning for installing disabled module

Resolves: rhbz#1337199

---
 libsemanage/src/direct_api.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
libsemanage/src/direct_api.c +1 -1
index 88873c43..9c305c75 100644
@@ -2797,7 +2797,7 @@ static int semanage_direct_install_info(semanage_handle_t *sh,
 		if (higher_info->enabled == 0 && modinfo->enabled == -1) {
 			errno = 0;
 			WARN(sh,
-			     "%s module will be disabled after install due to default enabled status.",
+			     "%s module will be disabled after install as there is a disabled instance of this module present in the system.",
 			     modinfo->name);
 		}
 	}
Signature · 1 line
2.14.3
#1 lore raw
Quoted 21 lines · Vit Mojzis

Resolves: rhbz#1337199

---
 libsemanage/src/direct_api.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
libsemanage/src/direct_api.c +1 -2
index 88873c43..9c305c75 100644
@@ -2797,7 +2797,7 @@ static int semanage_direct_install_info(semanage_handle_t *sh,
                if (higher_info->enabled == 0 && modinfo->enabled == -1) {
                        errno = 0;
                        WARN(sh,
-                            "%s module will be disabled after install due to default enabled status.",
+                            "%s module will be disabled after install as there is a disabled instance of this module present in the system.",
                             modinfo->name);
                }
        }
--
Quoted 3 lines

2.14.3

ack

#2 lore raw
Quoted 19 lines · William Roberts
Quoted 18 lines · Vit Mojzis

Resolves: rhbz#1337199

---
 libsemanage/src/direct_api.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
libsemanage/src/direct_api.c +1 -1
index 88873c43..9c305c75 100644
@@ -2797,7 +2797,7 @@ static int semanage_direct_install_info(semanage_handle_t *sh,
                if (higher_info->enabled == 0 && modinfo->enabled == -1) {
                        errno = 0;
                        WARN(sh,
-                            "%s module will be disabled after install due to default enabled status.",
+                            "%s module will be disabled after install as there is a disabled instance of this module present in the system.",
                             modinfo->name);
Quoted 8 lines
Quoted 6 lines
libsemanage/src/direct_api.c +0 -1
                }
        }
--

2.14.3

ack

merged: https://github.com/SELinuxProject/selinux/pull/82