Documentation ¶
Index ¶
- Constants
- Variables
- func CheckSysRequirements()
- func ConcatStrings(args ...string) string
- func Exec(executable string, args []string) (string, error)
- func Exists(path string) bool
- func ExpandPath(path string) (string, error)
- func GetFileModTime(filepath string) (time.Time, error)
- func GetHostname() string
- func GetKernelVersion() string
- func IsAbsPath(path string) bool
- func LoadEbpfModule(module, path string) (m *elf.Module, err error)
- func ReadGzipFile(filename string) ([]byte, error)
- func Trim(s string) string
Constants ¶
View Source
const ( Name = "opensnitch-daemon" Version = "1.7.0" Author = "Simone 'evilsocket' Margaritelli" Website = "https://github.com/evilsocket/opensnitch" )
version related consts
Variables ¶
View Source
var ( // IPv6Enabled indicates if IPv6 protocol is enabled in the system IPv6Enabled = Exists("/proc/sys/net/ipv6") )
Functions ¶
func CheckSysRequirements ¶
func CheckSysRequirements()
CheckSysRequirements checks system features we need to work properly
func ConcatStrings ¶
ConcatStrings joins the provided strings.
func ExpandPath ¶
ExpandPath replaces '~' shorthand with the user's home directory.
func GetFileModTime ¶
GetFileModTime checks if a file has been modified.
func GetHostname ¶
func GetHostname() string
GetHostname returns the name of the host where the daemon is running.
func LoadEbpfModule ¶
LoadEbpfModule loads the given eBPF module, from the given path if specified. Otherwise t'll try to load the module from several default paths.
func ReadGzipFile ¶
ReadGzipFile reads a gzip to text.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.