Documentation ¶
Overview ¶
Package user contains methods for resolving filesystem paths based on the user and their environment.
Index ¶
- func MaybeAddExecUserHome(ctx context.Context, mns *fs.MountNamespace, uid auth.KUID, envv []string) ([]string, error)
- func MaybeAddExecUserHomeVFS2(ctx context.Context, vmns *vfs.MountNamespace, uid auth.KUID, envv []string) ([]string, error)
- func ResolveExecutablePath(ctx context.Context, args *kernel.CreateProcessArgs) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MaybeAddExecUserHome ¶
func MaybeAddExecUserHome(ctx context.Context, mns *fs.MountNamespace, uid auth.KUID, envv []string) ([]string, error)
MaybeAddExecUserHome returns a new slice with the HOME enviroment variable set if the slice does not already contain it, otherwise it returns the original slice unmodified.
func MaybeAddExecUserHomeVFS2 ¶
func MaybeAddExecUserHomeVFS2(ctx context.Context, vmns *vfs.MountNamespace, uid auth.KUID, envv []string) ([]string, error)
MaybeAddExecUserHomeVFS2 returns a new slice with the HOME enviroment variable set if the slice does not already contain it, otherwise it returns the original slice unmodified.
func ResolveExecutablePath ¶
ResolveExecutablePath resolves the given executable name given the working dir and environment.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.