All of lore.kernel.org
 help / color / mirror / Atom feed
* Patch to make libselinux shut up when SELinux is disabled.
@ 2008-07-18 17:16 Daniel J Walsh
  2008-07-18 17:27 ` Stephen Smalley
  0 siblings, 1 reply; 19+ messages in thread
From: Daniel J Walsh @ 2008-07-18 17:16 UTC (permalink / raw)
  To: SE Linux

[-- Attachment #1: Type: text/plain, Size: 462 bytes --]

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

SELinux complains about things like restorecon or rpm when conflicts
exist in file_context file even when SELinux is disabled.

It should just shut up....

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkiAz9AACgkQrlYvE4MpobMO6wCdGC7kvnHsss5gBkQGy1s10MzS
WgIAn2Ryd93w9zfVihfDKyGa8M78E21W
=hwEi
-----END PGP SIGNATURE-----

[-- Attachment #2: diff --]
[-- Type: text/plain, Size: 402 bytes --]

diff --exclude-from=exclude -N -u -r nsalibselinux/src/callbacks.c libselinux-2.0.67/src/callbacks.c
--- nsalibselinux/src/callbacks.c	2008-06-12 23:25:14.000000000 -0400
+++ libselinux-2.0.67/src/callbacks.c	2008-07-18 11:15:56.000000000 -0400
@@ -16,6 +16,7 @@
 {
 	int rc;
 	va_list ap;
+	if (is_selinux_enabled() == 0) return 0;
 	va_start(ap, fmt);
 	rc = vfprintf(stderr, fmt, ap);
 	va_end(ap);

[-- Attachment #3: diff.sig --]
[-- Type: application/octet-stream, Size: 72 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2008-08-05 13:50 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-18 17:16 Patch to make libselinux shut up when SELinux is disabled Daniel J Walsh
2008-07-18 17:27 ` Stephen Smalley
2008-07-18 17:40   ` Daniel J Walsh
2008-07-18 17:54     ` Stephen Smalley
2008-07-18 18:34       ` [rfc][patch] setfiles: validate all file_contexts files when using -c Stephen Smalley
2008-07-18 18:37         ` [rfc][patch] setfiles: validate all file_contexts files whenusing -c Joshua Brindle
2008-07-18 18:47           ` Stephen Smalley
2008-07-18 19:09             ` [rfc][patch] setfiles: validate all file_contexts fileswhenusing -c Joshua Brindle
2008-07-18 19:10               ` Stephen Smalley
2008-07-18 19:12                 ` [rfc][patch] setfiles: validate all file_contextsfileswhenusing -c Joshua Brindle
2008-07-18 19:23                   ` Stephen Smalley
2008-07-18 19:01         ` [patch] libselinux: handle conflicting file contexts as a fatal error Stephen Smalley
2008-07-18 19:04           ` Daniel J Walsh
2008-07-18 19:09             ` [patch v2] libselinux: handle duplicate file context entries " Stephen Smalley
2008-07-18 18:50       ` Patch to make libselinux shut up when SELinux is disabled Daniel J Walsh
2008-08-04 15:06         ` Paul Howarth
2008-08-04 17:42           ` Daniel J Walsh
2008-08-05 13:50             ` Paul Howarth
2008-08-04 17:51           ` Stephen Smalley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.