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 ...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: jonas.licht
Keywords: PATCH, PullRequest
Depends on:
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: ---

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

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:

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

# login issue
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