Project

General

Profile

Bug #8874

Awall fails to read YAML files

Added by Gareth Williams 11 months ago. Updated 11 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
05/11/2018
Due date:
% Done:

0%

Estimated time:

Description

Creating a filter in YAML fails, complaining of not being able to find various 'lyaml' files.

/usr/local/share/lua/5.2/awall/policy.lua:128: module 'lyaml' not found:
no field package.preload['lyaml']
no file '/usr/local/share/lua/5.2/lyaml.lua'
no file '/usr/local/share/lua/5.2/lyaml/init.lua'
no file '/usr/share/lua/5.2/lyaml.lua'
no file '/usr/share/lua/5.2/lyaml/init.lua'
no file '/usr/local/lib/lua/5.2/lyaml.lua'
no file '/usr/local/lib/lua/5.2/lyaml/init.lua'
no file './lyaml.lua'
no file '/usr/lib/lua/5.2/lyaml.lua'
no file '/usr/lib/lua/5.2/lyaml/init.lua'
no file './lyaml.lua'
no file '/usr/local/lib/lua/5.2/lyaml.so'
no file '/usr/local/lib/lua/5.2/loadall.so'
no file '/usr/lib/lua/5.2/lyaml.so'
no file '/usr/lib/lua/5.2/loadall.so'
no file './lyaml.so'
stack traceback:
/usr/local/share/lua/5.2/awall/uerror.lua:25: in function
</usr/local/share/lua/5.2/awall/uerror.lua:21>
[C]: in function 'require'
/usr/local/share/lua/5.2/awall/policy.lua:128: in function 'init'
/usr/local/share/lua/5.2/awall/class.lua:31: in function
</usr/local/share/lua/5.2/awall/class.lua:29>
(...tail calls...)
/usr/sbin/awall:163: in function 'f'
/usr/local/share/lua/5.2/awall/uerror.lua:20: in function
</usr/local/share/lua/5.2/awall/uerror.lua:20>
[C]: in function 'xpcall'
/usr/local/share/lua/5.2/awall/uerror.lua:19: in function 'call'
/usr/sbin/awall:156: in main chunk
[C]: in ?

History

#1 Updated by Gareth Williams 11 months ago

The 'lyaml' module is referenced in line 116 of /user/share/lua/5.2/awall/policy.lua

Changing this to 'yaml' works and Awall now accepts YAML config files.

Also available in: Atom PDF