Skip to content

Commit 00cd78c

Browse files
committed
strip the filename from the unix path to be mounted
1 parent 5949fd7 commit 00cd78c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cli/rules/rules.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ func Add(rulesFile libscope.Rules, addProc, procArg, sourceid, rootdir string, r
240240
}
241241

242242
// Mount unix socket from the host into the container
243+
unixPath = filepath.Dir(unixPath) // Strip the filename. We need to mount the dir
243244
// Hack for now, don't mount /var/run/... - it won't work. Just mount /run/...
244245
unixPath = strings.TrimPrefix(unixPath, "/var")
245246
if unixPath != "" {

0 commit comments

Comments
 (0)