forked from security/hakurei
system/dbus: share host net ns for abstract
Host abstract unix sockets are only accessible when also in the init net ns. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -98,9 +98,8 @@ func (p *Proxy) Start() error {
|
||||
for _, name := range upstreamPaths {
|
||||
z.Bind(name, name, 0)
|
||||
}
|
||||
if len(upstreamPaths) == 0 {
|
||||
z.HostAbstract = true
|
||||
}
|
||||
z.HostNet = len(upstreamPaths) == 0
|
||||
z.HostAbstract = z.HostNet
|
||||
|
||||
// parent directories of bind paths
|
||||
sockDirPaths := make([]*container.Absolute, 0, 2)
|
||||
|
||||
Reference in New Issue
Block a user