Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- ini-agent: added Write(.section_private.SECTION, BOOLEAN) (bnc#7136…
…61, CVE-2011-3177) - system agent: added Write(.target.string, [filename, mode], content) svn merge -r66758:66764 http://svn.opensuse.org/svn/yast/branches/SuSE-Code-11-SP2-Branch/core svn path=/trunk/core/; revision=67117
- Loading branch information
Showing
17 changed files
with
239 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 2.22.0 | ||
| 2.22.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| [agent-ini] IniParser.cc(parse):XXX Rewriting multi/private.in.1.test to 1 | ||
| [agent-ini] IniParser.cc(parse):XXX Rewriting multi/private.in.2.test to 2 | ||
| [agent-ini] IniFile.cc(setMyValue):XXX Adding value .v."1"."Totalise"."Password" = "Secret password" | ||
| [agent-ini] IniFile.cc(setMyValue):XXX Adding value .v."2"."arcor"."Password" = "Public password" | ||
| [agent-ini] IniParser.cc(parse):XXX Rewriting multi/private.in.1.test to 1 | ||
| [agent-ini] IniParser.cc(parse):XXX Rewriting multi/private.in.2.test to 2 | ||
| [agent-ini] IniParser.cc(getFileName):XXX Rewriting 1 to multi/private.in.1.test | ||
| [agent-ini] IniParser.cc(getFileName):XXX Rewriting 2 to multi/private.in.2.test | ||
| [YCP] multi/private.ycp:XXX secret file mode: $["exit":0, "stderr":"", "stdout":"600\n"] | ||
| [YCP] multi/private.ycp:XXX public file mode: $["exit":0, "stderr":"", "stdout":"644\n"] | ||
| [agent-ini] IniParser.cc(write):XXX File multi/private.in.*.test did not change. Not saving. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| [Dialer Totalise] | ||
| Compuserve = 0 | ||
| Provider = Totalise | ||
| Phone = 08453001470 | ||
| [End] | ||
|
|
||
| [Dialer force9] | ||
| Provider = Force9 | ||
| Phone = 08451424000 | ||
| [End] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| [Dialer arcor] | ||
| Compuserve = 0 | ||
| Provider = Arcor | ||
| [End] | ||
|
|
||
| [Dialer mobilcom] | ||
| Compuserve = 0 | ||
| Provider = Mobilcom | ||
| Phone = 0101901929 | ||
| [End] | ||
|
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| (nil) | ||
| multi/private.in.1.test ------------------------------- | ||
| [Dialer Totalise] | ||
| Compuserve = 0 | ||
| Provider = Totalise | ||
| Phone = 08453001470 | ||
| Password = Secret password | ||
| [End] | ||
|
|
||
| [Dialer force9] | ||
| Provider = Force9 | ||
| Phone = 08451424000 | ||
| [End] | ||
| multi/private.in.2.test ------------------------------- | ||
| [Dialer arcor] | ||
| Compuserve = 0 | ||
| Provider = Arcor | ||
| Password = Public password | ||
| [End] | ||
|
|
||
| [Dialer mobilcom] | ||
| Compuserve = 0 | ||
| Provider = Mobilcom | ||
| Phone = 0101901929 | ||
| [End] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| . | ||
|
|
||
| `ag_ini( | ||
| `IniAgent( [ "multi/private.in.*.test" ], | ||
| $[ | ||
| "rewrite" : [ | ||
| [ "multi/private\.in\.(.)\.test$", "multi/private.in.%s.test"], | ||
| ], | ||
| "subindent" : " ", | ||
| "comments": [ "^[ \t]*#.*", "^[ \t]*$" ], | ||
| "sections" : [ | ||
| $[ | ||
| "begin" : [ "[ \t]*\\[Dialer[ \t]+(.*[^ \t])[ \t]*\\][ \t]*", "[Dialer %s]" ], | ||
| "end" : [ "^[ \t]*\\[End\\][ \t]*$", "[End]", ], | ||
| ], | ||
| ], | ||
| "params" : [ | ||
| $[ | ||
| "match" : [ "^[ \t]*([^=]*[^ \t=])[ \t]*=[ \t]*(.*[^ \t]|)[ \t]*$" , "%s = %s"], | ||
| ], | ||
| ], | ||
| ] | ||
| ) | ||
| ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| // | ||
| // Multiple files test | ||
| // | ||
| // providers.rpm | ||
| // | ||
|
|
||
|
|
||
| { | ||
| SCR::RegisterAgent (.target, `ag_system ()); | ||
| any out = nil; | ||
|
|
||
| SCR::Write (.v."1"."Totalise"."Password", "Secret password"); | ||
| SCR::Write (.section_private."1", true); | ||
|
|
||
| SCR::Write (.v."2"."arcor"."Password", "Public password"); | ||
|
|
||
| SCR::Write (., nil); //flush | ||
|
|
||
| out = SCR::Execute (.target.bash_output, "stat -c %a multi/private.in.1.test"); | ||
| y2milestone("secret file mode: %1", out); | ||
|
|
||
| out = SCR::Execute (.target.bash_output, "stat -c %a multi/private.in.2.test"); | ||
| y2milestone("public file mode: %1", out); | ||
|
|
||
| return nil; | ||
| } |
Oops, something went wrong.