GO-2024-2692 : Pebble service manager's file pull API allows access by any user in github.com/canonical/pebble
Discover Packages
github.com/canonical/pebble
internals
ptyutil
package
Version:
v1.3.0
Opens a new window with list of versions in this module.
Published: Sep 3, 2023
License: GPL-3.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Rendered for
linux/amd64
windows/amd64
darwin/amd64
js/wasm
func GetSize(fd int) (int, int, error)
func IsTerminal(fd int) bool
func OpenPty(uid, gid int64) (*os.File, *os.File, error)
func OpenPtyInDevpts(devpts_fd int, uid, gid int64) (*os.File, *os.File, error)
func Restore(fd int, state *State) error
func SetSize(fd int, width int, height int) (err error)
type State
GetSize returns the dimensions of the given terminal.
IsTerminal returns true if the given file descriptor is a terminal.
OpenPty creates a new PTS pair, configures them and returns them.
OpenPtyInDevpts creates a new PTS pair, configures them and returns them.
Restore restores the terminal connected to the given file descriptor to a previous state.
SetSize sets the dimensions of the terminal associated with fd.
State contains the state of a terminal.
GetState returns the current state of a terminal which may be useful to restore the terminal after a signal.
MakeRaw put the terminal connected to the given file descriptor into raw mode and returns the previous state of the terminal so that it can be restored.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.