Re: [Shorewall-users] Macro files bug

Andrew Suffield
Sat, 27 Oct 2007 18:16:20 -0000

On Sat, Oct 27, 2007 at 09:57:00AM -0700, Tom Eastep
wrote:
> I realized last night that running Perl scripts in a child is
unsatisfactory
> unless the child is persistent. And even if the child were persistent, the
> script couldn''t do things like add rules that use matches which
Shorewall
> doesn''t support directly (by directly calling
Shorewall::Chains::add_rule()).

Oh yeah. At least one of us is paying attention.

> e) The script includes an implicit "package Shorewall::User;".

Can you do that to the regular extension scripts too? I anticipate
that the "normal" way to use this will be to write all your code in
the initdone(?) script (or suck it in there via ''use'') and
just call
functions using the single-line variant, so you''d want them all to be
in the same package.


Also, while we''re on the subject, please stick:

unshift @INC, @config_dirs;

somewhere early in the compiler, so that ''use'' searches them.