From mboxrd@z Thu Jan 1 00:00:00 1970 From: Harald Hoyer Date: Tue, 06 Apr 2004 15:15:12 +0000 Subject: selinux Message-Id: <4072C980.4080907@redhat.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="------------040007020702060704020100" List-Id: To: linux-hotplug@vger.kernel.org This is a multi-part message in MIME format. --------------040007020702060704020100 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit In extras there is udev_selinux. From where is this supposed to be called? Attached is a totally untested patch to make it compile. --------------040007020702060704020100 Content-Type: text/x-patch; name="udev-024-selinux.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="udev-024-selinux.patch" --- udev-024/extras/selinux/Makefile.sel 2004-04-05 17:59:22.640630568 +0200 +++ udev-024/extras/selinux/Makefile 2004-04-05 17:59:48.421711248 +0200 @@ -54,6 +54,7 @@ install: all + $(INSTALL_PROGRAM) -D $(PROG) $(DESTDIR)$(sbindir)/$(PROG) uninstall: --- udev-024/extras/selinux/udev_selinux.c.sel 2004-04-03 00:47:28.000000000 +0200 +++ udev-024/extras/selinux/udev_selinux.c 2004-04-05 17:59:05.962166080 +0200 @@ -12,17 +12,32 @@ #ifdef LOG unsigned char logname[LOGNAME_SIZE]; -void log_message(int level, const char *format, ...) +static int debug; +void log_message (int level, const char *format, ...) { - va_list args; + va_list args; - if (!udev_log) + if (!debug && level == LOG_DEBUG) return; - va_start(args, format); - vsyslog(level, format, args); - va_end(args); + va_start (args, format); + { + static int logging_init = 0; + if (!logging_init) { + /* + * klibc does not have LOG_PID. + */ + snprintf(logname, 32, "udev_selinux[%d]", getpid()); + openlog (logname, 0, LOG_DAEMON); + logging_init = 1; + } + + vsyslog(level, format, args); + } + va_end (args); + return; } + #endif void selinux_add_node(char *filename) --------------040007020702060704020100-- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ 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