Mailinglist Archive: yast-devel (73 mails)

< Previous Next >
Re: [yast-devel] use ALog::Item - use SCR?
  • From: Michal Svec <msvec@xxxxxxx>
  • Date: Fri, 8 Aug 2008 11:01:36 +0200 (CEST)
  • Message-id: <alpine.LNX.1.10.0808081058370.25191@xxxxxxxxx>

On Thu, 7 Aug 2008, Martin Vidner wrote:

On Wed, Aug 06, 2008 at 10:33:01PM +0200, Michal Svec wrote:
Can't we get this information from SCR, without calling explicitely some
functions (which is going to be error prone)?

For instance the example above could be generated from SCR (layer), one
would (more or less :) only need .path -> file/function translation to
create such a log.

SCR could do it if that was a reuqirement from early on, but I am
afraid that it is not quite suited for this use at this point. In
other words, it would be rather "much more" than "less" I think.

Sure, this was just an idea.

Anyway, we can see how that would look like from watching what goes
through SCR:
Y2DEBUG=1 (or [Debug] scr=true in log.conf), then
egrep -A3 'executeSubagentCommand: (Write|Execute)' y2log

It actually looks somehow similar (up to slight syntax differences) to what you suggested, see the attached output from one run of the yast2 security module.

Michal2008-08-08 10:50:25 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):573
ScriptingAgent::executeSubagentCommand: Execute
2008-08-08 10:50:25 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):574 path: .target.bash_output
2008-08-08 10:50:25 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):575 arg: "pam-config -q --pwcheck"
2008-08-08 10:50:25 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):576 opt: null
--
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):573
ScriptingAgent::executeSubagentCommand: Write
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):574 path: .etc.login_defs.FAIL_DELAY
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):575 arg: "1"
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):576 opt: null
--
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):573
ScriptingAgent::executeSubagentCommand: Write
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):574 path:
.sysconfig.displaymanager.DISPLAYMANAGER_SHUTDOWN
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):575 arg: "all"
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):576 opt: null
--
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):573
ScriptingAgent::executeSubagentCommand: Write
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):574 path:
.sysconfig.locate.RUN_UPDATEDB_AS
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):575 arg: "nobody"
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):576 opt: null
--
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):573
ScriptingAgent::executeSubagentCommand: Write
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):574 path:
.sysconfig.sysctl.ENABLE_SYSRQ
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):575 arg: "yes"
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):576 opt: null
--
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):573
ScriptingAgent::executeSubagentCommand: Write
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):574 path: .etc.login_defs
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):575 arg: nil
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):576 opt: null
--
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):573
ScriptingAgent::executeSubagentCommand: Write
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):574 path: .sysconfig.displaymanager
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):575 arg: nil
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):576 opt: null
--
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):573
ScriptingAgent::executeSubagentCommand: Write
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):574 path: .sysconfig.locate
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):575 arg: nil
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):576 opt: null
--
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):573
ScriptingAgent::executeSubagentCommand: Write
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):574 path: .sysconfig.sysctl
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):575 arg: nil
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):576 opt: null
--
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):573
ScriptingAgent::executeSubagentCommand: Write
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):574 path: .etc.inittab.ca
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):575 arg: ":ctrlaltdel:/sbin/shutdown
-r -t 4 now"
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):576 opt: null
--
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):573
ScriptingAgent::executeSubagentCommand: Write
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):574 path: .etc.inittab
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):575 arg: nil
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):576 opt: null
--
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):573
ScriptingAgent::executeSubagentCommand: Execute
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):574 path: .target.bash
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):575 arg: "/sbin/telinit q"
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):576 opt: null
--
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):573
ScriptingAgent::executeSubagentCommand: Write
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):574 path:
.etc.default.passwd."CRYPT_FILES"
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):575 arg: "blowfish"
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):576 opt: null
--
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):573
ScriptingAgent::executeSubagentCommand: Execute
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):574 path: .target.bash_output
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):575 arg: "pam-config -a
--pwcheck-cracklib"
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):576 opt: null
--
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):573
ScriptingAgent::executeSubagentCommand: Execute
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):574 path: .target.bash_output
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):575 arg: "pam-config -d
--pwcheck-no_obscure_checks"
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):576 opt: null
--
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):573
ScriptingAgent::executeSubagentCommand: Execute
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):574 path: .target.bash_output
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):575 arg: "pam-config -d
--pwcheck-minlen="
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):576 opt: null
--
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):573
ScriptingAgent::executeSubagentCommand: Execute
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):574 path: .target.bash_output
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):575 arg: "pam-config -d
--pwcheck-remember="
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):576 opt: null
--
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):573
ScriptingAgent::executeSubagentCommand: Execute
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):574 path: .target.bash
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):575 arg: "echo 1 >
/proc/sys/kernel/sysrq"
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):576 opt: null
--
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):573
ScriptingAgent::executeSubagentCommand: Execute
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):574 path: .target.bash
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):575 arg: "/sbin/SuSEconfig --module
kde3"
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):576 opt: null
--
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):573
ScriptingAgent::executeSubagentCommand: Execute
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):574 path: .target.bash
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):575 arg: "/sbin/SuSEconfig --module
kdm4"
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):576 opt: null
--
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):573
ScriptingAgent::executeSubagentCommand: Execute
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):574 path: .target.bash
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):575 arg: "/sbin/SuSEconfig --module
permissions"
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):576 opt: null
--
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):573
ScriptingAgent::executeSubagentCommand: Execute
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):574 path: .target.bash
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):575 arg: "/sbin/SuSEconfig --module
profiles"
2008-08-08 10:50:29 <0> glum(32548) [scr]
ScriptingAgent.cc(executeSubagentCommand):576 opt: null
< Previous Next >
Follow Ups