From: Stanislav Ievlev <inger@altlinux.ru>
Subject: No syslog kernel option
Date: Mon, 16 Jul 2001 12:17:35 +0400
Next Article (by Date): RE: SMP kernel. Amon Ott
Previous Article (by Date): You can add value to your existing site by adding an auction! matthew steed
Next in Thread: Re: No syslog kernel option Amon Ott
Articles sorted by: [Date]
[Author]
[Subject]
This is a multi-part message in MIME format. --------------050602000603010107000202 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hello All! What about new "no syslog" option for RSBAC kernel . It works same "don't log to syslog" option in kernel configuration menu. I think it's very usefull (and more flexible) for distributions. People can use default kernel (with logging both to syslog and rsbac special). They can change to "rsbac special logging only" without kernel recompilling (by rebooting kernel with "rsbac_nosyslog" option). Patch in attach. ------------------- With best regards Stanislav Ievlev. --------------050602000603010107000202 Content-Type: text/plain; name="rsbac-nosyslog-option.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="rsbac-nosyslog-option.patch" diff -Naur linux.old/include/rsbac/debug.h linux/include/rsbac/debug.h --- linux.old/include/rsbac/debug.h Tue Jul 10 14:28:47 2001 +++ linux/include/rsbac/debug.h Mon Jul 16 12:06:36 2001 @@ -47,6 +47,8 @@ extern int rsbac_softmode; #endif +extern int rsbac_nosyslog; + #if defined(CONFIG_RSBAC_RMSG) #define RSBAC_LOG rsbac_printk #define RSBAC_DEF_MESS_LOGLEVEL 4 diff -Naur linux.old/rsbac/adf/adf_main.c linux/rsbac/adf/adf_main.c --- linux.old/rsbac/adf/adf_main.c Fri Apr 20 13:28:58 2001 +++ linux/rsbac/adf/adf_main.c Mon Jul 16 12:06:36 2001 @@ -734,6 +734,7 @@ #endif #ifndef CONFIG_RSBAC_RMSG_EXCL /* if pseudo is set, its value is != 0, else -> use id */ + if (!rsbac_nosyslog) if (pseudo) printk(KERN_INFO "rsbac_adf_request(): request %s, caller_pid %u, caller_prog_name %s, caller_pseudo %u, target-type %s, tid %s, attr %s, value %u, result %s by%s\n", request_name, caller_pid, command, i_attr_val.pseudo, target_type_name, target_id_name, attr_name, attr_val.dummy, res_name, res_mods); diff -Naur linux.old/rsbac/help/debug.c linux/rsbac/help/debug.c --- linux.old/rsbac/help/debug.c Tue Apr 10 13:14:14 2001 +++ linux/rsbac/help/debug.c Mon Jul 16 12:06:36 2001 @@ -49,6 +49,9 @@ int rsbac_softmode = 0; #endif +/* Boolean switch for no syslog option*/ +int rsbac_nosyslog = 0; + /* Boolean debug switch for stack debugging */ int rsbac_debug_stack = 0; @@ -451,6 +454,12 @@ return(TRUE); } #endif + if (!strcmp(line,"rsbac_nosyslog")) + { + rsbac_nosyslog = 1; + return(TRUE); + } + /* RSBAC: debug for all? */ if (!strcmp(line,"rsbac_debug_all")) { --------------050602000603010107000202-- - To unsubscribe from the rsbac list, send a mail to majordomo@rsbac.org with unsubscribe rsbac as single line in the body.
Next Article (by Date): RE: SMP kernel. Amon Ott
Previous Article (by Date): You can add value to your existing site by adding an auction! matthew steed
Next in Thread: Re: No syslog kernel option Amon Ott
Articles sorted by: [Date]
[Author]
[Subject]