_nsenter

package
v1.4.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

* Copyright (c) 2025 System233 * * This software is released under the MIT License. * https://opensource.org/licenses/MIT

Index

Constants

This section is empty.

Variables

View Source
var NsEnterFlag struct {
	Pid      int
	Gid      int
	Uid      int
	NsType   []string
	Keep     bool
	NoFail   bool
	Quiet    bool
	Args     []string
	ProcPath string
}

Functions

func GetExecArgs

func GetExecArgs() []string

func GetGid

func GetGid() (int, error)

func GetUid

func GetUid() (int, error)

func NsEnterMain

func NsEnterMain(cmd *cobra.Command, args []string) error

func NsEnterNsEnterCommand

func NsEnterNsEnterCommand() *cobra.Command

func NsSetupUser

func NsSetupUser() error

func ReadMapping

func ReadMapping(mapPath string) ([]syscall.SysProcIDMap, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL