Bug 254633

Summary: security/gvmd: Set PATH prior to startup
Product: Ports & Packages Reporter: Eirik Oeverby <ltning-freebsd>
Component: Individual Port(s)Assignee: Jose Alonso Cardenas Marquez <acm>
Status: Open ---    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (acm)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Description Flags
Patch for rc.d/gvmd none

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.