From 4a428b13b20baf055e7e70ecb51a87299f0c6d8e Mon Sep 17 00:00:00 2001 From: Fabricio Voznika Date: Tue, 29 Sep 2020 15:47:25 -0700 Subject: Add /proc/[pid]/cwd PiperOrigin-RevId: 334478850 --- pkg/sentry/fsimpl/proc/task.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/sentry/fsimpl/proc/task.go') diff --git a/pkg/sentry/fsimpl/proc/task.go b/pkg/sentry/fsimpl/proc/task.go index 1f99183eb..a7cd6f57e 100644 --- a/pkg/sentry/fsimpl/proc/task.go +++ b/pkg/sentry/fsimpl/proc/task.go @@ -53,6 +53,7 @@ func (fs *filesystem) newTaskInode(task *kernel.Task, pidns *kernel.PIDNamespace "auxv": fs.newTaskOwnedFile(task, fs.NextIno(), 0444, &auxvData{task: task}), "cmdline": fs.newTaskOwnedFile(task, fs.NextIno(), 0444, &cmdlineData{task: task, arg: cmdlineDataArg}), "comm": fs.newComm(task, fs.NextIno(), 0444), + "cwd": fs.newCwdSymlink(task, fs.NextIno()), "environ": fs.newTaskOwnedFile(task, fs.NextIno(), 0444, &cmdlineData{task: task, arg: environDataArg}), "exe": fs.newExeSymlink(task, fs.NextIno()), "fd": fs.newFDDirInode(task), -- cgit v1.2.3