[yast-commit] r49483 - in /trunk/auditd/src: Auditd.ycp complex.ycp
Author: gs Date: Tue Jul 29 13:12:17 2008 New Revision: 49483 URL: http://svn.opensuse.org/viewcvs/yast?rev=49483&view=rev Log: add SetAuditdOption Modified: trunk/auditd/src/Auditd.ycp trunk/auditd/src/complex.ycp Modified: trunk/auditd/src/Auditd.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/auditd/src/Auditd.ycp?rev=49483&r1=49482&r2=49483&view=diff ============================================================================== --- trunk/auditd/src/Auditd.ycp (original) +++ trunk/auditd/src/Auditd.ycp Tue Jul 29 13:12:17 2008 @@ -166,6 +166,15 @@ else return ""; } + +global boolean SetAuditdOption( string key, string value ) { + list <string> option_list = []; + option_list = add( option_list, value ); + SETTINGS[key] = option_list; + y2milestone( "Setting: %1 to %2", key, option_list ); + + return true; +} /** * Read settings from auditd.conf @@ -268,7 +277,7 @@ foreach (string key, list <string> value, SETTINGS, { // and write each value success = (boolean)SCR::Write(add(.auditd, key), value ); - y2milestone("Writing %1: %2", key, success?"true":"false" ); + y2milestone("Writing %1: %2 -> %3", key, value, success?"true":"false" ); }); // This is very important @@ -294,7 +303,7 @@ integer sl = 500; sleep(sl); - // TODO FIXME Names of real stages + // Names of the stages // We do not set help text here, because it was set outside Progress::New(caption, " ", steps, [ /* Progress stage 1/2 */ Modified: trunk/auditd/src/complex.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/auditd/src/complex.ycp?rev=49483&r1=49482&r2=49483&view=diff ============================================================================== --- trunk/auditd/src/complex.ycp (original) +++ trunk/auditd/src/complex.ycp Tue Jul 29 13:12:17 2008 @@ -100,6 +100,8 @@ Auditd::SetModified( true ); + Auditd::SetAuditdOption( "log_file", (string)UI::QueryWidget( `id("log_file"), `Value ) ); + // Stores all boolean values and turns them to the "yes"/"no" notation //foreach (string key, ["AllowTcpForwarding", "X11Forwarding", "Compression"], { //Sshd::SetSSHDOption( -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
gs@svn.opensuse.org