forked from security/hakurei
internal/app: hold config address in state
This can be removed eventually as it is barely used. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -19,9 +19,9 @@ func init() { gob.Register(spFinal{}) }
|
||||
// It exists to avoid reordering the expected entries in test cases.
|
||||
type spFinal struct{}
|
||||
|
||||
func (s spFinal) toSystem(state *outcomeStateSys, config *hst.Config) error {
|
||||
func (s spFinal) toSystem(state *outcomeStateSys) error {
|
||||
// append ExtraPerms last
|
||||
for _, p := range config.ExtraPerms {
|
||||
for _, p := range state.config.ExtraPerms {
|
||||
if p == nil || p.Path == nil {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user