checks

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package checks implements code which checks permissions of socket files to mitigate the possibility of a non-root attacker messing with socketservice communications channel.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSocketFile

func CheckSocketFile(socketPath string) error

CheckSocketFile ensures the naming, mode (perms, filetype) and ownership (uid, gid) of a Unix socket match what we create in a Fleetspeak socket service. This gives us some extra security. Note that using os.Lstat here prevents confusing FS with symlink tricks.

If the returned error is a os.IsNotExist, then a Fleetspeak socket didn't exist. This condition may be retriable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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