From: Daniel J Walsh <dwalsh@redhat.com>
To: SE Linux <selinux@tycho.nsa.gov>
Subject: Patch to make libselinux shut up when SELinux is disabled.
Date: Fri, 18 Jul 2008 13:16:01 -0400 [thread overview]
Message-ID: <4880CFD1.1040102@redhat.com> (raw)
[-- 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 --]
next reply other threads:[~2008-07-18 17:16 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-18 17:16 Daniel J Walsh [this message]
2008-07-18 17:27 ` Patch to make libselinux shut up when SELinux is disabled 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4880CFD1.1040102@redhat.com \
--to=dwalsh@redhat.com \
--cc=selinux@tycho.nsa.gov \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.