Mailinglist Archive: yast-devel (116 mails)

< Previous Next >
Re: [yast-devel] [Announcement] Ports for SuSEfirewall added via packages
  • From: Martin Vidner <mvidner@xxxxxxx>
  • Date: Tue, 17 Jun 2008 18:36:22 +0200
  • Message-id: <20080617163622.GD14013@xxxxxxxxxxxxxxxx>
On Wed, Jun 11, 2008 at 12:25:10PM +0200, Lukas Ocilka wrote:
All statically-defined services were dropped in openSUSE 11.1 / SLE 11,
SuSEFirewallServices will only provide conversion to the new type of
services if possible.

Please, make sure your packages provide service definitions for
SuSEfirewall2. See also:
http://en.opensuse.org/SuSEfirewall2/Service_Definitions_Added_via_Packages

What this means for yast module maintainers: you have to change
code:

map<string, any> fw_settings = $[
"services": [ "nfs-server" ],
"display_details": true,
];
map<string,any> fw_cwm_widget =
CWMFirewallInterfaces::CreateOpenFirewallWidget (fw_settings);

The above will not work because "nfs-server" was a definition built
into yast2-firewall, now dropped. You have to poke the target
package maintainer to provide a firewall definition file and change
"services" to (presumably) "service:nfs-server".

Or am I wrong? There seems to be some conversion code:
http://svn.opensuse.org/viewcvs/yast/trunk/yast2/library/network/src/SuSEFirewallServices.ycp?view=diff&r1=48220&r2=48221&pathrev=48221

--
Martin Vidner, YaST developer
http://en.opensuse.org/User:Mvidner

Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
This Thread
References