Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 905411 - =net-analyzer/gsad-21.4.4 fails to start on systemd using forking and has an issue with PCRE2 that does not allow to login
Summary: =net-analyzer/gsad-21.4.4 fails to start on systemd using forking and has an ...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: jonas.licht
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks:
 
Reported: 2023-05-01 10:15 UTC by Giuseppe Foti
Modified: 2023-06-27 08:20 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for login issue (gsad-21.4.4-r1-fix-PCRE2-user-validation-regex.patch,2.98 KB, patch)
2023-05-01 10:15 UTC, Giuseppe Foti
Details | Diff
patch for startup issue (gsad-21.4.4-r1-change-service-start-up-type-from-forking-to-exec.patch,501 bytes, patch)
2023-05-01 10:15 UTC, Giuseppe Foti
Details | Diff
Proposed r1 ebuild (gsad-21.4.4-r1.ebuild,2.44 KB, text/plain)
2023-05-01 10:17 UTC, Giuseppe Foti
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Giuseppe Foti 2023-05-01 10:15:25 UTC
Created attachment 861006 [details, diff]
patch for login issue

In gsad ebuild we need to patch files to address those issues:
https://forum.greenbone.net/t/gsad-problems/13121
https://forum.greenbone.net/t/kali-cant-create-gvm-user-throws-an-error-failed-to-create-user-invalid-characters-in-user-name/13062/51?page=3

The problem on starting gsad service via systemd arise allways and the service fails with lines like

gsad main:CRITICAL:2023-05-01 08h35.50 utc:856890: main: Could not write PID file.

reported in log file.

The problem arising on user creation (reported in linked post) has to be addressed in gvmd (I sent a patch on a related bug), but the same problem needs to be addressed in gsad.

In the attached patch I introduced these github commits:

# systemd start
https://github.com/greenbone/gsad/pull/84/files

# login issue
https://github.com/greenbone/gsad/commit/62c4c9180e8f94e0b148dbba15cca9d886079f57
Comment 1 Giuseppe Foti 2023-05-01 10:15:56 UTC
Created attachment 861007 [details, diff]
patch for startup issue
Comment 2 Giuseppe Foti 2023-05-01 10:17:13 UTC
Created attachment 861008 [details]
Proposed r1 ebuild