Skip to contentSkip to conversation

Removing a module that does not exist should not be an error.

PATCH Daniel J Walsh 1 participant 1 message Feb 17, 2009 SELinux security module

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This allows us to run a command that removes several modules while installing others.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkma6r8ACgkQrlYvE4MpobPXgwCgzyp+iRSfgj4FMmTuvj2+8k9Y nooAoMdbsPa2fY/P5hB7qPvNdItOyfCG
=VQkC
-----END PGP SIGNATURE-----

semodule/semodule.c +3 -0
@@ -359,6 +363,9 @@
 					     mode_arg);
 				}
 				result = semanage_module_remove(sh, mode_arg);
+				if ( result == -2 ) { 
+					continue;
+				}
 				break;
 			}
 		case LIST_M:{