Author: ug
Date: Mon May 4 11:57:19 2009
New Revision: 57050
URL: http://svn.opensuse.org/viewcvs/yast?rev=57050&view=rev
Log:
don't log passwords from 'ask'
Modified:
branches/tmp/SLE-11-SP1-Stash/autoinstallation/package/autoyast2.changes
branches/tmp/SLE-11-SP1-Stash/autoinstallation/src/clients/inst_autoconfigure.ycp
branches/tmp/SLE-11-SP1-Stash/autoinstallation/src/modules/Y2ModuleConfig.ycp
Modified: branches/tmp/SLE-11-SP1-Stash/autoinstallation/package/autoyast2.changes
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/SLE-11-SP1-Stash/autoinstallation/package/autoyast2.changes?rev=57050&r1=57049&r2=57050&view=diff
==============================================================================
--- branches/tmp/SLE-11-SP1-Stash/autoinstallation/package/autoyast2.changes (original)
+++ branches/tmp/SLE-11-SP1-Stash/autoinstallation/package/autoyast2.changes Mon May 4 11:57:19 2009
@@ -1,4 +1,9 @@
-------------------------------------------------------------------
+Mon May 4 11:57:02 CEST 2009 - ug@suse.de
+
+- don't log passwords from "ask" fixed (bnc#492746)
+
+-------------------------------------------------------------------
Wed Apr 8 15:17:20 CEST 2009 - ug@suse.de
- don't log <ask> via milestone anymore (bnc#492746)
Modified: branches/tmp/SLE-11-SP1-Stash/autoinstallation/src/clients/inst_autoconfigure.ycp
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/SLE-11-SP1-Stash/autoinstallation/src/clients/inst_autoconfigure.ycp?rev=57050&r1=57049&r2=57050&view=diff
==============================================================================
--- branches/tmp/SLE-11-SP1-Stash/autoinstallation/src/clients/inst_autoconfigure.ycp (original)
+++ branches/tmp/SLE-11-SP1-Stash/autoinstallation/src/clients/inst_autoconfigure.ycp Mon May 4 11:57:19 2009
@@ -161,7 +161,12 @@
result[res] = Profile::current[res]:[];
i = i + 1;
});
- y2milestone("Calling auto client with: %1", result);
+ if( d["X-SuSE-YaST-AutoLogResource"]:"true" == "true" ) {
+ y2milestone("Calling auto client with: %1", result);
+ } else {
+ y2milestone("logging for resource %1 turned off",resource);
+ y2debug("Calling auto client with: %1", result);
+ }
if (size(result) > 0 )
logStep( sformat (_("Configuring %1"), p));
else
@@ -174,7 +179,12 @@
}
else if (d["X-SuSE-YaST-AutoInstDataType"]:"map" == "map")
{
- y2milestone("Calling auto client with: %1", eval(Profile::current[resource]:$[]));
+ if( d["X-SuSE-YaST-AutoLogResource"]:"true" == "true" ) {
+ y2milestone("Calling auto client with: %1", eval(Profile::current[resource]:$[]));
+ } else {
+ y2milestone("logging for resource %1 turned off",resource);
+ y2debug("Calling auto client with: %1", eval(Profile::current[resource]:$[]));
+ }
if (size(Profile::current[resource]:$[]) > 0 )
logStep( sformat (_("Configuring %1"), p));
else
@@ -190,8 +200,12 @@
logStep( sformat (_("Configuring %1"), p));
else
logStep( sformat (_("Not Configuring %1"), p));
-
- y2milestone("Calling auto client with: %1", eval(Profile::current[resource]:[]));
+ if( d["X-SuSE-YaST-AutoLogResource"]:"true" == "true" ) {
+ y2milestone("Calling auto client with: %1", eval(Profile::current[resource]:$[]));
+ } else {
+ y2milestone("logging for resource %1 turned off",resource);
+ y2debug("Calling auto client with: %1", eval(Profile::current[resource]:$[]));
+ }
//Call::Function(module_auto, ["Import", eval(Profile::current[resource]:[]) ]);
processWait( resource, "pre-modules" );
Call::Function(module_auto, ["Write"]);
Modified: branches/tmp/SLE-11-SP1-Stash/autoinstallation/src/modules/Y2ModuleConfig.ycp
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/SLE-11-SP1-Stash/autoinstallation/src/modules/Y2ModuleConfig.ycp?rev=57050&r1=57049&r2=57050&view=diff
==============================================================================
--- branches/tmp/SLE-11-SP1-Stash/autoinstallation/src/modules/Y2ModuleConfig.ycp (original)
+++ branches/tmp/SLE-11-SP1-Stash/autoinstallation/src/modules/Y2ModuleConfig.ycp Mon May 4 11:57:19 2009
@@ -52,7 +52,8 @@
"X-SuSE-YaST-AutoInstDataType",
"X-SuSE-YaST-AutoInstClonable",
"X-SuSE-YaST-AutoInstRequires",
- "X-SuSE-DocTeamID"
+ "X-SuSE-DocTeamID",
+ "X-SuSE-YaST-AutoLogResource"
];
Desktop::Read(Values);
map