Mailinglist Archive: yast-commit (953 mails)

< Previous Next >
[yast-commit] r49733 - in /trunk/auditd/src: Auditd.ycp dialogs.ycp
  • From: gs@xxxxxxxxxxxxxxxx
  • Date: Tue, 05 Aug 2008 15:55:28 -0000
  • Message-id: <20080805155528.7219739CFF@xxxxxxxxxxxxxxxx>
Author: gs
Date: Tue Aug 5 17:55:28 2008
New Revision: 49733

URL: http://svn.opensuse.org/viewcvs/yast?rev=49733&view=rev
Log:
restart auditd and call auditctl -R in Write()

Modified:
trunk/auditd/src/Auditd.ycp
trunk/auditd/src/dialogs.ycp

Modified: trunk/auditd/src/Auditd.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/auditd/src/Auditd.ycp?rev=49733&r1=49732&r2=49733&view=diff
==============================================================================
--- trunk/auditd/src/Auditd.ycp (original)
+++ trunk/auditd/src/Auditd.ycp Tue Aug 5 17:55:28 2008
@@ -41,6 +41,7 @@
import "Popup";
import "Mode";
import "FileUtils";
+import "Service";


/**
@@ -418,14 +419,19 @@
if(!success) Report::Error (_("Cannot write settings to auditd.conf.") );
sleep(sl);

- // run SuSEconfig
+ // restart auditd
+ integer exitCode = Service::RunInitScript( "auditd", "restart" );
+
if(PollAbort()) return false;
Progress::NextStage ();
success = WriteAuditdRules();
/* Error message */
if(!success) Report::Error (_("Cannot write settings to auditd.rules.") );
sleep(sl);
-
+
+ // call auditctl -R audit.rules
+ success = (boolean)SCR::Execute( .target.bash, "auditctl -R
/etc/audit/audit.rules" );
+
if(PollAbort()) return false;
return true;
}

Modified: trunk/auditd/src/dialogs.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/auditd/src/dialogs.ycp?rev=49733&r1=49732&r2=49733&view=diff
==============================================================================
--- trunk/auditd/src/dialogs.ycp (original)
+++ trunk/auditd/src/dialogs.ycp Tue Aug 5 17:55:28 2008
@@ -195,7 +195,7 @@
)
) ) ,
`VWeight( 80, `VBox(
- `Left(`Label(_("Current rules
for audit daemon:") ) ),
+ `Left(`Label(_("Edit rules for
audit daemon here:") ) ),
`MultiLineEdit(`id("rules"),
Auditd::GetRulesFile() )
)
),

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages