summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/control
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry/control')
-rw-r--r--pkg/sentry/control/proc.go23
1 files changed, 12 insertions, 11 deletions
diff --git a/pkg/sentry/control/proc.go b/pkg/sentry/control/proc.go
index 4848a5d2b..6949a3ae5 100644
--- a/pkg/sentry/control/proc.go
+++ b/pkg/sentry/control/proc.go
@@ -95,17 +95,18 @@ func (proc *Proc) Exec(args *ExecArgs, waitStatus *uint32) error {
proc.Kernel.RootUserNamespace())
initArgs := kernel.CreateProcessArgs{
- Filename: args.Filename,
- Argv: args.Argv,
- Envv: args.Envv,
- WorkingDirectory: args.WorkingDirectory,
- Credentials: creds,
- FDMap: fdm,
- Umask: 0022,
- Limits: l,
- MaxSymlinkTraversals: linux.MaxSymlinkTraversals,
- UTSNamespace: proc.Kernel.RootUTSNamespace(),
- IPCNamespace: proc.Kernel.RootIPCNamespace(),
+ Filename: args.Filename,
+ Argv: args.Argv,
+ Envv: args.Envv,
+ WorkingDirectory: args.WorkingDirectory,
+ Credentials: creds,
+ FDMap: fdm,
+ Umask: 0022,
+ Limits: l,
+ MaxSymlinkTraversals: linux.MaxSymlinkTraversals,
+ UTSNamespace: proc.Kernel.RootUTSNamespace(),
+ IPCNamespace: proc.Kernel.RootIPCNamespace(),
+ AbstractSocketNamespace: proc.Kernel.RootAbstractSocketNamespace(),
}
ctx := initArgs.NewContext(proc.Kernel)
mounter := fs.FileOwnerFromContext(ctx)