netlisten

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package netlisten compares code shared by security.NetworkListeners tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPorts

func CheckPorts(ctx context.Context, s *testing.State, expected map[string]string)

CheckPorts compares processes listening for TCP connections against an expected set. The keys in expected take the form "<addr>:<port>", with "*" used to indicate "any address" for both IPv4 and IPv6 (e.g. "*:22" or "127.0.0.1:80"). The values are absolute paths to the executables that should be listening on the ports (e.g. "/usr/sbin/sshd"). Testing-related processes are automatically excluded.

func Common

func Common(cr *chrome.Chrome) map[string]string

Common returns well-known network listeners shared between all security.NetworkListeners* tests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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