Bug 254633 - security/gvmd: Set PATH prior to startup
Summary: security/gvmd: Set PATH prior to startup
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jose Alonso Cardenas Marquez
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-28 20:58 UTC by Eirik Oeverby
Modified: 2021-04-16 17:23 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (acm)


Attachments
Patch for rc.d/gvmd (387 bytes, text/plain)
2021-03-28 20:58 UTC, Eirik Oeverby
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eirik Oeverby 2021-03-28 20:58:06 UTC
Created attachment 223676 [details]
Patch for rc.d/gvmd

gvmd expects to find various binaries in PATH, so this should be set to include /usr/local/(bin|sbin) explicitly. If there's a better way to do this, feel free to substitute.
Comment 1 Jose Alonso Cardenas Marquez freebsd_committer 2021-04-16 17:21:31 UTC
What is the problem if PATH is not defined into rc script?. I think this change is not necessary. PATH is a environment variable and it should include those path by default
Comment 2 Eirik Oeverby 2021-04-16 17:23:57 UTC
(In reply to Jose Alonso Cardenas Marquez from comment #1)
/usr/local/bin and /usr/local/sbin are not in the default PATH. Various scripts and external commands run by gvm expects binaries to be in the path, so it has to be set before the daemons start.