| Summary: | =net-analyzer/fail2ban-0.10.4 - src_test(): sandbox violation in find /var/log -name system.journal at /var/log/sandbox | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Paolo Pedroni <paolo.pedroni> |
| Component: | Current packages | Assignee: | Gentoo Netmon project <netmon> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | fail2ban-0.10.4:20190327-080014.log.gz | ||
|
Description
Paolo Pedroni
2019-03-27 08:51:20 UTC
FEATURES=-usersandbox fixes the sandbox violations, but test failures are still there:
>>> Test phase: net-analyzer/fail2ban-0.10.4
Fail2ban 0.10.4 test suite. Python 3.6.5 (default, Jan 4 2019, 12:57:55) [GCC 8.2.0]. Please wait...
....................................................................F.......................................................................................................warning: build_py: byte-compiling is disabled, skipping.
warning: install_lib: byte-compiling is disabled, skipping.
............................................................................................................................................................................................................
.................................ssssss................E..FFF.......
======================================================================
ERROR: testJournalFilesArg (fail2ban.tests.filtertestcase.MonitorJournalFailures<FilterSystemd>(monitorjournalfailures_FilterSystemd))
----------------------------------------------------------------------
Traceback (most recent call last):
File "./fail2ban/tests/filtertestcase.py", line 1279, in testJournalFilesArg
self._initFilter(journalfiles=jrnlfile)
File "./fail2ban/tests/filtertestcase.py", line 1236, in _initFilter
self.filter = Filter_(self.jail, **kwargs)
File "./fail2ban/server/filtersystemd.py", line 62, in __init__
self.__journal = journal.Reader(**jrnlargs)
File "/usr/lib64/python3.6/site-packages/systemd/journal.py", line 166, in __init__
super(Reader, self).__init__(flags, path, files)
PermissionError: [Errno 13] Permission denied
======================================================================
FAIL: testExecuteWithVars (fail2ban.tests.actiontestcase.CommandActionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "./fail2ban/tests/actiontestcase.py", line 417, in testExecuteWithVars
' -- `Very | very $(bad & worst hacker)` --', all=True)
File "./fail2ban/tests/utils.py", line 802, in assertLogged
((', waited %s' % wait) if wait else ''), logged))
AssertionError: ' -- `Very | very $(bad & worst hacker)` --' was not found in the log: ===
Created <class 'fail2ban.server.action.CommandAction'>
printf %b "foreign input:\n -- $f2bV_A --\n -- $f2bV_B --\n -- $(echo -n $f2bV_C) --"
7f784d9ff808 -- stdout: 'foreign input:'
7f784d9ff808 -- stdout: " -- I'm a hacker; && $(echo $f2bV_B) --"
7f784d9ff808 -- stdout: ' -- I"m very bad hacker --'
7f784d9ff808 -- stdout: ' -- -n `Very | very $(bad & worst hacker)` --'
7f784d9ff808 -- returned successfully 0
===
======================================================================
FAIL: test_WrongChar (fail2ban.tests.filtertestcase.MonitorJournalFailures<FilterSystemd>(monitorjournalfailures_FilterSystemd))
----------------------------------------------------------------------
Traceback (most recent call last):
File "./fail2ban/tests/filtertestcase.py", line 1394, in test_WrongChar
self.assertTrue(self.isFilled(10))
AssertionError: False is not true
======================================================================
FAIL: test_delJournalMatch (fail2ban.tests.filtertestcase.MonitorJournalFailures<FilterSystemd>(monitorjournalfailures_FilterSystemd))
----------------------------------------------------------------------
Traceback (most recent call last):
File "./fail2ban/tests/filtertestcase.py", line 1363, in test_delJournalMatch
self.assert_correct_ban("193.168.0.128", 3)
File "./fail2ban/tests/filtertestcase.py", line 1299, in assert_correct_ban
self.assertTrue(self.waitFailTotal(test_attempts, 10)) # give Filter a chance to react
AssertionError: False is not true
======================================================================
FAIL: test_grow_file (fail2ban.tests.filtertestcase.MonitorJournalFailures<FilterSystemd>(monitorjournalfailures_FilterSystemd))
----------------------------------------------------------------------
Traceback (most recent call last):
File "./fail2ban/tests/filtertestcase.py", line 1311, in test_grow_file
self._test_grow_file()
File "./fail2ban/tests/filtertestcase.py", line 1339, in _test_grow_file
self.assertTrue(self.isFilled(10))
AssertionError: False is not true
----------------------------------------------------------------------
Ran 444 tests in 54.934s
FAILED (failures=4, errors=1, skipped=6)
* ERROR: net-analyzer/fail2ban-0.10.4::gentoo failed (test phase):
* tests failed with python3.6
In src_test() it calls `find $(systemd-path ...`. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c83d223b009069602d896da6eb321aa4ac254db commit 2c83d223b009069602d896da6eb321aa4ac254db Author: Jeroen Roovers <jer@gentoo.org> AuthorDate: 2019-03-27 09:43:19 +0000 Commit: Jeroen Roovers <jer@gentoo.org> CommitDate: 2019-03-27 09:45:02 +0000 net-analyzer/fail2ban: RESTRICT=test Fixes: https://bugs.gentoo.org/659010 Fixes: https://bugs.gentoo.org/681838 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Jeroen Roovers <jer@gentoo.org> net-analyzer/fail2ban/fail2ban-0.10.4-r1.ebuild | 110 ++++++++++++++++++++++++ net-analyzer/fail2ban/fail2ban-0.10.4.ebuild | 9 +- net-analyzer/fail2ban/fail2ban-99999999.ebuild | 7 +- 3 files changed, 113 insertions(+), 13 deletions(-) *** This bug has been marked as a duplicate of bug 659004 *** |