From: Luke Kenneth Casson Leighton <lkcl@lkcl.net>
To: Daniel J Walsh <dwalsh@redhat.com>
Cc: Greg KH <greg@kroah.com>, Bill Nottingham <notting@redhat.com>,
harald@redhat.com, SELinux <SELinux@tycho.nsa.gov>,
"Fedora SELinux support list for users & developers."
<fedora-selinux-list@redhat.com>,
linux-hotplug-devel@lists.sourceforge.net
Subject: Re: Cleaned up udev-selinux patch
Date: Thu, 26 Aug 2004 22:56:28 +0000 [thread overview]
Message-ID: <20040826230221.GE6058@lkcl.net> (raw)
In-Reply-To: <412E20AF.7000102@redhat.com>
On Thu, Aug 26, 2004 at 01:41:03PM -0400, Daniel J Walsh wrote:
like this:
--- /dev/null 2004-06-21 15:29:38.000000000 -0400
+++ udev-030/selinux.h 2004-08-26 13:14:05.730808665 -0400
@@ -0,0 +1,87 @@
+#ifndef SELINUX_H
+#define SELINUX_H
+
+#ifndef USE_SELINUX
+#define set_selinux_set_context(file, mode) do { } while (0)
+#define selinux_setup_context(file, mode) do { } while (0)
+#define selinux_init() do { } while (0)
+#define selinux_restore() do { } while (0)
+
+#else
+
+#define set_selinux_set_context real_set_selinux_context
+#define set_selinux_setup_context real_set_setup_context
+...
--- /dev/null 2004-06-21 15:29:38.000000000 -0400
+++ udev-030/selinux.c 2004-08-26 13:14:05.730808665 -0400
+#include <selinux/selinux.h>
+
+static int selinux_enabled=-1;
+static security_context_t prev_scontext=NULL;
+
+#undef is_selinux_running
+static inline int is_selinux_running(void) {
+ if ( selinux_enabled=-1 )
+ return selinux_enabled=is_selinux_enabled()>0;
+ return selinux_enabled;
+}
+#undef selinux_set_context
+void real_selinux_set_context(char *file, unsigned int mode) {
^^^^
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next prev parent reply other threads:[~2004-08-26 22:56 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20040223213614.GA12242@devserv.devel.redhat.com>
[not found] ` <20040224233859.GA3265@kroah.com>
[not found] ` <20040224234652.GA14775@devserv.devel.redhat.com>
[not found] ` <403C8AE4.10403@redhat.com>
[not found] ` <20040228005300.GA13860@kroah.com>
[not found] ` <412DFE7B.6060409@redhat.com>
[not found] ` <20040826155716.GA30726@kroah.com>
2004-08-26 17:41 ` Cleaned up udev-selinux patch Daniel J Walsh
2004-08-26 17:51 ` Greg KH
2004-08-26 19:07 ` Daniel J Walsh
2004-08-26 19:14 ` Greg KH
2004-08-26 22:59 ` Luke Kenneth Casson Leighton
2004-08-26 22:56 ` Greg KH
2004-08-27 13:32 ` Daniel J Walsh
2004-08-27 15:42 ` Luke Kenneth Casson Leighton
2004-08-30 18:52 ` Luke Kenneth Casson Leighton
2004-08-27 14:28 ` Luke Kenneth Casson Leighton
2004-08-26 22:56 ` Luke Kenneth Casson Leighton [this message]
2004-08-27 15:36 ` James Morris
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=20040826230221.GE6058@lkcl.net \
--to=lkcl@lkcl.net \
--cc=SELinux@tycho.nsa.gov \
--cc=dwalsh@redhat.com \
--cc=fedora-selinux-list@redhat.com \
--cc=greg@kroah.com \
--cc=harald@redhat.com \
--cc=linux-hotplug-devel@lists.sourceforge.net \
--cc=notting@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).