policycoreutils/policycoreutils-rhat.patch
Daniel J Walsh d513bef494 * Mon Apr 11 2005 Dan Walsh <dwalsh@redhat.com> 1.23.4-3
- remove is_selinux_enabled check from load_policy  (Bad idea)
2005-04-11 21:26:18 +00:00

16 lines
575 B
Diff

diff --exclude-from=exclude -N -u -r nsapolicycoreutils/load_policy/load_policy.c policycoreutils-1.23.4/load_policy/load_policy.c
--- nsapolicycoreutils/load_policy/load_policy.c 2005-04-11 16:00:46.000000000 -0400
+++ policycoreutils-1.23.4/load_policy/load_policy.c 2005-04-11 16:56:50.000000000 -0400
@@ -42,11 +42,6 @@
textdomain (PACKAGE);
#endif
- if (is_selinux_enabled() <= 0 ) {
- fprintf( stderr, "%s: Requires an enabled SELinux kernel.\n", argv[0] );
- exit(1);
- }
-
while ((opt = getopt(argc, argv, "qb")) > 0) {
switch (opt) {
case 'b':