GO-2023-1803 : In Lima, a malicious disk image could read a single file on the host filesystem as a qcow2/vmdk backing file in github.com/lima-vm/lima
Discover Packages
github.com/lima-vm/lima
pkg
guestagent
procnettcp
package
Version:
v0.14.0-beta.0
Opens a new window with list of versions in this module.
Published: Nov 16, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 9
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
ParseAddress parses a string, e.g.,
"0100007F:0050" (127.0.0.1:80)
"000080FE00000000FF57A6705DC771FE:0050" ([fe80::70a6:57ff:fe71:c75d]:80)
"00000000000000000000000000000000:0050" (0.0.0.0:80)
See https://serverfault.com/questions/592574/why-does-proc-net-tcp6-represents-1-as-1000
ParseAddress is expected to be used for /proc/net/{tcp,tcp6} entries on
little endian machines.
Not sure how those entries look like on big endian machines.
type Entry struct {
Kind Kind `json:"kind"`
IP net .IP `json:"ip"`
Port uint16 `json:"port"`
State State `json:"state"`
}
ParseFiles parses /proc/net/{tcp, tcp6}
const (
TCP Kind = "tcp"
TCP6 Kind = "tcp6"
)
const (
TCPEstablished State = 0x1
TCPListen State = 0xA
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.