SYMBOL INDEX (3167 symbols across 263 files) FILE: daemon/conman/connection.go type Connection (line 24) | type Connection struct method parseDirection (line 215) | func (c *Connection) parseDirection(protoType string) bool { method swapFields (line 275) | func (c *Connection) swapFields() { method getDomains (line 292) | func (c *Connection) getDomains(nfp *netfilter.Packet, con *Connection) { method To (line 303) | func (c *Connection) To() string { method String (line 310) | func (c *Connection) String() string { method Serialize (line 323) | func (c *Connection) Serialize() *protocol.Connection { function Parse (line 42) | func Parse(nfp netfilter.Packet, interceptUnknown bool) *Connection { function newConnectionImpl (line 71) | func newConnectionImpl(nfp *netfilter.Packet, c *Connection, protoType s... function NewConnection (line 177) | func NewConnection(nfp *netfilter.Packet) (c *Connection, err error) { function NewConnection6 (line 197) | func NewConnection6(nfp *netfilter.Packet) (c *Connection, err error) { FILE: daemon/conman/connection_test.go function NewTCPPacket (line 17) | func NewTCPPacket() gopacket.Packet { function NewUDPPacket (line 27) | func NewUDPPacket() gopacket.Packet { function EstablishConnection (line 40) | func EstablishConnection(proto, dst string) (net.Conn, error) { function ListenOnPort (line 49) | func ListenOnPort(proto, port string) (net.Listener, error) { function NewPacket (line 58) | func NewPacket(pkt gopacket.Packet) *netfilter.Packet { function NewDummyConnection (line 66) | func NewDummyConnection(src, dst net.IP) *Connection { function TestParseTCPDirection (line 74) | func TestParseTCPDirection(t *testing.T) { function TestParseUDPDirection (line 102) | func TestParseUDPDirection(t *testing.T) { FILE: daemon/core/core.go constant defaultTrimSet (line 14) | defaultTrimSet = "\r\n\t " function Trim (line 18) | func Trim(s string) string { function Exec (line 23) | func Exec(executable string, args []string) (string, error) { function Exists (line 37) | func Exists(path string) bool { function ExpandPath (line 45) | func ExpandPath(path string) (string, error) { function IsAbsPath (line 62) | func IsAbsPath(path string) bool { function GetFileModTime (line 67) | func GetFileModTime(filepath string) (time.Time, error) { function ConcatStrings (line 76) | func ConcatStrings(args ...string) string { FILE: daemon/core/ebpf.go function LoadEbpfModule (line 12) | func LoadEbpfModule(module, path string) (m *ebpf.Collection, err error) { FILE: daemon/core/gzip.go function ReadGzipFile (line 10) | func ReadGzipFile(filename string) ([]byte, error) { FILE: daemon/core/system.go function GetHostname (line 20) | func GetHostname() string { function GetKernelVersion (line 26) | func GetKernelVersion() string { function GetMounts (line 32) | func GetMounts() []string { function IsTraceFSMounted (line 38) | func IsTraceFSMounted() bool { function CheckSysRequirements (line 49) | func CheckSysRequirements() { FILE: daemon/core/version.go constant Name (line 5) | Name = "opensnitch-daemon" constant Version (line 6) | Version = "1.9.0" constant Author (line 7) | Author = "Simone 'evilsocket' Margaritelli" constant Website (line 8) | Website = "https://github.com/evilsocket/opensnitch" FILE: daemon/dns/ebpfhook.go type nameLookupEvent (line 64) | type nameLookupEvent struct type ProbeDefs (line 71) | type ProbeDefs struct type MapDefs (line 78) | type MapDefs struct type dnsDefsT (line 84) | type dnsDefsT struct function findLibc (line 89) | func findLibc() (string, error) { function lookupSymbol (line 101) | func lookupSymbol(elffile *elf.File, symbolName string) (uint64, error) { function ListenerEbpf (line 115) | func ListenerEbpf(ebpfModPath string) error { function dnsWorker (line 254) | func dnsWorker(id int, channel chan []byte, exitChannel chan struct{}) { FILE: daemon/dns/parse.go function GetQuestions (line 9) | func GetQuestions(nfp *netfilter.Packet) (questions []string) { FILE: daemon/dns/systemd/monitor.go type resolvedCallback (line 30) | type resolvedCallback constant SuccessState (line 35) | SuccessState = "success" constant socketPath (line 37) | socketPath = "/run/systemd/resolve/io.systemd.Resolve.Monitor" constant resolvedSubscribeMethod (line 38) | resolvedSubscribeMethod = "io.systemd.Resolve.Monitor.SubscribeQueryResu... constant DNSTypeA (line 41) | DNSTypeA = 1 constant DNSTypeAAAA (line 43) | DNSTypeAAAA = 28 constant DNSTypeCNAME (line 45) | DNSTypeCNAME = 5 constant DNSTypeSOA (line 47) | DNSTypeSOA = 6 type QuestionMonitorResponse (line 52) | type QuestionMonitorResponse struct type KeyType (line 71) | type KeyType struct type RRType (line 79) | type RRType struct type AnswerMonitorResponse (line 86) | type AnswerMonitorResponse struct type MonitorResponse (line 94) | type MonitorResponse struct type ResolvedMonitor (line 104) | type ResolvedMonitor struct method Connect (line 141) | func (r *ResolvedMonitor) Connect() (*varlink.Connection, error) { method connPoller (line 158) | func (r *ResolvedMonitor) connPoller() { method Subscribe (line 178) | func (r *ResolvedMonitor) Subscribe() error { method monitor (line 195) | func (r *ResolvedMonitor) monitor(ctx context.Context, chanResponse ch... method GetDNSResponses (line 218) | func (r *ResolvedMonitor) GetDNSResponses() chan *MonitorResponse { method Exit (line 223) | func (r *ResolvedMonitor) Exit() chan error { method Close (line 228) | func (r *ResolvedMonitor) Close() { method isConnected (line 233) | func (r *ResolvedMonitor) isConnected() bool { function NewResolvedMonitor (line 125) | func NewResolvedMonitor() (*ResolvedMonitor, error) { FILE: daemon/dns/track.go function TrackAnswers (line 20) | func TrackAnswers(packet gopacket.Packet) bool { function Track (line 58) | func Track(resolved string, hostname string) { function Host (line 74) | func Host(resolved string) (host string, found bool) { function HostOr (line 84) | func HostOr(ip net.IP, or string) string { FILE: daemon/firewall/common/common.go type callback (line 25) | type callback type callbackBool (line 26) | type callbackBool type Common (line 30) | type Common struct method ErrorsChan (line 44) | func (c *Common) ErrorsChan() <-chan string { method ErrChanEmpty (line 49) | func (c *Common) ErrChanEmpty() bool { method SendError (line 54) | func (c *Common) SendError(err string) { method SetRulesCheckerInterval (line 74) | func (c *Common) SetRulesCheckerInterval(interval string) { method SetQueueNum (line 87) | func (c *Common) SetQueueNum(qNum uint16) { method IsRunning (line 94) | func (c *Common) IsRunning() bool { method IsFirewallEnabled (line 102) | func (c *Common) IsFirewallEnabled() bool { method IsIntercepting (line 110) | func (c *Common) IsIntercepting() bool { method NewRulesChecker (line 120) | func (c *Common) NewRulesChecker(areRulesLoaded callbackBool, reloadRu... method StopCheckingRules (line 166) | func (c *Common) StopCheckingRules() { method reloadCallback (line 184) | func (c *Common) reloadCallback(callback func()) { function startCheckingRules (line 145) | func startCheckingRules(exitChan <-chan struct{}, rulesChecker *time.Tic... FILE: daemon/firewall/config/config.go type ExprValues (line 38) | type ExprValues struct type ExprStatement (line 54) | type ExprStatement struct type Expressions (line 61) | type Expressions struct type FwRule (line 66) | type FwRule struct type FwChain (line 83) | type FwChain struct method IsInvalid (line 98) | func (fc *FwChain) IsInvalid() bool { type rulesList (line 102) | type rulesList struct type chainsList (line 106) | type chainsList struct type SystemConfig (line 112) | type SystemConfig struct type Config (line 121) | type Config struct method NewSystemFwConfig (line 138) | func (c *Config) NewSystemFwConfig(configPath string, preLoadCb, reLoa... method SetConfigFile (line 159) | func (c *Config) SetConfigFile(file string) { method LoadDiskConfiguration (line 168) | func (c *Config) LoadDiskConfiguration(reload bool) error { method loadConfiguration (line 201) | func (c *Config) loadConfiguration(rawConfig []byte) error { method SaveConfiguration (line 220) | func (c *Config) SaveConfiguration(rawConfig string) error { method StopConfigWatcher (line 238) | func (c *Config) StopConfigWatcher() { method monitorConfigWorker (line 250) | func (c *Config) monitorConfigWorker() { FILE: daemon/firewall/config/config_test.go function preloadConfCallback (line 7) | func preloadConfCallback() { function reloadConfCallback (line 10) | func reloadConfCallback() { function TestNftLoadFromDisk (line 13) | func TestNftLoadFromDisk(t *testing.T) { FILE: daemon/firewall/iptables/iptables.go type Action (line 19) | type Action constant Name (line 23) | Name = "iptables" constant SystemRulePrefix (line 25) | SystemRulePrefix = "opensnitch-filter" constant ADD (line 30) | ADD = Action("-A") constant INSERT (line 31) | INSERT = Action("-I") constant DELETE (line 32) | DELETE = Action("-D") constant FLUSH (line 33) | FLUSH = Action("-F") constant NEWCHAIN (line 34) | NEWCHAIN = Action("-N") constant DELCHAIN (line 35) | DELCHAIN = Action("-X") constant POLICY (line 36) | POLICY = Action("-P") constant DROP (line 38) | DROP = Action("DROP") constant ACCEPT (line 39) | ACCEPT = Action("ACCEPT") type SystemRule (line 43) | type SystemRule struct type SystemChains (line 50) | type SystemChains struct type Iptables (line 56) | type Iptables struct method Name (line 91) | func (ipt *Iptables) Name() string { method Init (line 97) | func (ipt *Iptables) Init(qNum uint16, configPath, monitorInterval str... method Stop (line 121) | func (ipt *Iptables) Stop() { method EnableInterception (line 144) | func (ipt *Iptables) EnableInterception() { method DisableInterception (line 155) | func (ipt *Iptables) DisableInterception(logErrors bool) { method CleanRules (line 162) | func (ipt *Iptables) CleanRules(logErrors bool) { method Serialize (line 168) | func (ipt *Iptables) Serialize() (*protocol.SysFirewall, error) { method Deserialize (line 188) | func (ipt *Iptables) Deserialize(sysfw *protocol.SysFirewall) ([]byte,... function Fw (line 70) | func Fw() (*Iptables, error) { function IsAvailable (line 135) | func IsAvailable() error { FILE: daemon/firewall/iptables/monitor.go method AreRulesLoaded (line 10) | func (ipt *Iptables) AreRulesLoaded() bool { method reloadRulesCallback (line 58) | func (ipt *Iptables) reloadRulesCallback() { method preloadConfCallback (line 66) | func (ipt *Iptables) preloadConfCallback() { FILE: daemon/firewall/iptables/rules.go method getBypassQueue (line 11) | func (ipt *Iptables) getBypassQueue() string { function BuildQueueDNSRule (line 20) | func BuildQueueDNSRule(queueNum uint16, bypass bool) []string { function BuildQueueConnectionsRule (line 35) | func BuildQueueConnectionsRule(queueNum uint16, bypass bool) []string { method RunRule (line 51) | func (ipt *Iptables) RunRule(action Action, enable bool, logError bool, ... method QueueDNSResponses (line 91) | func (ipt *Iptables) QueueDNSResponses(enable bool, logError bool) (err4... method QueueConnections (line 98) | func (ipt *Iptables) QueueConnections(enable bool, logError bool) (error... FILE: daemon/firewall/iptables/system.go method CreateSystemRule (line 11) | func (ipt *Iptables) CreateSystemRule(rule *config.FwRule, table, chain,... method AddSystemRules (line 43) | func (ipt *Iptables) AddSystemRules(reload, backupExistingChains bool) { method DeleteSystemRules (line 69) | func (ipt *Iptables) DeleteSystemRules(force, backupExistingChains, logE... method DeleteSystemRule (line 105) | func (ipt *Iptables) DeleteSystemRule(action Action, rule *config.FwRule... method AddSystemRule (line 123) | func (ipt *Iptables) AddSystemRule(action Action, rule *config.FwRule, t... method ConfigureChainPolicy (line 147) | func (ipt *Iptables) ConfigureChainPolicy(table, hook, policy string, lo... FILE: daemon/firewall/nftables/chains.go function getChainKey (line 15) | func getChainKey(name string, table *nftables.Table) string { function GetChain (line 23) | func GetChain(name string, table *nftables.Table) *nftables.Chain { method AddChain (line 33) | func (n *Nft) AddChain(name, table, family string, priority *nftables.Ch... method GetChain (line 76) | func (n *Nft) GetChain(name string, table *nftables.Table, family string... method addRegularChain (line 89) | func (n *Nft) addRegularChain(name, table, family string) error { method AddInterceptionChains (line 109) | func (n *Nft) AddInterceptionChains() error { method DelChain (line 156) | func (n *Nft) DelChain(chain *nftables.Chain) error { method backupExistingChains (line 169) | func (n *Nft) backupExistingChains() { method restoreBackupChains (line 180) | func (n *Nft) restoreBackupChains() { FILE: daemon/firewall/nftables/chains_test.go function TestChains (line 11) | func TestChains(t *testing.T) { FILE: daemon/firewall/nftables/exprs/counter.go function NewExprCounter (line 8) | func NewExprCounter(counterName string) *[]expr.Any { FILE: daemon/firewall/nftables/exprs/counter_test.go function TestExprNamedCounter (line 11) | func TestExprNamedCounter(t *testing.T) { FILE: daemon/firewall/nftables/exprs/ct.go function NewExprCtMark (line 27) | func NewExprCtMark(setMark bool, value string, cmpOp *expr.CmpOp) (*[]ex... function NewExprCtState (line 55) | func NewExprCtState(ctFlags []*config.ExprValues) (*[]expr.Any, error) { function parseInlineCtStates (line 89) | func parseInlineCtStates(flags string) (found bool, mask uint32, err err... function getCtState (line 106) | func getCtState(flag string) (mask uint32, err error) { FILE: daemon/firewall/nftables/exprs/ct_test.go function TestExprCtMark (line 14) | func TestExprCtMark(t *testing.T) { function TestExprCtState (line 110) | func TestExprCtState(t *testing.T) { FILE: daemon/firewall/nftables/exprs/enums.go constant TABLE_OPENSNITCH (line 5) | TABLE_OPENSNITCH = "opensnitch" constant CHAIN_FILTER_INPUT (line 6) | CHAIN_FILTER_INPUT = "filter_input" constant CHAIN_MANGLE_OUTPUT (line 7) | CHAIN_MANGLE_OUTPUT = "mangle_output" constant CHAIN_MANGLE_FORWARD (line 8) | CHAIN_MANGLE_FORWARD = "mangle_forward" constant NFT_CHAIN_MANGLE (line 11) | NFT_CHAIN_MANGLE = "mangle" constant NFT_CHAIN_FILTER (line 12) | NFT_CHAIN_FILTER = "filter" constant NFT_CHAIN_RAW (line 13) | NFT_CHAIN_RAW = "raw" constant NFT_CHAIN_SECURITY (line 14) | NFT_CHAIN_SECURITY = "security" constant NFT_CHAIN_NATDEST (line 15) | NFT_CHAIN_NATDEST = "natdest" constant NFT_CHAIN_NATSOURCE (line 16) | NFT_CHAIN_NATSOURCE = "natsource" constant NFT_CHAIN_CONNTRACK (line 17) | NFT_CHAIN_CONNTRACK = "conntrack" constant NFT_CHAIN_SELINUX (line 18) | NFT_CHAIN_SELINUX = "selinux" constant NFT_HOOK_INPUT (line 20) | NFT_HOOK_INPUT = "input" constant NFT_HOOK_OUTPUT (line 21) | NFT_HOOK_OUTPUT = "output" constant NFT_HOOK_PREROUTING (line 22) | NFT_HOOK_PREROUTING = "prerouting" constant NFT_HOOK_POSTROUTING (line 23) | NFT_HOOK_POSTROUTING = "postrouting" constant NFT_HOOK_INGRESS (line 24) | NFT_HOOK_INGRESS = "ingress" constant NFT_HOOK_EGRESS (line 25) | NFT_HOOK_EGRESS = "egress" constant NFT_HOOK_FORWARD (line 26) | NFT_HOOK_FORWARD = "forward" constant NFT_TABLE_INET (line 28) | NFT_TABLE_INET = "inet" constant NFT_TABLE_NAT (line 29) | NFT_TABLE_NAT = "nat" constant NFT_TABLE_ARP (line 31) | NFT_TABLE_ARP = "arp" constant NFT_TABLE_BRIDGE (line 32) | NFT_TABLE_BRIDGE = "bridge" constant NFT_TABLE_NETDEV (line 33) | NFT_TABLE_NETDEV = "netdev" constant NFT_FAMILY_IP (line 35) | NFT_FAMILY_IP = "ip" constant NFT_FAMILY_IP6 (line 36) | NFT_FAMILY_IP6 = "ip6" constant NFT_FAMILY_INET (line 37) | NFT_FAMILY_INET = "inet" constant NFT_FAMILY_BRIDGE (line 38) | NFT_FAMILY_BRIDGE = "bridge" constant NFT_FAMILY_ARP (line 39) | NFT_FAMILY_ARP = "arp" constant NFT_FAMILY_NETDEV (line 40) | NFT_FAMILY_NETDEV = "netdev" constant VERDICT_ACCEPT (line 42) | VERDICT_ACCEPT = "accept" constant VERDICT_DROP (line 43) | VERDICT_DROP = "drop" constant VERDICT_REJECT (line 44) | VERDICT_REJECT = "reject" constant VERDICT_RETURN (line 45) | VERDICT_RETURN = "return" constant VERDICT_QUEUE (line 46) | VERDICT_QUEUE = "queue" constant VERDICT_JUMP (line 48) | VERDICT_JUMP = "jump" constant VERDICT_GOTO (line 50) | VERDICT_GOTO = "goto" constant VERDICT_STOP (line 51) | VERDICT_STOP = "stop" constant VERDICT_STOLEN (line 52) | VERDICT_STOLEN = "stolen" constant VERDICT_CONTINUE (line 53) | VERDICT_CONTINUE = "continue" constant VERDICT_MASQUERADE (line 54) | VERDICT_MASQUERADE = "masquerade" constant VERDICT_DNAT (line 55) | VERDICT_DNAT = "dnat" constant VERDICT_SNAT (line 56) | VERDICT_SNAT = "snat" constant VERDICT_REDIRECT (line 57) | VERDICT_REDIRECT = "redirect" constant VERDICT_TPROXY (line 58) | VERDICT_TPROXY = "tproxy" constant NFT_PARM_TO (line 60) | NFT_PARM_TO = "to" constant NFT_QUEUE_NUM (line 62) | NFT_QUEUE_NUM = "num" constant NFT_QUEUE_BY_PASS (line 63) | NFT_QUEUE_BY_PASS = "queue-bypass" constant NFT_MASQ_RANDOM (line 65) | NFT_MASQ_RANDOM = "random" constant NFT_MASQ_FULLY_RANDOM (line 66) | NFT_MASQ_FULLY_RANDOM = "fully-random" constant NFT_MASQ_PERSISTENT (line 67) | NFT_MASQ_PERSISTENT = "persistent" constant NFT_PROTOCOL (line 69) | NFT_PROTOCOL = "protocol" constant NFT_SPORT (line 70) | NFT_SPORT = "sport" constant NFT_DPORT (line 71) | NFT_DPORT = "dport" constant NFT_SADDR (line 72) | NFT_SADDR = "saddr" constant NFT_DADDR (line 73) | NFT_DADDR = "daddr" constant NFT_ICMP_CODE (line 74) | NFT_ICMP_CODE = "code" constant NFT_ICMP_TYPE (line 75) | NFT_ICMP_TYPE = "type" constant NFT_ETHER (line 77) | NFT_ETHER = "ether" constant NFT_IIFNAME (line 79) | NFT_IIFNAME = "iifname" constant NFT_OIFNAME (line 80) | NFT_OIFNAME = "oifname" constant NFT_LOG (line 82) | NFT_LOG = "log" constant NFT_LOG_PREFIX (line 83) | NFT_LOG_PREFIX = "prefix" constant NFT_LOG_LEVEL (line 85) | NFT_LOG_LEVEL = "level" constant NFT_LOG_LEVEL_EMERG (line 86) | NFT_LOG_LEVEL_EMERG = "emerg" constant NFT_LOG_LEVEL_ALERT (line 87) | NFT_LOG_LEVEL_ALERT = "alert" constant NFT_LOG_LEVEL_CRIT (line 88) | NFT_LOG_LEVEL_CRIT = "crit" constant NFT_LOG_LEVEL_ERR (line 89) | NFT_LOG_LEVEL_ERR = "err" constant NFT_LOG_LEVEL_WARN (line 90) | NFT_LOG_LEVEL_WARN = "warn" constant NFT_LOG_LEVEL_NOTICE (line 91) | NFT_LOG_LEVEL_NOTICE = "notice" constant NFT_LOG_LEVEL_INFO (line 92) | NFT_LOG_LEVEL_INFO = "info" constant NFT_LOG_LEVEL_DEBUG (line 93) | NFT_LOG_LEVEL_DEBUG = "debug" constant NFT_LOG_LEVEL_AUDIT (line 94) | NFT_LOG_LEVEL_AUDIT = "audit" constant NFT_LOG_FLAGS (line 95) | NFT_LOG_FLAGS = "flags" constant NFT_CT (line 97) | NFT_CT = "ct" constant NFT_CT_STATE (line 98) | NFT_CT_STATE = "state" constant NFT_CT_SET_MARK (line 99) | NFT_CT_SET_MARK = "set" constant NFT_CT_MARK (line 100) | NFT_CT_MARK = "mark" constant CT_STATE_NEW (line 101) | CT_STATE_NEW = "new" constant CT_STATE_ESTABLISHED (line 102) | CT_STATE_ESTABLISHED = "established" constant CT_STATE_RELATED (line 103) | CT_STATE_RELATED = "related" constant CT_STATE_INVALID (line 104) | CT_STATE_INVALID = "invalid" constant NFT_NOTRACK (line 106) | NFT_NOTRACK = "notrack" constant NFT_QUOTA (line 108) | NFT_QUOTA = "quota" constant NFT_QUOTA_UNTIL (line 109) | NFT_QUOTA_UNTIL = "until" constant NFT_QUOTA_OVER (line 110) | NFT_QUOTA_OVER = "over" constant NFT_QUOTA_USED (line 111) | NFT_QUOTA_USED = "used" constant NFT_QUOTA_UNIT_BYTES (line 112) | NFT_QUOTA_UNIT_BYTES = "bytes" constant NFT_QUOTA_UNIT_KB (line 113) | NFT_QUOTA_UNIT_KB = "kbytes" constant NFT_QUOTA_UNIT_MB (line 114) | NFT_QUOTA_UNIT_MB = "mbytes" constant NFT_QUOTA_UNIT_GB (line 115) | NFT_QUOTA_UNIT_GB = "gbytes" constant NFT_COUNTER (line 117) | NFT_COUNTER = "counter" constant NFT_COUNTER_NAME (line 118) | NFT_COUNTER_NAME = "name" constant NFT_COUNTER_PACKETS (line 119) | NFT_COUNTER_PACKETS = "packets" constant NFT_COUNTER_BYTES (line 120) | NFT_COUNTER_BYTES = "bytes" constant NFT_LIMIT (line 122) | NFT_LIMIT = "limit" constant NFT_LIMIT_OVER (line 123) | NFT_LIMIT_OVER = "over" constant NFT_LIMIT_BURST (line 124) | NFT_LIMIT_BURST = "burst" constant NFT_LIMIT_UNITS_RATE (line 125) | NFT_LIMIT_UNITS_RATE = "rate-units" constant NFT_LIMIT_UNITS_TIME (line 126) | NFT_LIMIT_UNITS_TIME = "time-units" constant NFT_LIMIT_UNITS (line 127) | NFT_LIMIT_UNITS = "units" constant NFT_LIMIT_UNIT_SECOND (line 128) | NFT_LIMIT_UNIT_SECOND = "second" constant NFT_LIMIT_UNIT_MINUTE (line 129) | NFT_LIMIT_UNIT_MINUTE = "minute" constant NFT_LIMIT_UNIT_HOUR (line 130) | NFT_LIMIT_UNIT_HOUR = "hour" constant NFT_LIMIT_UNIT_DAY (line 131) | NFT_LIMIT_UNIT_DAY = "day" constant NFT_LIMIT_UNIT_KBYTES (line 132) | NFT_LIMIT_UNIT_KBYTES = "kbytes" constant NFT_LIMIT_UNIT_MBYTES (line 133) | NFT_LIMIT_UNIT_MBYTES = "mbytes" constant NFT_META (line 135) | NFT_META = "meta" constant NFT_META_MARK (line 136) | NFT_META_MARK = "mark" constant NFT_META_SET_MARK (line 137) | NFT_META_SET_MARK = "set" constant NFT_META_PRIORITY (line 138) | NFT_META_PRIORITY = "priority" constant NFT_META_NFTRACE (line 139) | NFT_META_NFTRACE = "nftrace" constant NFT_META_SET (line 140) | NFT_META_SET = "set" constant NFT_META_SKUID (line 141) | NFT_META_SKUID = "skuid" constant NFT_META_SKGID (line 142) | NFT_META_SKGID = "skgid" constant NFT_META_L4PROTO (line 143) | NFT_META_L4PROTO = "l4proto" constant NFT_META_PROTOCOL (line 144) | NFT_META_PROTOCOL = "protocol" constant NFT_PROTO_UDP (line 146) | NFT_PROTO_UDP = "udp" constant NFT_PROTO_UDPLITE (line 147) | NFT_PROTO_UDPLITE = "udplite" constant NFT_PROTO_TCP (line 148) | NFT_PROTO_TCP = "tcp" constant NFT_PROTO_SCTP (line 149) | NFT_PROTO_SCTP = "sctp" constant NFT_PROTO_DCCP (line 150) | NFT_PROTO_DCCP = "dccp" constant NFT_PROTO_ICMP (line 151) | NFT_PROTO_ICMP = "icmp" constant NFT_PROTO_ICMPX (line 152) | NFT_PROTO_ICMPX = "icmpx" constant NFT_PROTO_ICMPv6 (line 153) | NFT_PROTO_ICMPv6 = "icmpv6" constant NFT_PROTO_AH (line 154) | NFT_PROTO_AH = "ah" constant NFT_PROTO_ETHERNET (line 155) | NFT_PROTO_ETHERNET = "ethernet" constant NFT_PROTO_GRE (line 156) | NFT_PROTO_GRE = "gre" constant NFT_PROTO_IP (line 157) | NFT_PROTO_IP = "ip" constant NFT_PROTO_IPIP (line 158) | NFT_PROTO_IPIP = "ipip" constant NFT_PROTO_L2TP (line 159) | NFT_PROTO_L2TP = "l2tp" constant NFT_PROTO_COMP (line 160) | NFT_PROTO_COMP = "comp" constant NFT_PROTO_IGMP (line 161) | NFT_PROTO_IGMP = "igmp" constant NFT_PROTO_ESP (line 162) | NFT_PROTO_ESP = "esp" constant NFT_PROTO_RAW (line 163) | NFT_PROTO_RAW = "raw" constant NFT_PROTO_ENCAP (line 164) | NFT_PROTO_ENCAP = "encap" constant ICMP_NO_ROUTE (line 166) | ICMP_NO_ROUTE = "no-route" constant ICMP_PROT_UNREACHABLE (line 167) | ICMP_PROT_UNREACHABLE = "prot-unreachable" constant ICMP_PORT_UNREACHABLE (line 168) | ICMP_PORT_UNREACHABLE = "port-unreachable" constant ICMP_NET_UNREACHABLE (line 169) | ICMP_NET_UNREACHABLE = "net-unreachable" constant ICMP_ADDR_UNREACHABLE (line 170) | ICMP_ADDR_UNREACHABLE = "addr-unreachable" constant ICMP_HOST_UNREACHABLE (line 171) | ICMP_HOST_UNREACHABLE = "host-unreachable" constant ICMP_NET_PROHIBITED (line 172) | ICMP_NET_PROHIBITED = "net-prohibited" constant ICMP_HOST_PROHIBITED (line 173) | ICMP_HOST_PROHIBITED = "host-prohibited" constant ICMP_ADMIN_PROHIBITED (line 174) | ICMP_ADMIN_PROHIBITED = "admin-prohibited" constant ICMP_REJECT_ROUTE (line 175) | ICMP_REJECT_ROUTE = "reject-route" constant ICMP_REJECT_POLICY_FAIL (line 176) | ICMP_REJECT_POLICY_FAIL = "policy-fail" constant ICMP_ECHO_REPLY (line 178) | ICMP_ECHO_REPLY = "echo-reply" constant ICMP_ECHO_REQUEST (line 179) | ICMP_ECHO_REQUEST = "echo-request" constant ICMP_SOURCE_QUENCH (line 180) | ICMP_SOURCE_QUENCH = "source-quench" constant ICMP_DEST_UNREACHABLE (line 181) | ICMP_DEST_UNREACHABLE = "destination-unreachable" constant ICMP_REDIRECT (line 182) | ICMP_REDIRECT = "redirect" constant ICMP_TIME_EXCEEDED (line 183) | ICMP_TIME_EXCEEDED = "time-exceeded" constant ICMP_INFO_REQUEST (line 184) | ICMP_INFO_REQUEST = "info-request" constant ICMP_INFO_REPLY (line 185) | ICMP_INFO_REPLY = "info-reply" constant ICMP_PARAMETER_PROBLEM (line 186) | ICMP_PARAMETER_PROBLEM = "parameter-problem" constant ICMP_TIMESTAMP_REQUEST (line 187) | ICMP_TIMESTAMP_REQUEST = "timestamp-request" constant ICMP_TIMESTAMP_REPLY (line 188) | ICMP_TIMESTAMP_REPLY = "timestamp-reply" constant ICMP_ROUTER_ADVERTISEMENT (line 189) | ICMP_ROUTER_ADVERTISEMENT = "router-advertisement" constant ICMP_ROUTER_SOLICITATION (line 190) | ICMP_ROUTER_SOLICITATION = "router-solicitation" constant ICMP_ADDRESS_MASK_REQUEST (line 191) | ICMP_ADDRESS_MASK_REQUEST = "address-mask-request" constant ICMP_ADDRESS_MASK_REPLY (line 192) | ICMP_ADDRESS_MASK_REPLY = "address-mask-reply" constant ICMP_PACKET_TOO_BIG (line 194) | ICMP_PACKET_TOO_BIG = "packet-too-big" constant ICMP_NEIGHBOUR_SOLICITATION (line 195) | ICMP_NEIGHBOUR_SOLICITATION = "neighbour-solicitation" constant ICMP_NEIGHBOUR_ADVERTISEMENT (line 196) | ICMP_NEIGHBOUR_ADVERTISEMENT = "neighbour-advertisement" FILE: daemon/firewall/nftables/exprs/ether.go function NewExprEther (line 13) | func NewExprEther(values []*config.ExprValues) (*[]expr.Any, error) { function parseMACAddr (line 50) | func parseMACAddr(macValue string) ([]byte, error) { FILE: daemon/firewall/nftables/exprs/ether_test.go function TestExprEther (line 14) | func TestExprEther(t *testing.T) { FILE: daemon/firewall/nftables/exprs/iface.go function NewExprIface (line 8) | func NewExprIface(iface string, isOut bool, cmpOp expr.CmpOp) *[]expr.Any { function ifname (line 24) | func ifname(n string) []byte { FILE: daemon/firewall/nftables/exprs/iface_test.go function ifname (line 14) | func ifname(n string) []byte { function TestExprIface (line 25) | func TestExprIface(t *testing.T) { FILE: daemon/firewall/nftables/exprs/ip.go function NewExprIP (line 34) | func NewExprIP(family string, ipOptions []*config.ExprValues, cmpOp expr... function getExprIPPayload (line 81) | func getExprIPPayload(what string) *expr.Payload { function getExprIP (line 114) | func getExprIP(value string, cmpOp expr.CmpOp) (*[]expr.Any, error) { function getExprRangeIP (line 131) | func getExprRangeIP(value string, cmpOp expr.CmpOp) (*[]expr.Any, error) { FILE: daemon/firewall/nftables/exprs/ip_test.go function TestExprIP (line 14) | func TestExprIP(t *testing.T) { FILE: daemon/firewall/nftables/exprs/limit.go function NewExprLimit (line 14) | func NewExprLimit(statement *config.ExprStatement) (*[]expr.Any, error) { function getLimitUnits (line 54) | func getLimitUnits(units string) (limitUnits expr.LimitTime) { function getLimitRate (line 69) | func getLimitRate(units string, rate uint64) (limitType expr.LimitType, ... FILE: daemon/firewall/nftables/exprs/log.go function NewExprLog (line 13) | func NewExprLog(statement *config.ExprStatement) (*[]expr.Any, error) { function getLogLevel (line 49) | func getLogLevel(what string) (expr.LogLevel, error) { FILE: daemon/firewall/nftables/exprs/log_test.go function TestExprLog (line 13) | func TestExprLog(t *testing.T) { FILE: daemon/firewall/nftables/exprs/meta.go function NewExprMeta (line 14) | func NewExprMeta(values []*config.ExprValues, cmpOp *expr.CmpOp) (*[]exp... function getMetaValue (line 111) | func getMetaValue(value string) (int, error) { function getMetaKey (line 120) | func getMetaKey(value string) (expr.MetaKey, error) { FILE: daemon/firewall/nftables/exprs/meta_test.go function TestExprMeta (line 13) | func TestExprMeta(t *testing.T) { FILE: daemon/firewall/nftables/exprs/nat.go function NewExprNATFlags (line 17) | func NewExprNATFlags(parms string) (random, fullrandom, persistent bool) { function NewExprNAT (line 38) | func NewExprNAT(parms, verdict string) (bool, bool, *[]expr.Any, error) { function NewExprMasquerade (line 101) | func NewExprMasquerade(toPorts, random, fullRandom, persistent bool) *[]... function NewExprRedirect (line 117) | func NewExprRedirect() *[]expr.Any { function NewExprSNAT (line 127) | func NewExprSNAT() *expr.NAT { function NewExprDNAT (line 135) | func NewExprDNAT() *expr.NAT { function NewExprTproxy (line 145) | func NewExprTproxy() *[]expr.Any { FILE: daemon/firewall/nftables/exprs/nat_test.go function TestExprVerdictSNAT (line 15) | func TestExprVerdictSNAT(t *testing.T) { function TestExprVerdictDNAT (line 200) | func TestExprVerdictDNAT(t *testing.T) { function TestExprVerdictMasquerade (line 385) | func TestExprVerdictMasquerade(t *testing.T) { function TestExprVerdictRedirect (line 469) | func TestExprVerdictRedirect(t *testing.T) { function TestExprVerdictTProxy (line 544) | func TestExprVerdictTProxy(t *testing.T) { FILE: daemon/firewall/nftables/exprs/notrack.go function NewNoTrack (line 6) | func NewNoTrack() *[]expr.Any { FILE: daemon/firewall/nftables/exprs/operator.go function NewOperator (line 8) | func NewOperator(operator string) expr.CmpOp { function NewExprOperator (line 26) | func NewExprOperator(op expr.CmpOp) *[]expr.Any { FILE: daemon/firewall/nftables/exprs/port.go function NewExprPort (line 14) | func NewExprPort(port string, op *expr.CmpOp) (*[]expr.Any, error) { function NewExprPortRange (line 28) | func NewExprPortRange(sport string, cmpOp *expr.CmpOp) (*[]expr.Any, err... function NewExprPortSet (line 50) | func NewExprPortSet(portv string) *[]nftables.SetElement { function exprPortSubSet (line 63) | func exprPortSubSet(portv string) *[]nftables.SetElement { function NewExprPortDirection (line 77) | func NewExprPortDirection(direction string) (*expr.Payload, error) { FILE: daemon/firewall/nftables/exprs/port_test.go type portTestsT (line 15) | type portTestsT struct function TestExprPort (line 22) | func TestExprPort(t *testing.T) { function TestExprPortRange (line 73) | func TestExprPortRange(t *testing.T) { FILE: daemon/firewall/nftables/exprs/protocol.go function NewExprProtocol (line 13) | func NewExprProtocol(proto string) (*[]expr.Any, error) { function NewExprProtoSet (line 115) | func NewExprProtoSet(l4prots string) *[]nftables.SetElement { function NewExprL4Proto (line 134) | func NewExprL4Proto(name string, cmpOp *expr.CmpOp) *[]expr.Any { FILE: daemon/firewall/nftables/exprs/protocol_test.go function TestExprProtocol (line 14) | func TestExprProtocol(t *testing.T) { FILE: daemon/firewall/nftables/exprs/quota.go function NewQuota (line 13) | func NewQuota(opts []*config.ExprValues) (*[]expr.Any, error) { FILE: daemon/firewall/nftables/exprs/quota_test.go function TestExprQuota (line 12) | func TestExprQuota(t *testing.T) { FILE: daemon/firewall/nftables/exprs/utils.go function GetICMPRejectCode (line 11) | func GetICMPRejectCode(reason string) uint8 { function GetICMPxRejectCode (line 31) | func GetICMPxRejectCode(reason string) uint8 { function GetICMPType (line 49) | func GetICMPType(icmpType string) uint8 { function GetICMPv6Type (line 86) | func GetICMPv6Type(icmpType string) uint8 { function GetICMPv6RejectCode (line 115) | func GetICMPv6RejectCode(reason string) uint8 { function getProtocolCode (line 136) | func getProtocolCode(value string) (byte, error) { FILE: daemon/firewall/nftables/exprs/verdict.go function NewExprVerdict (line 13) | func NewExprVerdict(verdict, parms string) *[]expr.Any { function NewExprAccept (line 158) | func NewExprAccept() *[]expr.Any { function NewExprReject (line 168) | func NewExprReject(parms string) *expr.Reject { FILE: daemon/firewall/nftables/exprs/verdict_test.go type verdictTestsT (line 15) | type verdictTestsT struct function TestExprVerdict (line 23) | func TestExprVerdict(t *testing.T) { function TestExprVerdictReject (line 80) | func TestExprVerdictReject(t *testing.T) { function TestExprVerdictQueue (line 291) | func TestExprVerdictQueue(t *testing.T) { FILE: daemon/firewall/nftables/monitor.go method AreRulesLoaded (line 12) | func (n *Nft) AreRulesLoaded() bool { method ReloadConfCallback (line 57) | func (n *Nft) ReloadConfCallback() { method ReloadRulesCallback (line 64) | func (n *Nft) ReloadRulesCallback() { method PreloadConfCallback (line 72) | func (n *Nft) PreloadConfCallback() { FILE: daemon/firewall/nftables/monitor_test.go function addInterceptionRules (line 15) | func addInterceptionRules(nft *nftb.Nft, t *testing.T) { function _testMonitorReload (line 33) | func _testMonitorReload(t *testing.T, conn *nftables.Conn, nft *nftb.Nft) { function TestAreRulesLoaded (line 63) | func TestAreRulesLoaded(t *testing.T) { function TestMonitorReload (line 81) | func TestMonitorReload(t *testing.T) { FILE: daemon/firewall/nftables/nftables.go type Action (line 19) | type Action constant fwKey (line 23) | fwKey = "opensnitch-key" constant InterceptionRuleKey (line 24) | InterceptionRuleKey = fwKey + "-interception" constant SystemRuleKey (line 25) | SystemRuleKey = fwKey + "-system" constant Name (line 26) | Name = "nftables" type Nft (line 30) | type Nft struct method Name (line 56) | func (n *Nft) Name() string { method Init (line 62) | func (n *Nft) Init(qNum uint16, configPath, monitorInterval string, by... method Stop (line 90) | func (n *Nft) Stop() { method EnableInterception (line 105) | func (n *Nft) EnableInterception() { method DisableInterception (line 126) | func (n *Nft) DisableInterception(logErrors bool) { method CleanRules (line 132) | func (n *Nft) CleanRules(logErrors bool) { method Commit (line 140) | func (n *Nft) Commit() bool { method Serialize (line 149) | func (n *Nft) Serialize() (*protocol.SysFirewall, error) { method Deserialize (line 169) | func (n *Nft) Deserialize(sysfw *protocol.SysFirewall) ([]byte, error) { function NewNft (line 41) | func NewNft() *nftables.Conn { function Fw (line 46) | func Fw() (*Nft, error) { FILE: daemon/firewall/nftables/nftest/nftest.go function init (line 21) | func init() { function SkipIfNotPrivileged (line 29) | func SkipIfNotPrivileged(t *testing.T) { function OpenSystemConn (line 37) | func OpenSystemConn(t *testing.T) (*nftables.Conn, netns.NsHandle) { function CleanupSystemConn (line 57) | func CleanupSystemConn(t *testing.T, newNS netns.NsHandle) { FILE: daemon/firewall/nftables/nftest/test_utils.go type TestsT (line 14) | type TestsT struct function AreExprsValid (line 26) | func AreExprsValid(t *testing.T, test *TestsT, rule *nftables.Rule) bool { FILE: daemon/firewall/nftables/nftest/utils.go function AddTestRule (line 12) | func AddTestRule(t *testing.T, conn *nftables.Conn, exp *[]expr.Any) (*n... function AddTestSNATRule (line 48) | func AddTestSNATRule(t *testing.T, conn *nftables.Conn, exp *[]expr.Any)... function AddTestDNATRule (line 84) | func AddTestDNATRule(t *testing.T, conn *nftables.Conn, exp *[]expr.Any)... FILE: daemon/firewall/nftables/parser.go method parseExpression (line 33) | func (n *Nft) parseExpression(table, chain, family string, expression *c... FILE: daemon/firewall/nftables/rule_helpers.go method buildICMPRule (line 16) | func (n *Nft) buildICMPRule(table, family string, icmpProtoVersion strin... method buildConntrackRule (line 106) | func (n *Nft) buildConntrackRule(ctOptions []*config.ExprValues, cmpOp *... method buildL4ProtoRule (line 157) | func (n *Nft) buildL4ProtoRule(table, family, l4prots string, cmpOp *exp... method buildPortsRule (line 188) | func (n *Nft) buildPortsRule(table, family, ports string, cmpOp *expr.Cm... FILE: daemon/firewall/nftables/rules.go method QueueDNSResponses (line 18) | func (n *Nft) QueueDNSResponses(enable, logError bool) (error, error) { method QueueConnections (line 80) | func (n *Nft) QueueConnections(enable, logError bool) (error, error) { method InsertRule (line 182) | func (n *Nft) InsertRule(chain, table, family string, position uint64, e... method AddRule (line 210) | func (n *Nft) AddRule(chain, table, family string, position uint64, key ... method delRulesByKey (line 237) | func (n *Nft) delRulesByKey(key string) error { method DelInterceptionRules (line 281) | func (n *Nft) DelInterceptionRules() { FILE: daemon/firewall/nftables/rules_test.go function getRulesList (line 12) | func getRulesList(t *testing.T, conn *nftables.Conn, family, tblName, ch... function getRule (line 31) | func getRule(t *testing.T, conn *nftables.Conn, tblName, chnName, key st... function TestAddRule (line 58) | func TestAddRule(t *testing.T) { function TestInsertRule (line 101) | func TestInsertRule(t *testing.T) { function TestQueueConnections (line 137) | func TestQueueConnections(t *testing.T) { function TestQueueDNSResponses (line 171) | func TestQueueDNSResponses(t *testing.T) { FILE: daemon/firewall/nftables/system.go type sysTablesT (line 18) | type sysTablesT struct method Add (line 23) | func (t *sysTablesT) Add(name string, tbl *nftables.Table) { method Get (line 29) | func (t *sysTablesT) Get(name string) *nftables.Table { method List (line 35) | func (t *sysTablesT) List() map[string]*nftables.Table { method Del (line 41) | func (t *sysTablesT) Del(name string) { function InitMapsStore (line 56) | func InitMapsStore() { method CreateSystemRule (line 66) | func (n *Nft) CreateSystemRule(chain *config.FwChain, logErrors bool) bo... method AddSystemRules (line 103) | func (n *Nft) AddSystemRules(reload, backupExistingChains bool) { method DeleteSystemRules (line 139) | func (n *Nft) DeleteSystemRules(force, restoreExistingChains, logErrors ... method AddSystemRule (line 156) | func (n *Nft) AddSystemRule(rule *config.FwRule, chain *config.FwChain) ... FILE: daemon/firewall/nftables/system_test.go type sysChainsListT (line 10) | type sysChainsListT struct function TestAddSystemRules (line 21) | func TestAddSystemRules(t *testing.T) { function TestFwConfDisabled (line 66) | func TestFwConfDisabled(t *testing.T) { function TestDeleteSystemRules (line 105) | func TestDeleteSystemRules(t *testing.T) { FILE: daemon/firewall/nftables/tables.go method AddTable (line 12) | func (n *Nft) AddTable(name, family string) (*nftables.Table, error) { method GetTable (line 29) | func (n *Nft) GetTable(name, family string) *nftables.Table { function getTableKey (line 33) | func getTableKey(name string, family interface{}) string { method AddInterceptionTables (line 38) | func (n *Nft) AddInterceptionTables() error { method nonSystemRules (line 46) | func (n *Nft) nonSystemRules(tbl *nftables.Table) int { method DelSystemTables (line 67) | func (n *Nft) DelSystemTables() { FILE: daemon/firewall/nftables/tables_test.go function tableExists (line 12) | func tableExists(t *testing.T, conn *nftables.Conn, origtbl *nftables.Ta... function TestAddTable (line 29) | func TestAddTable(t *testing.T) { function TestAddInterceptionTables (line 84) | func TestAddInterceptionTables(t *testing.T) { FILE: daemon/firewall/nftables/utils.go method getBypassFlag (line 12) | func (n *Nft) getBypassFlag() expr.QueueFlag { function GetFamilyCode (line 20) | func GetFamilyCode(family string) nftables.TableFamily { function GetHook (line 44) | func GetHook(chain string) *nftables.ChainHook { function GetChainPriority (line 69) | func GetChainPriority(family, cType, hook string) (*nftables.ChainPriori... function GetConntrackPriority (line 164) | func GetConntrackPriority(hook string) (*nftables.ChainPriority, nftable... FILE: daemon/firewall/nftables/utils_test.go type chainPrioT (line 11) | type chainPrioT struct function TestGetConntrackPriority (line 24) | func TestGetConntrackPriority(t *testing.T) { function TestGetChainPriority (line 59) | func TestGetChainPriority(t *testing.T) { function TestInvalidChainPriority (line 166) | func TestInvalidChainPriority(t *testing.T) { FILE: daemon/firewall/rules.go type Firewall (line 15) | type Firewall interface function Init (line 49) | func Init(fwType, configPath, monitorInterval string, bypassQueue bool, ... function IsRunning (line 95) | func IsRunning() bool { function ErrorsChan (line 100) | func ErrorsChan() <-chan string { function ErrChanEmpty (line 105) | func ErrChanEmpty() bool { function CleanRules (line 110) | func CleanRules(logErrors bool) { function Reload (line 118) | func Reload(fwtype, configPath, monitorInterval string, bypassQueue bool... function ReloadSystemRules (line 125) | func ReloadSystemRules() { function EnableInterception (line 131) | func EnableInterception() error { function DisableInterception (line 140) | func DisableInterception() error { function Stop (line 149) | func Stop() { function SaveConfiguration (line 157) | func SaveConfiguration(rawConfig []byte) error { function Serialize (line 162) | func Serialize() (*protocol.SysFirewall, error) { function Deserialize (line 170) | func Deserialize(sysfw *protocol.SysFirewall) ([]byte, error) { FILE: daemon/internal/testutil/network.go type TestNetwork (line 60) | type TestNetwork interface type NativeNetwork (line 71) | type NativeNetwork struct method Setup (line 75) | func (n *NativeNetwork) Setup() error { method Exec (line 79) | func (n *NativeNetwork) Exec(name string, args ...string) ([]byte, err... method ExecPassthrough (line 84) | func (n *NativeNetwork) ExecPassthrough(name string, args ...string) e... method NamespaceName (line 92) | func (n *NativeNetwork) NamespaceName() string { method AddCleanup (line 97) | func (n *NativeNetwork) AddCleanup(name string, args ...string) { method Cleanup (line 101) | func (n *NativeNetwork) Cleanup() { method IsNative (line 109) | func (n *NativeNetwork) IsNative() bool { type NamespacedNetwork (line 115) | type NamespacedNetwork struct method Setup (line 119) | func (n *NamespacedNetwork) Setup() error { method Exec (line 136) | func (n *NamespacedNetwork) Exec(name string, args ...string) ([]byte,... method ExecPassthrough (line 142) | func (n *NamespacedNetwork) ExecPassthrough(name string, args ...strin... method NamespaceName (line 151) | func (n *NamespacedNetwork) NamespaceName() string { method Cleanup (line 155) | func (n *NamespacedNetwork) Cleanup() { method IsNative (line 161) | func (n *NamespacedNetwork) IsNative() bool { function NewTestNetwork (line 167) | func NewTestNetwork() TestNetwork { function IsSubprocess (line 200) | func IsSubprocess() bool { function GetTestRunPattern (line 206) | func GetTestRunPattern(args []string) string { function RunTestsIsolated (line 222) | func RunTestsIsolated(testNet TestNetwork, tests []string, args []string... function buildSubprocessArgs (line 251) | func buildSubprocessArgs(testName string, originalArgs []string) []string { FILE: daemon/log/formats/csv.go constant CSV (line 10) | CSV = "csv" type Csv (line 13) | type Csv struct method Transform (line 22) | func (c *Csv) Transform(args ...interface{}) (out string) { function NewCSV (line 17) | func NewCSV() *Csv { FILE: daemon/log/formats/formats.go type LoggerFormat (line 17) | type LoggerFormat interface function init (line 26) | func init() { function connToSD (line 32) | func connToSD(out string, val interface{}) string { FILE: daemon/log/formats/json.go constant JSON (line 12) | JSON = "json" constant EvConnection (line 16) | EvConnection = iota constant EvExec (line 17) | EvExec constant EvTaskNotification (line 18) | EvTaskNotification type JSONEventFormat (line 23) | type JSONEventFormat struct method Transform (line 37) | func (j *JSONEventFormat) Transform(args ...interface{}) (out string) { function NewJSON (line 32) | func NewJSON() *JSONEventFormat { FILE: daemon/log/formats/rfc3164.go constant RFC3164 (line 12) | RFC3164 = "rfc3164" type Rfc3164 (line 15) | type Rfc3164 struct method Transform (line 26) | func (r *Rfc3164) Transform(args ...interface{}) (out string) { function NewRfc3164 (line 21) | func NewRfc3164() *Rfc3164 { FILE: daemon/log/formats/rfc5424.go constant RFC5424 (line 12) | RFC5424 = "rfc5424" type Rfc5424 (line 15) | type Rfc5424 struct method Transform (line 26) | func (r *Rfc5424) Transform(args ...interface{}) (out string) { function NewRfc5424 (line 21) | func NewRfc5424() *Rfc5424 { FILE: daemon/log/log.go type Handler (line 11) | type Handler constant BOLD (line 15) | BOLD = "\033[1m" constant DIM (line 16) | DIM = "\033[2m" constant RED (line 18) | RED = "\033[31m" constant GREEN (line 19) | GREEN = "\033[32m" constant BLUE (line 20) | BLUE = "\033[34m" constant YELLOW (line 21) | YELLOW = "\033[33m" constant FG_BLACK (line 23) | FG_BLACK = "\033[30m" constant FG_WHITE (line 24) | FG_WHITE = "\033[97m" constant BG_PURPLE (line 26) | BG_PURPLE = "\033[45m" constant BG_RED (line 27) | BG_RED = "\033[41m" constant BG_GREEN (line 28) | BG_GREEN = "\033[42m" constant BG_YELLOW (line 29) | BG_YELLOW = "\033[43m" constant BG_DGRAY (line 30) | BG_DGRAY = "\033[100m" constant BG_LBLUE (line 31) | BG_LBLUE = "\033[104m" constant RESET (line 33) | RESET = "\033[0m" constant DEBUG (line 38) | DEBUG = iota constant INFO (line 39) | INFO constant IMPORTANT (line 40) | IMPORTANT constant WARNING (line 41) | WARNING constant ERROR (line 42) | ERROR constant FATAL (line 43) | FATAL constant TRACE (line 45) | TRACE = -1 function Wrap (line 80) | func Wrap(s, effect string) string { function Dim (line 88) | func Dim(s string) string { function Bold (line 93) | func Bold(s string) string { function Red (line 98) | func Red(s string) string { function Green (line 103) | func Green(s string) string { function Blue (line 108) | func Blue(s string) string { function Yellow (line 113) | func Yellow(s string) string { function Raw (line 118) | func Raw(format string, args ...interface{}) { function SetLogLevel (line 125) | func SetLogLevel(newLevel int) { function GetLogLevel (line 132) | func GetLogLevel() int { function SetLogUTC (line 140) | func SetLogUTC(newLogUTC bool) { function GetLogUTC (line 147) | func GetLogUTC() bool { function SetLogMicro (line 155) | func SetLogMicro(newLogMicro bool) { function GetLogMicro (line 162) | func GetLogMicro() bool { function Log (line 170) | func Log(level int, format string, args ...interface{}) { function setDefaultLogOutput (line 198) | func setDefaultLogOutput() { function OpenFile (line 205) | func OpenFile(logFile string) (err error) { function Close (line 222) | func Close() { function Trace (line 229) | func Trace(format string, args ...interface{}) { function Debug (line 234) | func Debug(format string, args ...interface{}) { function Info (line 239) | func Info(format string, args ...interface{}) { function Important (line 244) | func Important(format string, args ...interface{}) { function Warning (line 249) | func Warning(format string, args ...interface{}) { function Error (line 254) | func Error(format string, args ...interface{}) { function Fatal (line 259) | func Fatal(format string, args ...interface{}) { FILE: daemon/log/loggers/logger.go constant logTag (line 12) | logTag = "opensnitch" type Logger (line 16) | type Logger interface type LoggerConfig (line 23) | type LoggerConfig struct type LoggerManager (line 54) | type LoggerManager struct method Load (line 80) | func (l *LoggerManager) Load(configs []LoggerConfig) { method Reload (line 124) | func (l *LoggerManager) Reload() { method Stop (line 130) | func (l *LoggerManager) Stop() { method write (line 144) | func (l *LoggerManager) write(args ...interface{}) { method Log (line 167) | func (l *LoggerManager) Log(args ...interface{}) { function NewLoggerManager (line 67) | func NewLoggerManager() *LoggerManager { function newWorker (line 153) | func newWorker(id int, done <-chan struct{}, msgs chan []interface{}, wr... FILE: daemon/log/loggers/remote.go constant LOGGER_REMOTE (line 20) | LOGGER_REMOTE = "remote" constant maxAllowedErrors (line 23) | maxAllowedErrors = 10 constant DISCONNECTED (line 35) | DISCONNECTED = iota constant CONNECTED (line 36) | CONNECTED constant CONNECTING (line 37) | CONNECTING type Remote (line 43) | type Remote struct method Open (line 126) | func (s *Remote) Open() (net.Conn, bool) { method Dial (line 162) | func (s *Remote) Dial(proto, addr string, connTimeout time.Duration) (... method Close (line 180) | func (s *Remote) Close() (err error) { method isConnected (line 186) | func (s *Remote) isConnected() bool { method Transform (line 192) | func (s *Remote) Transform(args ...interface{}) (out string) { method Write (line 201) | func (s *Remote) Write(msg string) { method formatLine (line 209) | func (s *Remote) formatLine(msg string) string { function NewRemote (line 73) | func NewRemote(cfg LoggerConfig) (*Remote, error) { function writerWorker (line 219) | func writerWorker(id int, sys *Remote, msgs <-chan string, done <-chan s... FILE: daemon/log/loggers/remote_syslog.go constant LOGGER_REMOTE_SYSLOG (line 8) | LOGGER_REMOTE_SYSLOG = "remote_syslog" type RemoteSyslog (line 11) | type RemoteSyslog struct method formatLine (line 30) | func (rs *RemoteSyslog) formatLine(msg string) string { function NewRemoteSyslog (line 17) | func NewRemoteSyslog(cfg LoggerConfig) (*RemoteSyslog, error) { FILE: daemon/log/loggers/syslog.go constant LOGGER_SYSLOG (line 11) | LOGGER_SYSLOG = "syslog" type Syslog (line 16) | type Syslog struct method Open (line 55) | func (s *Syslog) Open() error { method Close (line 63) | func (s *Syslog) Close() error { method Transform (line 68) | func (s *Syslog) Transform(args ...interface{}) (out string) { method Write (line 75) | func (s *Syslog) Write(msg string) { function NewSyslog (line 26) | func NewSyslog(cfg LoggerConfig) (*Syslog, error) { FILE: daemon/main.go function init (line 103) | func init() { function loadDiskConfiguration (line 133) | func loadDiskConfiguration() (*config.Config, error) { function overwriteLogging (line 151) | func overwriteLogging() bool { function overwriteFw (line 156) | func overwriteFw(cfg *config.Config, qNum uint16, fwCfg string) { function setupQueues (line 170) | func setupQueues(qNum uint16) { function setupLogging (line 195) | func setupLogging() { function setupProfiling (line 224) | func setupProfiling() { function setupSignals (line 251) | func setupSignals() { function worker (line 270) | func worker(id int) { function setupWorkers (line 289) | func setupWorkers() { function listenToEvents (line 299) | func listenToEvents() { function initSystemdResolvedMonitor (line 316) | func initSystemdResolvedMonitor() { function doCleanup (line 371) | func doCleanup(queue, repeatQueue *netfilter.Queue) { function onPacket (line 400) | func onPacket(packet netfilter.Packet) { function applyDefaultAction (line 431) | func applyDefaultAction(packet *netfilter.Packet, con *conman.Connection) { function acceptOrDeny (line 443) | func acceptOrDeny(packet *netfilter.Packet, con *conman.Connection) *rul... function main (line 560) | func main() { FILE: daemon/netfilter/netfilter_test.go function TestMain (line 63) | func TestMain(m *testing.M) { function runCmd (line 84) | func runCmd(name string, args ...string) ([]byte, error) { function augmentRule (line 90) | func augmentRule(baseRule []string, protocol string, port uint16, mark s... function TestVerdictEncoding (line 127) | func TestVerdictEncoding(t *testing.T) { function TestIsIPv4 (line 160) | func TestIsIPv4(t *testing.T) { function TestQueueCreation (line 184) | func TestQueueCreation(t *testing.T) { function TestPacketCapture (line 204) | func TestPacketCapture(t *testing.T) { function TestVerdictAccept (line 275) | func TestVerdictAccept(t *testing.T) { function TestVerdictDrop (line 323) | func TestVerdictDrop(t *testing.T) { function TestVerdictMark (line 372) | func TestVerdictMark(t *testing.T) { function TestSetRequeueVerdict (line 427) | func TestSetRequeueVerdict(t *testing.T) { function TestSetVerdictWithPacket (line 476) | func TestSetVerdictWithPacket(t *testing.T) { function TestMultipleQueues (line 528) | func TestMultipleQueues(t *testing.T) { function TestConcurrentPacketHandling (line 614) | func TestConcurrentPacketHandling(t *testing.T) { function TestProductionRules (line 742) | func TestProductionRules(t *testing.T) { FILE: daemon/netfilter/packet.go constant IPv4 (line 11) | IPv4 = 4 type Verdict (line 15) | type Verdict type VerdictContainer (line 18) | type VerdictContainer struct type Packet (line 25) | type Packet struct method SetVerdict (line 36) | func (p *Packet) SetVerdict(v Verdict) { method SetVerdictAndMark (line 42) | func (p *Packet) SetVerdictAndMark(v Verdict, mark uint32) { method SetRequeueVerdict (line 47) | func (p *Packet) SetRequeueVerdict(newQueueID uint16) { method SetVerdictWithPacket (line 55) | func (p *Packet) SetVerdictWithPacket(v Verdict, packet []byte) { method IsIPv4 (line 60) | func (p *Packet) IsIPv4() bool { FILE: daemon/netfilter/queue.go constant AF_INET (line 27) | AF_INET = 2 constant AF_INET6 (line 28) | AF_INET6 = 10 constant NF_DROP (line 30) | NF_DROP Verdict = 0 constant NF_ACCEPT (line 31) | NF_ACCEPT Verdict = 1 constant NF_STOLEN (line 32) | NF_STOLEN Verdict = 2 constant NF_QUEUE (line 33) | NF_QUEUE Verdict = 3 constant NF_REPEAT (line 34) | NF_REPEAT Verdict = 4 constant NF_STOP (line 35) | NF_STOP Verdict = 5 constant NF_DEFAULT_QUEUE_SIZE (line 37) | NF_DEFAULT_QUEUE_SIZE uint32 = 4096 constant NF_DEFAULT_PACKET_SIZE (line 38) | NF_DEFAULT_PACKET_SIZE uint32 = 4096 type VerdictContainerC (line 51) | type VerdictContainerC type Queue (line 57) | type Queue struct method create (line 83) | func (q *Queue) create(queueID uint16) (err error) { method setup (line 112) | func (q *Queue) setup() (err error) { method run (line 136) | func (q *Queue) run() { method Close (line 147) | func (q *Queue) Close() { method destroy (line 156) | func (q *Queue) destroy() { method closeNfq (line 175) | func (q *Queue) closeNfq() { method Packets (line 184) | func (q *Queue) Packets() <-chan Packet { function NewQueue (line 66) | func NewQueue(queueID uint16) (q *Queue, err error) { function go_callback (line 191) | func go_callback(queueID C.int, data *C.uchar, length C.int, mark C.uint... FILE: daemon/netfilter/queue.h type verdictContainer (line 17) | typedef struct { function configure_uid_if_available (line 31) | static inline void configure_uid_if_available(struct nfq_q_handle *qh){ function nf_callback (line 52) | static int nf_callback(struct nfq_q_handle *qh, struct nfgenmsg *nfmsg, ... type nfq_q_handle (line 87) | struct nfq_q_handle type nfq_handle (line 87) | struct nfq_handle type nfq_q_handle (line 88) | struct nfq_q_handle function stop_reading_packets (line 97) | static inline void stop_reading_packets() { function Run (line 101) | static inline int Run(struct nfq_handle *h, int fd) { FILE: daemon/netlink/ifaces.go function isPrivate (line 12) | func isPrivate(ip net.IP) bool { function GetLocalAddrs (line 22) | func GetLocalAddrs() map[string]netlink.Addr { function AddrUpdateToAddr (line 38) | func AddrUpdateToAddr(addr *netlink.AddrUpdate) netlink.Addr { FILE: daemon/netlink/procmon/procmon.go type ProcEvent (line 18) | type ProcEvent struct method Msg (line 122) | func (pe *ProcEvent) Msg() interface{} { method Pid (line 127) | func (pe *ProcEvent) Pid() uint32 { method IsFork (line 132) | func (pe *ProcEvent) IsFork() bool { method IsExec (line 137) | func (pe *ProcEvent) IsExec() bool { method IsComm (line 142) | func (pe *ProcEvent) IsComm() bool { method IsExit (line 147) | func (pe *ProcEvent) IsExit() bool { function ProcEventsMonitor (line 32) | func ProcEventsMonitor(done <-chan struct{}) { function NewProcEvent (line 89) | func NewProcEvent(ev netlink.ProcEvent) ProcEvent { FILE: daemon/netlink/socket.go function GetSocketInfo (line 29) | func GetSocketInfo(proto string, srcIP net.IP, srcPort uint, dstIP net.I... function GetSocketInfoByInode (line 110) | func GetSocketInfoByInode(inodeStr string) (*Socket, error) { function KillSocket (line 139) | func KillSocket(proto string, srcIP net.IP, srcPort uint, dstIP net.IP, ... function KillSockets (line 166) | func KillSockets(fam, proto uint8, excludeLocal bool) error { function KillAllSockets (line 192) | func KillAllSockets() { function FlushConnections (line 214) | func FlushConnections() { function SocketsAreEqual (line 227) | func SocketsAreEqual(aSocket, bSocket *Socket) bool { FILE: daemon/netlink/socket_linux.go constant SOCK_DESTROY (line 18) | SOCK_DESTROY = 21 constant sizeofSocketID (line 19) | sizeofSocketID = 0x30 constant sizeofSocketRequest (line 20) | sizeofSocketRequest = sizeofSocketID + 0x8 constant sizeofSocket (line 21) | sizeofSocket = sizeofSocketID + 0x18 constant TCP_INVALID (line 26) | TCP_INVALID = iota constant TCP_ESTABLISHED (line 27) | TCP_ESTABLISHED constant TCP_SYN_SENT (line 28) | TCP_SYN_SENT constant TCP_SYN_RECV (line 29) | TCP_SYN_RECV constant TCP_FIN_WAIT1 (line 30) | TCP_FIN_WAIT1 constant TCP_FIN_WAIT2 (line 31) | TCP_FIN_WAIT2 constant TCP_TIME_WAIT (line 32) | TCP_TIME_WAIT constant TCP_CLOSE (line 33) | TCP_CLOSE constant TCP_CLOSE_WAIT (line 34) | TCP_CLOSE_WAIT constant TCP_LAST_ACK (line 35) | TCP_LAST_ACK constant TCP_LISTEN (line 36) | TCP_LISTEN constant TCP_CLOSING (line 37) | TCP_CLOSING constant TCP_NEW_SYN_RECV (line 38) | TCP_NEW_SYN_RECV constant TCP_MAX_STATES (line 39) | TCP_MAX_STATES type SocketID (line 65) | type SocketID struct type Socket (line 75) | type Socket struct method deserialize (line 157) | func (s *Socket) deserialize(b []byte) error { type SocketRequest (line 89) | type SocketRequest struct method Serialize (line 115) | func (r *SocketRequest) Serialize() []byte { method Len (line 138) | func (r *SocketRequest) Len() int { return sizeofSocketRequest } type writeBuffer (line 98) | type writeBuffer struct method Write (line 103) | func (b *writeBuffer) Write(c byte) { method Next (line 108) | func (b *writeBuffer) Next(n int) []byte { type readBuffer (line 140) | type readBuffer struct method Read (line 145) | func (b *readBuffer) Read() byte { method Next (line 151) | func (b *readBuffer) Next(n int) []byte { function SocketKill (line 189) | func SocketKill(family, proto uint8, sockID SocketID) error { function SocketGet (line 209) | func SocketGet(family uint8, proto uint8, srcPort, dstPort uint16, local... function SocketsDump (line 226) | func SocketsDump(family uint8, proto uint8) ([]*Socket, error) { function netlinkRequest (line 235) | func netlinkRequest(sockReq *SocketRequest, family uint8, proto uint8, s... FILE: daemon/netlink/socket_packet.go constant PACKET_SHOW_INFO (line 31) | PACKET_SHOW_INFO = 0x00000001 constant PACKET_SHOW_MCLIST (line 32) | PACKET_SHOW_MCLIST = 0x00000002 constant PACKET_SHOW_RING_CFG (line 33) | PACKET_SHOW_RING_CFG = 0x00000004 constant PACKET_SHOW_FANOUT (line 34) | PACKET_SHOW_FANOUT = 0x00000008 constant PACKET_SHOW_MEMINFO (line 35) | PACKET_SHOW_MEMINFO = 0x00000010 constant PACKET_SHOW_FILTER (line 36) | PACKET_SHOW_FILTER = 0x00000020 constant PACKET_DIAG_INFO (line 42) | PACKET_DIAG_INFO = iota constant PACKET_DIAG_MCLIST (line 43) | PACKET_DIAG_MCLIST constant PACKET_DIAG_RX_RING (line 44) | PACKET_DIAG_RX_RING constant PACKET_DIAG_TX_RING (line 45) | PACKET_DIAG_TX_RING constant PACKET_DIAG_FANOUT (line 46) | PACKET_DIAG_FANOUT constant PACKET_DIAG_UID (line 47) | PACKET_DIAG_UID constant PACKET_DIAG_MEMINFO (line 48) | PACKET_DIAG_MEMINFO constant PACKET_DIAG_FILTER (line 49) | PACKET_DIAG_FILTER constant sizePktDiagReq (line 53) | sizePktDiagReq = 20 constant sizePktDiagMclist (line 54) | sizePktDiagMclist = 28 type PacketDiagMsg (line 59) | type PacketDiagMsg struct method deserialize (line 79) | func (pm *PacketDiagMsg) deserialize(b []byte) error { type PacketDiagMclist (line 71) | type PacketDiagMclist struct type PacketDiagReq (line 116) | type PacketDiagReq struct method Serialize (line 126) | func (p *PacketDiagReq) Serialize() []byte { method Len (line 140) | func (p *PacketDiagReq) Len() int { return sizePktDiagReq } function SocketDiagPacket (line 143) | func SocketDiagPacket(proto uint8) ([]*PacketDiagMsg, error) { FILE: daemon/netlink/socket_test.go type Connection (line 12) | type Connection struct function EstablishConnection (line 22) | func EstablishConnection(proto, dst string) (net.Conn, error) { function ListenOnPort (line 31) | func ListenOnPort(proto, port string) (net.Listener, error) { function setupConnection (line 41) | func setupConnection(proto string, connChan chan *Connection) { function TestNetlinkTCPQueries (line 69) | func TestNetlinkTCPQueries(t *testing.T) { FILE: daemon/netlink/socket_xdp.go function SocketGetXDP (line 8) | func SocketGetXDP() ([]*vnl.XDPDiagInfoResp, error) { FILE: daemon/netstat/entry.go type Entry (line 11) | type Entry struct function NewEntry (line 23) | func NewEntry(proto string, srcIP net.IP, srcPort uint, dstIP net.IP, ds... FILE: daemon/netstat/find.go function FindEntry (line 12) | func FindEntry(proto string, srcIP net.IP, srcPort uint, dstIP net.IP, d... function findEntryForProtocol (line 37) | func findEntryForProtocol(proto string, srcIP net.IP, srcPort uint, dstI... FILE: daemon/netstat/parse.go function decToInt (line 30) | func decToInt(n string) int { function hexToInt (line 38) | func hexToInt(h string) uint { function hexToInt2 (line 46) | func hexToInt2(h string) (uint, uint) { function hexToIP (line 66) | func hexToIP(h string) net.IP { function Parse (line 84) | func Parse(proto string) ([]Entry, error) { FILE: daemon/netstat/parse_packet.go function ParsePacket (line 29) | func ParsePacket() ([]Entry, error) { FILE: daemon/procmon/activepids.go type value (line 10) | type value struct function MonitorProcEvents (line 23) | func MonitorProcEvents(stop <-chan struct{}) { FILE: daemon/procmon/audit/client.go type Event (line 46) | type Event struct constant MaxEventAge (line 79) | MaxEventAge = int(10) constant OpensnitchRulesKey (line 106) | OpensnitchRulesKey = "key=\"opensnitch\"" function GetEvents (line 110) | func GetEvents() []*Event { function GetEventByPid (line 115) | func GetEventByPid(pid int) *Event { function sortEvents (line 130) | func sortEvents() { function cleanOldEvents (line 146) | func cleanOldEvents() { function deleteEvent (line 163) | func deleteEvent(pid int) { function deleteEventByIndex (line 172) | func deleteEventByIndex(index int) { function AddEvent (line 182) | func AddEvent(aevent *Event) { function startEventsCleaner (line 206) | func startEventsCleaner() { function addRules (line 219) | func addRules() bool { function configureSyscalls (line 231) | func configureSyscalls() { function deleteRules (line 240) | func deleteRules() bool { function checkRules (line 252) | func checkRules() bool { function checkStatus (line 257) | func checkStatus() bool { function Reader (line 265) | func Reader(r io.Reader, eventChan chan<- Event) { function StartChannel (line 302) | func StartChannel() { function reconnect (line 306) | func reconnect() (net.Conn, error) { function connect (line 312) | func connect() (net.Conn, error) { function Stop (line 319) | func Stop() { function Start (line 345) | func Start(auditOpts Config) (net.Conn, error) { FILE: daemon/procmon/audit/config.go type Config (line 6) | type Config struct function setConfig (line 10) | func setConfig(auditOpts Config) { FILE: daemon/procmon/audit/parse.go constant sockSTREAM (line 34) | sockSTREAM = "1" constant sockDGRAM (line 35) | sockDGRAM = "2" constant sockRAW (line 36) | sockRAW = "3" constant sockSEQPACKET (line 37) | sockSEQPACKET = "5" constant sockPACKET (line 38) | sockPACKET = "10" constant pfUNSPEC (line 41) | pfUNSPEC = "0" constant pfLOCAL (line 42) | pfLOCAL = "1" constant pfINET (line 43) | pfINET = "2" constant pfINET6 (line 44) | pfINET6 = "10" constant protoIP (line 47) | protoIP = "0" constant protoTCP (line 48) | protoTCP = "6" constant protoUDP (line 49) | protoUDP = "17" constant AuditTypePROCTITLE (line 54) | AuditTypePROCTITLE = "type=PROCTITLE" constant AuditTypeCWD (line 55) | AuditTypeCWD = "type=CWD" constant AuditTypePATH (line 56) | AuditTypePATH = "type=PATH" constant AuditTypeEXECVE (line 57) | AuditTypeEXECVE = "type=EXECVE" constant AuditTypeSOCKADDR (line 58) | AuditTypeSOCKADDR = "type=SOCKADDR" constant AuditTypeSOCKETCALL (line 59) | AuditTypeSOCKETCALL = "type=SOCKETCALL" constant AuditTypeEOE (line 60) | AuditTypeEOE = "type=EOE" function parseNetLine (line 73) | func parseNetLine(line string, decode bool) (family string, dstHost net.... function decodeString (line 119) | func decodeString(s string) string { function extractFields (line 128) | func extractFields(rawMessage string, newEvent *map[string]string) { function populateEvent (line 147) | func populateEvent(aevent *Event, eventFields *map[string]string) *Event { function parseEvent (line 232) | func parseEvent(rawMessage string, eventChan chan<- Event) { FILE: daemon/procmon/cache.go type InodeItem (line 14) | type InodeItem struct method updateTime (line 87) | func (i *InodeItem) updateTime() { method getTime (line 93) | func (i *InodeItem) getTime() int64 { type ProcItem (line 22) | type ProcItem struct method updateTime (line 99) | func (p *ProcItem) updateTime() { method updateDescriptors (line 105) | func (p *ProcItem) updateDescriptors(descriptors []string) { type CacheProcs (line 31) | type CacheProcs struct method add (line 114) | func (c *CacheProcs) add(fdPath string, fdList []string, pid int) { method sort (line 138) | func (c *CacheProcs) sort(pid int) { method delete (line 153) | func (c *CacheProcs) delete(pid int) { method deleteItem (line 166) | func (c *CacheProcs) deleteItem(pos int) { method setItems (line 173) | func (c *CacheProcs) setItems(newItems []*ProcItem, oldItems []*ProcIt... method getItem (line 177) | func (c *CacheProcs) getItem(index int) *ProcItem { method getItems (line 188) | func (c *CacheProcs) getItems() []*ProcItem { method countItems (line 192) | func (c *CacheProcs) countItems() int { method getPid (line 200) | func (c *CacheProcs) getPid(inode int, inodeKey string, expect string)... type CacheInodes (line 39) | type CacheInodes struct method add (line 233) | func (i *CacheInodes) add(key, descLink string, pid int) { method delete (line 247) | func (i *CacheInodes) delete(pid int) { method getPid (line 258) | func (i *CacheInodes) getPid(inodeKey string) int { method delItem (line 272) | func (i *CacheInodes) delItem(inodeKey string) { method getItem (line 278) | func (i *CacheInodes) getItem(inodeKey string) *InodeItem { method getItems (line 285) | func (i *CacheInodes) getItems() map[string]*InodeItem { method isInCache (line 292) | func (i *CacheInodes) isInCache(inodeKey string) (*InodeItem, bool) { method cleanup (line 302) | func (i *CacheInodes) cleanup() { function CacheCleanerTask (line 68) | func CacheCleanerTask() { function NewCacheOfInodes (line 78) | func NewCacheOfInodes() *CacheInodes { function getPidDescriptorsFromCache (line 319) | func getPidDescriptorsFromCache(fdPath, inodeKey, expect string, descrip... FILE: daemon/procmon/cache_events.go function init (line 29) | func init() { type ProcessEvent (line 35) | type ProcessEvent struct type ExecEventItem (line 45) | type ExecEventItem struct method isValid (line 52) | func (e *ExecEventItem) isValid() bool { type EventsStore (line 60) | type EventsStore struct method Add (line 84) | func (e *EventsStore) Add(proc *Process) { method UpdateItem (line 98) | func (e *EventsStore) UpdateItem(proc *Process) { method ReplaceItem (line 123) | func (e *EventsStore) ReplaceItem(oldProc, newProc *Process) { method Update (line 149) | func (e *EventsStore) Update(oldProc, proc *Process) { method needsUpdate (line 184) | func (e *EventsStore) needsUpdate(cachedProc, proc *Process) bool { method IsInStore (line 220) | func (e *EventsStore) IsInStore(key int, proc *Process) (item ExecEven... method IsInStoreByPID (line 237) | func (e *EventsStore) IsInStoreByPID(key int) (item ExecEventItem, fou... method Len (line 254) | func (e *EventsStore) Len() int { method Delete (line 261) | func (e *EventsStore) Delete(key int) { method DeleteOldItems (line 283) | func (e *EventsStore) DeleteOldItems() { method ComputeChecksums (line 297) | func (e *EventsStore) ComputeChecksums(proc *Process) bool { method AddChecksumHash (line 309) | func (e *EventsStore) AddChecksumHash(hash string) { method DelChecksumHash (line 316) | func (e *EventsStore) DelChecksumHash(hash string) { method SetComputeChecksums (line 327) | func (e *EventsStore) SetComputeChecksums(compute bool) { method DisableChecksums (line 353) | func (e *EventsStore) DisableChecksums() { method GetComputeChecksums (line 365) | func (e *EventsStore) GetComputeChecksums() bool { function NewEventsStore (line 68) | func NewEventsStore() *EventsStore { function monitorEventsCache (line 371) | func monitorEventsCache() { FILE: daemon/procmon/cache_events_test.go function createNewProc (line 13) | func createNewProc(pid int) *Process { function TestCacheEvents (line 27) | func TestCacheEvents(t *testing.T) { function TestCacheEvents2 (line 62) | func TestCacheEvents2(t *testing.T) { function TestCacheEventsUpdate (line 103) | func TestCacheEventsUpdate(t *testing.T) { function TestCacheEventsDeleteOldItems (line 141) | func TestCacheEventsDeleteOldItems(t *testing.T) { function BenchmarkAdd (line 171) | func BenchmarkAdd(b *testing.B) { function BenchmarkIsInStoreByPID (line 179) | func BenchmarkIsInStoreByPID(b *testing.B) { function BenchmarkIsNOTInStoreByPID (line 188) | func BenchmarkIsNOTInStoreByPID(b *testing.B) { FILE: daemon/procmon/cache_test.go function TestCacheProcs (line 9) | func TestCacheProcs(t *testing.T) { function BenchmarkGetPid (line 97) | func BenchmarkGetPid(b *testing.B) { FILE: daemon/procmon/details.go method GetParent (line 31) | func (p *Process) GetParent() { method BuildTree (line 59) | func (p *Process) BuildTree() { method TreeInsertItem (line 82) | func (p *Process) TreeInsertItem(path string, pid int) { method GetDetails (line 94) | func (p *Process) GetDetails() error { method GetExtraInfo (line 125) | func (p *Process) GetExtraInfo() error { method ReadPPID (line 135) | func (p *Process) ReadPPID() { method ReadComm (line 155) | func (p *Process) ReadComm() error { method ReadCwd (line 168) | func (p *Process) ReadCwd() error { method ReadEnv (line 181) | func (p *Process) ReadEnv() { method ReadMaps (line 208) | func (p *Process) ReadMaps() { method ReadStatm (line 218) | func (p *Process) ReadStatm() { method ReadExeLink (line 238) | func (p *Process) ReadExeLink() (string, error) { method ReadRoot (line 251) | func (p *Process) ReadRoot() { method ReadPath (line 272) | func (p *Process) ReadPath() error { method SetPath (line 298) | func (p *Process) SetPath(path string) { method ReadCmdline (line 322) | func (p *Process) ReadCmdline() { method CleanArgs (line 352) | func (p *Process) CleanArgs() { method readDescriptors (line 358) | func (p *Process) readDescriptors() { method readIOStats (line 398) | func (p *Process) readIOStats() (err error) { method readStatus (line 429) | func (p *Process) readStatus() { method CleanPath (line 449) | func (p *Process) CleanPath() { method IsAlive (line 485) | func (p *Process) IsAlive() bool { method IsChild (line 490) | func (p *Process) IsChild() bool { method ChecksumsCount (line 497) | func (p *Process) ChecksumsCount() int { method ResetChecksums (line 504) | func (p *Process) ResetChecksums() { method ComputeChecksums (line 512) | func (p *Process) ComputeChecksums(hashes map[string]uint) { method ComputeChecksum (line 524) | func (p *Process) ComputeChecksum(algo string) { type MemoryMapping (line 598) | type MemoryMapping struct method DumpImage (line 605) | func (p *Process) DumpImage() ([]byte, error) { method dumpFileImage (line 611) | func (p *Process) dumpFileImage(filePath string) ([]byte, error) { method readMem (line 676) | func (p *Process) readMem(mappings []MemoryMapping) ([]byte, error) { FILE: daemon/procmon/ebpf/cache.go type ebpfCacheItem (line 8) | type ebpfCacheItem struct method isValid (line 38) | func (i *ebpfCacheItem) isValid() bool { type ebpfCacheType (line 15) | type ebpfCacheType struct method addNewItem (line 54) | func (e *ebpfCacheType) addNewItem(key interface{}, itemKey []byte, pi... method isInCache (line 60) | func (e *ebpfCacheType) isInCache(key interface{}) (item *ebpfCacheIte... method update (line 81) | func (e *ebpfCacheType) update(key interface{}, item *ebpfCacheItem) { method Len (line 86) | func (e *ebpfCacheType) Len() int { method DeleteOldItems (line 92) | func (e *ebpfCacheType) DeleteOldItems() { method delete (line 105) | func (e *ebpfCacheType) delete(key interface{}) { method clear (line 114) | func (e *ebpfCacheType) clear() { function NewEbpfCacheItem (line 29) | func NewEbpfCacheItem(key []byte, pid, uid int) *ebpfCacheItem { function NewEbpfCache (line 46) | func NewEbpfCache() *ebpfCacheType { FILE: daemon/procmon/ebpf/config.go type Config (line 6) | type Config struct function setConfig (line 26) | func setConfig(ebpfOpts Config) { FILE: daemon/procmon/ebpf/debug.go function PrintEverything (line 15) | func PrintEverything() { FILE: daemon/procmon/ebpf/ebpf.go type KProbeDefs (line 23) | type KProbeDefs struct type MapDefs (line 38) | type MapDefs struct type ebpfDefsT (line 46) | type ebpfDefsT struct type ebpfMapsForProto (line 52) | type ebpfMapsForProto struct type bpf_lookup_elem_t (line 60) | type bpf_lookup_elem_t struct type alreadyEstablishedConns (line 67) | type alreadyEstablishedConns struct constant NoError (line 75) | NoError = iota constant NotAvailable (line 76) | NotAvailable constant EventsNotAvailable (line 77) | EventsNotAvailable type Error (line 81) | type Error struct function Start (line 122) | func Start(ebpfOpts Config) *Error { function saveEstablishedConnections (line 227) | func saveEstablishedConnections(commDomain uint8) error { function setRunning (line 249) | func setRunning(status bool) { function Stop (line 257) | func Stop() { function makeBpfSyscall (line 294) | func makeBpfSyscall(bpf_lookup *bpf_lookup_elem_t) uintptr { function dispatchErrorEvent (line 304) | func dispatchErrorEvent(what string) { function dispatchEvent (line 309) | func dispatchEvent(data interface{}) { function Events (line 320) | func Events() <-chan interface{} { FILE: daemon/procmon/ebpf/ebpf_test.go function getTestDir (line 39) | func getTestDir() string { function findEbpfModule (line 45) | func findEbpfModule(name string) string { function TestEbpfModuleLoad (line 68) | func TestEbpfModuleLoad(t *testing.T) { function TestEbpfMapOperations (line 118) | func TestEbpfMapOperations(t *testing.T) { type tcpKey (line 156) | type tcpKey struct type tcpValue (line 164) | type tcpValue struct function TestTCPv4ConnectIntegration (line 175) | func TestTCPv4ConnectIntegration(t *testing.T) { function htons (line 311) | func htons(v uint16) uint16 { function ntohs (line 318) | func ntohs(v uint16) uint16 { type tcpv6Key (line 324) | type tcpv6Key struct function loadEbpfCollection (line 341) | func loadEbpfCollection(t *testing.T) *ebpf.Collection { function trimComm (line 367) | func trimComm(comm [16]byte) string { function TestTCPv6ConnectIntegration (line 377) | func TestTCPv6ConnectIntegration(t *testing.T) { function TestUDPv4SendIntegration (line 473) | func TestUDPv4SendIntegration(t *testing.T) { function TestUDPv6SendIntegration (line 560) | func TestUDPv6SendIntegration(t *testing.T) { function TestInetDgramConnectIntegration (line 648) | func TestInetDgramConnectIntegration(t *testing.T) { function TestExecveIntegration (line 749) | func TestExecveIntegration(t *testing.T) { function findLibc (line 850) | func findLibc() string { function TestGetaddrinfoIntegration (line 866) | func TestGetaddrinfoIntegration(t *testing.T) { function TestIPTunnelXmitIntegration (line 997) | func TestIPTunnelXmitIntegration(t *testing.T) { function TestUDPTunnel6XmitIntegration (line 1090) | func TestUDPTunnel6XmitIntegration(t *testing.T) { function TestExecveExitIntegration (line 1179) | func TestExecveExitIntegration(t *testing.T) { function TestExecveatIntegration (line 1302) | func TestExecveatIntegration(t *testing.T) { function TestProcessExitIntegration (line 1420) | func TestProcessExitIntegration(t *testing.T) { function TestGethostbynameIntegration (line 1539) | func TestGethostbynameIntegration(t *testing.T) { FILE: daemon/procmon/ebpf/events.go constant MaxPathLen (line 19) | MaxPathLen = 4096 constant MaxArgs (line 22) | MaxArgs = 20 constant MaxArgLen (line 27) | MaxArgLen = 256 constant TaskCommLen (line 30) | TaskCommLen = 16 type execEvent (line 32) | type execEvent struct type networkEventT (line 49) | type networkEventT struct constant EV_TYPE_NONE (line 58) | EV_TYPE_NONE = iota constant EV_TYPE_EXEC (line 59) | EV_TYPE_EXEC constant EV_TYPE_EXECVEAT (line 60) | EV_TYPE_EXECVEAT constant EV_TYPE_FORK (line 61) | EV_TYPE_FORK constant EV_TYPE_SCHED_EXIT (line 62) | EV_TYPE_SCHED_EXIT type EventsProgsDefs (line 66) | type EventsProgsDefs struct type EventsMapsDefs (line 78) | type EventsMapsDefs struct type eventsDefsT (line 84) | type eventsDefsT struct function initEventsStreamer (line 89) | func initEventsStreamer() *Error { function initPerfMap (line 151) | func initPerfMap(events *ebpf.Map) error { function streamEventsWorker (line 209) | func streamEventsWorker(id int, chn chan []byte, kernelEvents chan inter... function processExecEvent (line 259) | func processExecEvent(event *execEvent) { function event2process (line 291) | func event2process(event *execEvent) (proc *procmon.Process) { function getProcDetails (line 334) | func getProcDetails(event *execEvent, proc *procmon.Process) { function processExitEvent (line 341) | func processExitEvent(event *execEvent) { FILE: daemon/procmon/ebpf/find.go function GetPid (line 22) | func GetPid(proto string, srcPort uint, srcIP net.IP, dstIP net.IP, dstP... function getPidFromEbpf (line 69) | func getPidFromEbpf(proto string, srcPort uint, srcIP net.IP, dstIP net.... function isPIDinEventsCache (line 173) | func isPIDinEventsCache(pid, uid int) (proc *procmon.Process) { function findConnProcess (line 190) | func findConnProcess(value *networkEventT, connKey string) (proc *procmo... function findInAlreadyEstablishedTCP (line 209) | func findInAlreadyEstablishedTCP(proto string, srcPort uint, srcIP net.I... function findAddressInLocalAddresses (line 230) | func findAddressInLocalAddresses(addr net.IP) bool { FILE: daemon/procmon/ebpf/monitor.go function monitorMaps (line 15) | func monitorMaps() { function monitorCache (line 35) | func monitorCache() { function monitorLocalAddresses (line 48) | func monitorLocalAddresses() { function monitorAlreadyEstablished (line 91) | func monitorAlreadyEstablished() { FILE: daemon/procmon/ebpf/utils.go function determineHostByteOrder (line 13) | func determineHostByteOrder() { function mountTraceFS (line 29) | func mountTraceFS() error { function byteArrayToString (line 55) | func byteArrayToString(arr []byte) string { function deleteEbpfEntry (line 60) | func deleteEbpfEntry(proto string, key []byte) bool { function getItems (line 68) | func getItems(proto string, isIPv6 bool) (items uint) { function deleteOldItems (line 100) | func deleteOldItems(proto string, isIPv6 bool, maxToDelete uint) (delete... FILE: daemon/procmon/find.go function sortPidsByTime (line 11) | func sortPidsByTime(fdList []os.FileInfo) []os.FileInfo { function inodeFound (line 25) | func inodeFound(pidsPath, expect, inodeKey string, inode, pid int) bool { function lookupPidInProc (line 48) | func lookupPidInProc(pidsPath, expect, inodeKey string, inode int) int { function lookupPidDescriptors (line 61) | func lookupPidDescriptors(fdPath string, pid int) []string { function getProcPids (line 87) | func getProcPids(pidsPath string) []int { FILE: daemon/procmon/find_test.go function TestGetProcPids (line 8) | func TestGetProcPids(t *testing.T) { function TestLookupPidDescriptors (line 16) | func TestLookupPidDescriptors(t *testing.T) { function TestLookupPidInProc (line 23) | func TestLookupPidInProc(t *testing.T) { function BenchmarkGetProcs (line 32) | func BenchmarkGetProcs(b *testing.B) { function BenchmarkLookupPidDescriptors (line 38) | func BenchmarkLookupPidDescriptors(b *testing.B) { FILE: daemon/procmon/monitor/init.go constant NoError (line 21) | NoError = iota constant ProcFsErr (line 22) | ProcFsErr constant AuditdErr (line 23) | AuditdErr constant EbpfErr (line 24) | EbpfErr constant EbpfEventsErr (line 25) | EbpfEventsErr type Error (line 29) | type Error struct function startProcMonitors (line 34) | func startProcMonitors() { function stopProcMonitors (line 45) | func stopProcMonitors() { function ReconfigureMonitorMethod (line 53) | func ReconfigureMonitorMethod(newMonitorMethod string, ebpfCfg ebpf.Conf... function End (line 74) | func End() { function Init (line 85) | func Init(ebpfCfg ebpf.Config, auditCfg audit.Config) (errm *Error) { FILE: daemon/procmon/parse.go function getPIDFromAuditEvents (line 13) | func getPIDFromAuditEvents(inode int, inodeKey string, expect string) (i... function GetInodeFromNetstat (line 34) | func GetInodeFromNetstat(netEntry *netstat.Entry, inodeList *[]int, prot... function GetPIDFromINode (line 57) | func GetPIDFromINode(inode int, inodeKey string) int { function FindProcess (line 95) | func FindProcess(pid int, interceptUnknown bool) *Process { FILE: daemon/procmon/process.go constant MethodProc (line 21) | MethodProc = "proc" constant MethodAudit (line 22) | MethodAudit = "audit" constant MethodEbpf (line 23) | MethodEbpf = "ebpf" constant KernelConnection (line 25) | KernelConnection = "Kernel connection" constant ProcPrefix (line 26) | ProcPrefix = "/proc" constant ProcSelf (line 27) | ProcSelf = "/proc/self/" constant ProcSelfExe (line 28) | ProcSelfExe = "/proc/self/exe" constant HashMD5 (line 30) | HashMD5 = "process.hash.md5" constant HashSHA1 (line 31) | HashSHA1 = "process.hash.sha1" type procIOstats (line 35) | type procIOstats struct type procNetStats (line 44) | type procNetStats struct type procDescriptors (line 49) | type procDescriptors struct type procStatm (line 56) | type procStatm struct type Process (line 67) | type Process struct method Lock (line 185) | func (p *Process) Lock() { method Unlock (line 190) | func (p *Process) Unlock() { method RLock (line 195) | func (p *Process) RLock() { method RUnlock (line 200) | func (p *Process) RUnlock() { method Serialize (line 205) | func (p *Process) Serialize() *protocol.Process { function NewProcessEmpty (line 125) | func NewProcessEmpty(pid int, comm string) *Process { function NewProcess (line 159) | func NewProcess(pid int, comm string) *Process { function NewProcessWithParent (line 172) | func NewProcessWithParent(pid, ppid int, comm string) *Process { function SetMonitorMethod (line 234) | func SetMonitorMethod(newMonitorMethod string) { function GetMonitorMethod (line 242) | func GetMonitorMethod() string { function MethodIsEbpf (line 250) | func MethodIsEbpf() bool { function MethodIsAudit (line 258) | func MethodIsAudit() bool { function MethodIsProc (line 265) | func MethodIsProc() bool { FILE: daemon/procmon/process_test.go function TestNewProcess (line 17) | func TestNewProcess(t *testing.T) { function TestProcPath (line 26) | func TestProcPath(t *testing.T) { function TestProcCwd (line 35) | func TestProcCwd(t *testing.T) { function TestProcCmdline (line 43) | func TestProcCmdline(t *testing.T) { function TestProcDescriptors (line 51) | func TestProcDescriptors(t *testing.T) { function TestProcEnv (line 59) | func TestProcEnv(t *testing.T) { function TestProcIOStats (line 87) | func TestProcIOStats(t *testing.T) { function TestProcStatus (line 95) | func TestProcStatus(t *testing.T) { function TestProcCleanPath (line 133) | func TestProcCleanPath(t *testing.T) { function TestProcCleanArgs (line 163) | func TestProcCleanArgs(t *testing.T) { function BenchmarkProcReadEnv (line 175) | func BenchmarkProcReadEnv(b *testing.B) { FILE: daemon/rule/loader.go type Loader (line 25) | type Loader struct method NumRules (line 56) | func (l *Loader) NumRules() int { method GetAll (line 63) | func (l *Loader) GetAll() map[string]*Rule { method EnableChecksums (line 70) | func (l *Loader) EnableChecksums(enable bool) { method HasChecksums (line 78) | func (l *Loader) HasChecksums(op Operand) { method Reload (line 90) | func (l *Loader) Reload(path string) error { method Load (line 121) | func (l *Loader) Load(path string) error { method Add (line 159) | func (l *Loader) Add(rule *Rule, saveToDisk bool) error { method Replace (line 169) | func (l *Loader) Replace(rule *Rule, saveToDisk bool) error { method Save (line 184) | func (l *Loader) Save(rule *Rule, path string) error { method Delete (line 202) | func (l *Loader) Delete(ruleName string) error { method loadRule (line 223) | func (l *Loader) loadRule(fileName string) error { method deleteRule (line 280) | func (l *Loader) deleteRule(filePath string) { method deleteRuleFromDisk (line 293) | func (l *Loader) deleteRuleFromDisk(ruleName string) error { method deleteOldRuleFromDisk (line 300) | func (l *Loader) deleteOldRuleFromDisk(oldRule, newRule *Rule) { method cleanListsRule (line 310) | func (l *Loader) cleanListsRule(oldRule *Rule) { method isTemporary (line 323) | func (l *Loader) isTemporary(r *Rule) bool { method isUniqueName (line 327) | func (l *Loader) isUniqueName(name string) bool { method setUniqueName (line 332) | func (l *Loader) setUniqueName(rule *Rule) { method setLiveReloadRunning (line 344) | func (l *Loader) setLiveReloadRunning(running bool) { method isLiveReloadRunning (line 350) | func (l *Loader) isLiveReloadRunning() bool { method unmarshalOperatorList (line 357) | func (l *Loader) unmarshalOperatorList(op *Operator) error { method sortRules (line 368) | func (l *Loader) sortRules() { method addUserRule (line 380) | func (l *Loader) addUserRule(rule *Rule) { method replaceUserRule (line 389) | func (l *Loader) replaceUserRule(rule *Rule) (err error) { method scheduleTemporaryRule (line 434) | func (l *Loader) scheduleTemporaryRule(rule Rule) error { method liveReloadWorker (line 457) | func (l *Loader) liveReloadWorker() { method FindFirstMatch (line 497) | func (l *Loader) FindFirstMatch(con *conman.Connection) (match *Rule) { function NewLoader (line 40) | func NewLoader(liveReload bool) (*Loader, error) { FILE: daemon/rule/loader_test.go function TestMain (line 14) | func TestMain(m *testing.M) { function TestRuleLoader (line 21) | func TestRuleLoader(t *testing.T) { function TestRuleLoaderInvalidRegexp (line 66) | func TestRuleLoaderInvalidRegexp(t *testing.T) { function TestRuleLoaderList (line 109) | func TestRuleLoaderList(t *testing.T) { function TestLiveReload (line 150) | func TestLiveReload(t *testing.T) { function randString (line 188) | func randString() string { function Copy (line 198) | func Copy(src, dst string) error { function testNumRules (line 218) | func testNumRules(t *testing.T, l *Loader, num int) { function testRulesOrder (line 224) | func testRulesOrder(t *testing.T, l *Loader) { function testSortRules (line 236) | func testSortRules(t *testing.T, l *Loader) { function testFindMatch (line 248) | func testFindMatch(t *testing.T, l *Loader) { function testFindPriorityMatch (line 258) | func testFindPriorityMatch(t *testing.T, l *Loader) { function testFindDenyMatch (line 270) | func testFindDenyMatch(t *testing.T, l *Loader) { function testFindAllowMatch (line 283) | func testFindAllowMatch(t *testing.T, l *Loader) { function testFindEnabled (line 297) | func testFindEnabled(t *testing.T, l *Loader) { function testDurationChange (line 314) | func testDurationChange(t *testing.T, l *Loader) { FILE: daemon/rule/operator.go type Type (line 20) | type Type type Sensitive (line 23) | type Sensitive type Operand (line 26) | type Operand constant Simple (line 30) | Simple = Type("simple") constant Regexp (line 31) | Regexp = Type("regexp") constant Complex (line 32) | Complex = Type("complex") constant List (line 33) | List = Type("list") constant Network (line 34) | Network = Type("network") constant Lists (line 35) | Lists = Type("lists") constant Range (line 36) | Range = Type("range") constant OpTrue (line 41) | OpTrue = Operand("true") constant OpProcessID (line 42) | OpProcessID = Operand("process.id") constant OpProcessPath (line 43) | OpProcessPath = Operand("process.path") constant OpProcessParentPath (line 44) | OpProcessParentPath = Operand("process.parent.path") constant OpProcessCmd (line 45) | OpProcessCmd = Operand("process.command") constant OpProcessEnvPrefix (line 46) | OpProcessEnvPrefix = Operand("process.env.") constant OpProcessEnvPrefixLen (line 47) | OpProcessEnvPrefixLen = 12 constant OpProcessHashMD5 (line 48) | OpProcessHashMD5 = Operand("process.hash.md5") constant OpProcessHashSHA1 (line 49) | OpProcessHashSHA1 = Operand("process.hash.sha1") constant OpUserID (line 50) | OpUserID = Operand("user.id") constant OpUserName (line 51) | OpUserName = Operand("user.name") constant OpSrcIP (line 52) | OpSrcIP = Operand("source.ip") constant OpSrcPort (line 53) | OpSrcPort = Operand("source.port") constant OpDstIP (line 54) | OpDstIP = Operand("dest.ip") constant OpDstHost (line 55) | OpDstHost = Operand("dest.host") constant OpDstPort (line 56) | OpDstPort = Operand("dest.port") constant OpDstNetwork (line 57) | OpDstNetwork = Operand("dest.network") constant OpSrcNetwork (line 58) | OpSrcNetwork = Operand("source.network") constant OpProto (line 59) | OpProto = Operand("protocol") constant OpIfaceIn (line 60) | OpIfaceIn = Operand("iface.in") constant OpIfaceOut (line 61) | OpIfaceOut = Operand("iface.out") constant OpList (line 62) | OpList = Operand("list") constant OpDomainsLists (line 63) | OpDomainsLists = Operand("lists.domains") constant OpDomainsRegexpLists (line 64) | OpDomainsRegexpLists = Operand("lists.domains_regexp") constant OpIPLists (line 65) | OpIPLists = Operand("lists.ips") constant OpNetLists (line 66) | OpNetLists = Operand("lists.nets") constant OpHashMD5Lists (line 67) | OpHashMD5Lists = Operand("lists.hash.md5") type opCallback (line 75) | type opCallback type opGenericCallback (line 76) | type opGenericCallback type Operator (line 79) | type Operator struct method Compile (line 113) | func (o *Operator) Compile() error { method compileNetwork (line 202) | func (o *Operator) compileNetwork() error { method compileRange (line 230) | func (o *Operator) compileRange() error { method String (line 256) | func (o *Operator) String() string { method simpleCmp (line 264) | func (o *Operator) simpleCmp(v string) bool { method reCmp (line 271) | func (o *Operator) reCmp(data string) bool { method rangeCmp (line 278) | func (o *Operator) rangeCmp(value string) bool { method cmpNetwork (line 283) | func (o *Operator) cmpNetwork(destIP interface{}) bool { method matchListsCmp (line 292) | func (o *Operator) matchListsCmp(msg, what string) bool { method domainsListsCmp (line 304) | func (o *Operator) domainsListsCmp(data string) bool { method simpleListsCmp (line 315) | func (o *Operator) simpleListsCmp(what string) bool { method ipNetCmp (line 323) | func (o *Operator) ipNetCmp(dstIP interface{}) bool { method reListCmp (line 337) | func (o *Operator) reListCmp(data string) bool { method hashCmp (line 357) | func (o *Operator) hashCmp(hash string) bool { method listMatch (line 364) | func (o *Operator) listMatch(con *conman.Connection, hasChecksums bool... method Match (line 373) | func (o *Operator) Match(con *conman.Connection, hasChecksums bool) bo... function NewOperator (line 101) | func NewOperator(t Type, s Sensitive, o Operand, data string, list []Ope... FILE: daemon/rule/operator_aliases.go function LoadAliases (line 12) | func LoadAliases(filename string) error { function GetAliasByIP (line 41) | func GetAliasByIP(ip string) string { method SerializeData (line 55) | func (o *Operator) SerializeData() string { FILE: daemon/rule/operator_lists.go method monitorLists (line 17) | func (o *Operator) monitorLists() { method ClearLists (line 87) | func (o *Operator) ClearLists() { method StopMonitoringLists (line 99) | func (o *Operator) StopMonitoringLists() { function filterDomains (line 107) | func filterDomains(line, defValue string) (bool, string, string) { function filterSimple (line 127) | func filterSimple(line, hashPath string) (bool, string, string) { method readTupleList (line 133) | func (o *Operator) readTupleList(raw, fileName string, filter func(line,... method readNetList (line 154) | func (o *Operator) readNetList(raw, fileName string) (dups uint64) { method readRegexpList (line 179) | func (o *Operator) readRegexpList(raw, fileName string) (dups uint64) { method readSimpleList (line 207) | func (o *Operator) readSimpleList(raw, fileName string) (dups uint64) { method readLists (line 227) | func (o *Operator) readLists() error { method loadLists (line 274) | func (o *Operator) loadLists() { FILE: daemon/rule/operator_test.go function compileListOperators (line 46) | func compileListOperators(list *[]Operator, t *testing.T) { function unmarshalListData (line 55) | func unmarshalListData(data string, t *testing.T) (op *[]Operator) { function restoreConnection (line 63) | func restoreConnection() { function TestNewOperatorSimple (line 70) | func TestNewOperatorSimple(t *testing.T) { function TestNewOperatorNetwork (line 228) | func TestNewOperatorNetwork(t *testing.T) { function TestNewOperatorRegexp (line 261) | func TestNewOperatorRegexp(t *testing.T) { function TestNewOperatorInvalidRegexp (line 281) | func TestNewOperatorInvalidRegexp(t *testing.T) { function TestNewOperatorRegexpSensitive (line 298) | func TestNewOperatorRegexpSensitive(t *testing.T) { function TestNewOperatorList (line 344) | func TestNewOperatorList(t *testing.T) { function TestNewOperatorListsSimple (line 431) | func TestNewOperatorListsSimple(t *testing.T) { function TestNewOperatorListsIPs (line 465) | func TestNewOperatorListsIPs(t *testing.T) { function TestNewOperatorListsNETs (line 519) | func TestNewOperatorListsNETs(t *testing.T) { function TestNewOperatorListsComplex (line 573) | func TestNewOperatorListsComplex(t *testing.T) { function TestNewOperatorListsDomainsRegexp (line 617) | func TestNewOperatorListsDomainsRegexp(t *testing.T) { function TestRaceNewOperatorListsDomainsRegexp (line 674) | func TestRaceNewOperatorListsDomainsRegexp(t *testing.T) { function TestNewOperatorRegexpBareIpNoHostName (line 748) | func TestNewOperatorRegexpBareIpNoHostName(t *testing.T) { function TestNewOperatorSimpleBareIpNoHostName (line 770) | func TestNewOperatorSimpleBareIpNoHostName(t *testing.T) { function TestNewOperatorRange (line 792) | func TestNewOperatorRange(t *testing.T) { FILE: daemon/rule/rule.go constant DefaultPath (line 14) | DefaultPath = "/etc/opensnitchd/rules" type Action (line 18) | type Action constant Allow (line 22) | Allow = Action("allow") constant Deny (line 23) | Deny = Action("deny") constant Reject (line 24) | Reject = Action("reject") type Duration (line 28) | type Duration constant Once (line 32) | Once = Duration("once") constant Restart (line 33) | Restart = Duration("until restart") constant Always (line 34) | Always = Duration("always") type Rule (line 40) | type Rule struct method String (line 70) | func (r *Rule) String() string { method Match (line 80) | func (r *Rule) Match(con *conman.Connection, hasChecksums bool) bool { method Serialize (line 133) | func (r *Rule) Serialize() *protocol.Rule { function Create (line 56) | func Create(name, description string, enabled, precedence, nolog bool, a... function Deserialize (line 85) | func Deserialize(reply *protocol.Rule) (*Rule, error) { FILE: daemon/rule/rule_test.go function TestCreate (line 7) | func TestCreate(t *testing.T) { function TestRuleSerializers (line 51) | func TestRuleSerializers(t *testing.T) { FILE: daemon/statistics/event.go type Event (line 11) | type Event struct method Serialize (line 25) | func (e *Event) Serialize() *protocol.Event { function NewEvent (line 17) | func NewEvent(con *conman.Connection, match *rule.Rule) *Event { FILE: daemon/statistics/stats.go type StatsConfig (line 18) | type StatsConfig struct type conEvent (line 24) | type conEvent struct type Statistics (line 32) | type Statistics struct method SetLoggers (line 91) | func (s *Statistics) SetLoggers(loggermgr *loggers.LoggerManager) { method SetLimits (line 100) | func (s *Statistics) SetLimits(config StatsConfig) { method OnConnectionEvent (line 122) | func (s *Statistics) OnConnectionEvent(con *conman.Connection, match *... method OnDNSResponse (line 139) | func (s *Statistics) OnDNSResponse() { method OnIgnored (line 147) | func (s *Statistics) OnIgnored() { method incMap (line 154) | func (s *Statistics) incMap(m *map[string]uint64, key string) { method eventWorker (line 180) | func (s *Statistics) eventWorker(id int, done <-chan struct{}) { method onConnection (line 195) | func (s *Statistics) onConnection(con *conman.Connection, match *rule.... method serializeEvents (line 236) | func (s *Statistics) serializeEvents() []*protocol.Event { method emptyStats (line 249) | func (s *Statistics) emptyStats() { method Serialize (line 261) | func (s *Statistics) Serialize() *protocol.Statistics { function New (line 67) | func New(rules *rule.Loader) (stats *Statistics) { FILE: daemon/tasks/base/main.go constant PID_MON (line 8) | PID_MON = 9000 constant NODE_MON (line 9) | NODE_MON = 9001 constant SOCKETS_MON (line 10) | SOCKETS_MON = 9002 constant DOWNLOADER (line 11) | DOWNLOADER = 9003 constant NETSNIFFER (line 12) | NETSNIFFER = 9004 constant IOCS_SCANNER (line 13) | IOCS_SCANNER = 9005 constant REDFLAGS (line 14) | REDFLAGS = 9006 type TaskBase (line 19) | type TaskBase struct method SetID (line 44) | func (t *TaskBase) SetID(id uint64) { method GetID (line 48) | func (t *TaskBase) GetID() uint64 { method IsTemporary (line 52) | func (t *TaskBase) IsTemporary() bool { type TaskResults (line 56) | type TaskResults struct type Task (line 62) | type Task interface type TaskNotification (line 90) | type TaskNotification struct FILE: daemon/tasks/config/main.go type TaskData (line 29) | type TaskData struct type TaskConfig (line 42) | type TaskConfig struct type TasksList (line 61) | type TasksList struct type Loader (line 65) | type Loader struct method Load (line 91) | func (l *Loader) Load(path string) ([]TaskConfig, error) { function NewTasksLoader (line 78) | func NewTasksLoader() (*Loader, error) { FILE: daemon/tasks/config/monitor.go method AddWatch (line 12) | func (l *Loader) AddWatch(path string) error { method RemoveWatch (line 18) | func (l *Loader) RemoveWatch(path string) error { method AddWatches (line 24) | func (l *Loader) AddWatches() { method setLiveReloadRunning (line 45) | func (l *Loader) setLiveReloadRunning(running bool) { method isLiveReloadRunning (line 51) | func (l *Loader) isLiveReloadRunning() bool { method liveReloadWorker (line 57) | func (l *Loader) liveReloadWorker() { FILE: daemon/tasks/config/utils.go function LoadTaskData (line 11) | func LoadTaskData(path string) (TaskData, error) { FILE: daemon/tasks/downloader/config.go type NotifyType (line 11) | type NotifyType type NotifyObj (line 18) | type NotifyObj type NotifyStatus (line 20) | type NotifyStatus struct type NotifyOpts (line 25) | type NotifyOpts struct type UrlOptions (line 31) | type UrlOptions struct type DownloaderConfig (line 38) | type DownloaderConfig struct function loadConfig (line 46) | func loadConfig(data map[string]interface{}) (DownloaderConfig, error) { FILE: daemon/tasks/downloader/downloader.go type DownProgress (line 21) | type DownProgress struct type DownMgr (line 28) | type DownMgr struct method Start (line 49) | func (nd *DownMgr) Start() *sync.WaitGroup { method downloadFile (line 59) | func (nd *DownMgr) downloadFile(wg *sync.WaitGroup, url, localFile str... method Progress (line 102) | func (nd *DownMgr) Progress() <-chan DownProgress { function NewDownloaderMgr (line 40) | func NewDownloaderMgr(urls map[string]string, timeout time.Duration) *Do... FILE: daemon/tasks/downloader/main.go type Downloader (line 31) | type Downloader struct method Start (line 63) | func (pm *Downloader) Start(ctx context.Context, cancel context.Cancel... method GetName (line 151) | func (pm *Downloader) GetName() string { method Pause (line 157) | func (pm *Downloader) Pause() error { method Resume (line 162) | func (pm *Downloader) Resume() error { method Stop (line 167) | func (pm *Downloader) Stop() error { method Results (line 186) | func (pm *Downloader) Results() <-chan interface{} { method Errors (line 191) | func (pm *Downloader) Errors() <-chan error { function New (line 41) | func New(config map[string]interface{}, stopOnDisconnect bool) *Download... FILE: daemon/tasks/downloader/utils.go method parseInterval (line 16) | func (pm *Downloader) parseInterval() (time.Duration, error) { method parseTimeout (line 23) | func (pm *Downloader) parseTimeout() (time.Duration, error) { method loadUrls (line 42) | func (pm *Downloader) loadUrls() error { FILE: daemon/tasks/iocscanner/config/config.go type NotifyType (line 13) | type NotifyType type ActionType (line 14) | type ActionType type ActionData (line 15) | type ActionData type ReportType (line 17) | type ReportType type NotifyStatus (line 30) | type NotifyStatus struct type NotifyOpts (line 35) | type NotifyOpts struct type ActionsOpts (line 41) | type ActionsOpts struct type List (line 46) | type List struct type ExclusionsOpts (line 50) | type ExclusionsOpts struct type ReportOpts (line 56) | type ReportOpts struct type ScanOpts (line 90) | type ScanOpts struct type ToolOpts (line 140) | type ToolOpts struct type IOCConfig (line 189) | type IOCConfig struct function LoadConfig (line 197) | func LoadConfig(data map[string]interface{}) (IOCConfig, error) { FILE: daemon/tasks/iocscanner/main.go type Config (line 33) | type Config struct type IOCScanner (line 38) | type IOCScanner struct method Start (line 82) | func (pm *IOCScanner) Start(ctx context.Context, cancel context.Cancel... method GetName (line 154) | func (pm *IOCScanner) GetName() string { method Pause (line 160) | func (pm *IOCScanner) Pause() error { method Resume (line 166) | func (pm *IOCScanner) Resume() error { method Stop (line 172) | func (pm *IOCScanner) Stop() error { method Results (line 194) | func (pm *IOCScanner) Results() <-chan interface{} { method Errors (line 199) | func (pm *IOCScanner) Errors() <-chan error { function New (line 51) | func New(name string, taskcfg map[string]interface{}, stopOnDisconnect b... FILE: daemon/tasks/iocscanner/run_tools.go method runTool (line 18) | func (pm *IOCScanner) runTool(tool base.Tool) { FILE: daemon/tasks/iocscanner/tools/base/base.go constant MsgStart (line 14) | MsgStart = "IOC scanner started" constant MsgEnd (line 15) | MsgEnd = "IOC scanner finished" constant PropName (line 17) | PropName = "name" constant PropMsgStart (line 18) | PropMsgStart = "msgstart" constant PropMsgEnd (line 19) | PropMsgEnd = "msgend" type ToolBase (line 22) | type ToolBase struct method GetProperty (line 35) | func (t *ToolBase) GetProperty(prop string) string { method Log (line 47) | func (t *ToolBase) Log(line string) { method TransformLogline (line 50) | func (t *ToolBase) TransformLogline(line string) string { method Done (line 54) | func (t *ToolBase) Done() <-chan struct{} { method Stdout (line 58) | func (t *ToolBase) Stdout() chan string { method Stderr (line 62) | func (t *ToolBase) Stderr() chan string { method Cleanup (line 66) | func (t *ToolBase) Cleanup() {} method Workers (line 68) | func (t *ToolBase) Workers() int { method SetWorkers (line 72) | func (t *ToolBase) SetWorkers(wrks int) { type Tool (line 79) | type Tool interface FILE: daemon/tasks/iocscanner/tools/dpkg/dpkg.go constant PrefixDpkg (line 30) | PrefixDpkg = "dpkg" constant PrefixDebsums (line 31) | PrefixDebsums = "debsums" type DpkgTool (line 34) | type DpkgTool struct method Log (line 38) | func (d *DpkgTool) Log(line string) { method Start (line 46) | func (d *DpkgTool) Start() { method TransformLogline (line 52) | func (d *DpkgTool) TransformLogline(line string) string { method Cleanup (line 95) | func (d *DpkgTool) Cleanup() { method Stop (line 101) | func (d *DpkgTool) Stop() { function New (line 108) | func New(opts config.ToolOpts) *DpkgTool { FILE: daemon/tasks/iocscanner/tools/executer/executer.go type Executer (line 18) | type Executer struct method Start (line 41) | func (e *Executer) Start(bin string, args []string) { method SetPriority (line 94) | func (e *Executer) SetPriority(prio int) { method setRunning (line 98) | func (e *Executer) setRunning(running bool) { method Running (line 104) | func (e *Executer) Running() bool { method Stop (line 110) | func (e *Executer) Stop() { function New (line 31) | func New() *Executer { FILE: daemon/tasks/iocscanner/tools/generic/generic.go constant Prefix (line 32) | Prefix = "script" type GenericTool (line 35) | type GenericTool struct method Log (line 39) | func (d *GenericTool) Log(line string) { method Start (line 47) | func (d *GenericTool) Start() { method TransformLogline (line 53) | func (d *GenericTool) TransformLogline(line string) string { method Cleanup (line 68) | func (d *GenericTool) Cleanup() { method Stop (line 74) | func (d *GenericTool) Stop() { function New (line 81) | func New(opts config.ToolOpts) *GenericTool { FILE: daemon/tasks/iocscanner/tools/yara/yara.go constant Prefix (line 30) | Prefix = "yara" type YaraTool (line 39) | type YaraTool struct method Start (line 45) | func (y *YaraTool) Start() { method Log (line 50) | func (y *YaraTool) Log(line string) { method TransformLogline (line 58) | func (y *YaraTool) TransformLogline(line string) string { method Cleanup (line 63) | func (y *YaraTool) Cleanup() { method Stop (line 76) | func (y *YaraTool) Stop() { function New (line 83) | func New(opts config.ToolOpts) *YaraTool { FILE: daemon/tasks/load.go method ReloadTaskFile (line 14) | func (tm *TaskManager) ReloadTaskFile(cfgfile string) error { method LoadTaskFile (line 29) | func (tm *TaskManager) LoadTaskFile(cfgfile string) error { method loadDiskTasks (line 80) | func (tm *TaskManager) loadDiskTasks(tasks []config.TaskConfig) { method loadDiskTask (line 109) | func (tm *TaskManager) loadDiskTask(name string, taskConf config.TaskDat... FILE: daemon/tasks/looptask/main.go type Config (line 22) | type Config struct type Looper (line 27) | type Looper struct method Start (line 49) | func (fm *Looper) Start(ctx context.Context, cancel context.CancelFunc... method Pause (line 84) | func (fm *Looper) Pause() error { method Resume (line 90) | func (fm *Looper) Resume() error { method Stop (line 96) | func (fm *Looper) Stop() error { method Results (line 113) | func (fm *Looper) Results() <-chan interface{} { method Errors (line 118) | func (fm *Looper) Errors() <-chan error { method GetName (line 122) | func (fm *Looper) GetName() string { function New (line 35) | func New(name, interval string) (string, *Looper) { FILE: daemon/tasks/main.go type EventTask (line 17) | type EventTask struct type TaskManager (line 25) | type TaskManager struct method AddTask (line 55) | func (tm *TaskManager) AddTask(name string, task base.Task) (context.C... method RemoveTask (line 96) | func (tm *TaskManager) RemoveTask(name string) error { method PauseAll (line 120) | func (tm *TaskManager) PauseAll() { method ResumeAll (line 128) | func (tm *TaskManager) ResumeAll() { method StopAll (line 136) | func (tm *TaskManager) StopAll() { method StopTempTasks (line 149) | func (tm *TaskManager) StopTempTasks() { method GetTask (line 162) | func (tm *TaskManager) GetTask(name string) (tk base.Task, found bool) { method UpdateTask (line 170) | func (tm *TaskManager) UpdateTask(name string, task base.Task) (contex... method Stop (line 184) | func (tm *TaskManager) Stop() { function NewTaskManager (line 37) | func NewTaskManager() *TaskManager { FILE: daemon/tasks/main_test.go type BasicTask (line 10) | type BasicTask struct method Start (line 14) | func (pm *BasicTask) Start(ctx context.Context, cancel context.CancelF... method Pause (line 17) | func (pm *BasicTask) Pause() error { method Resume (line 20) | func (pm *BasicTask) Resume() error { method Stop (line 23) | func (pm *BasicTask) Stop() error { method Errors (line 26) | func (pm *BasicTask) Errors() <-chan error { method Results (line 29) | func (pm *BasicTask) Results() <-chan interface{} { function taskEvents (line 41) | func taskEvents(tm *TaskManager, t *testing.T) { function TestTaskManager (line 52) | func TestTaskManager(t *testing.T) { FILE: daemon/tasks/nodemonitor/main.go type Config (line 20) | type Config struct type NodeMonitor (line 26) | type NodeMonitor struct method Start (line 51) | func (pm *NodeMonitor) Start(ctx context.Context, cancel context.Cance... method Pause (line 99) | func (pm *NodeMonitor) Pause() error { method Resume (line 105) | func (pm *NodeMonitor) Resume() error { method Stop (line 111) | func (pm *NodeMonitor) Stop() error { method Results (line 126) | func (pm *NodeMonitor) Results() <-chan interface{} { method Errors (line 131) | func (pm *NodeMonitor) Errors() <-chan error { function New (line 36) | func New(node, interval string, stopOnDisconnect bool) (string, *NodeMon... FILE: daemon/tasks/nodemonitor/main_test.go function taskEvents (line 15) | func taskEvents(tm *tasks.TaskManager, t *testing.T) { function TestNodeMonitor (line 26) | func TestNodeMonitor(t *testing.T) { FILE: daemon/tasks/pidmonitor/main.go type Config (line 21) | type Config struct type PIDMonitor (line 27) | type PIDMonitor struct method Start (line 50) | func (pm *PIDMonitor) Start(ctx context.Context, cancel context.Cancel... method Pause (line 107) | func (pm *PIDMonitor) Pause() error { method Resume (line 113) | func (pm *PIDMonitor) Resume() error { method Stop (line 119) | func (pm *PIDMonitor) Stop() error { method Results (line 134) | func (pm *PIDMonitor) Results() <-chan interface{} { method Errors (line 139) | func (pm *PIDMonitor) Errors() <-chan error { function New (line 36) | func New(pid int, interval string, stopOnDisconnect bool) (string, *PIDM... FILE: daemon/tasks/pidmonitor/main_test.go function taskEvents (line 16) | func taskEvents(tm *tasks.TaskManager, t *testing.T) { function TestPIDMonitor (line 27) | func TestPIDMonitor(t *testing.T) { FILE: daemon/tasks/scheduler/daily.go function timeHasDrifted (line 18) | func timeHasDrifted(now, tms *time.Time) bool { function waitToStart (line 22) | func waitToStart(ctx context.Context, id int, t string, wait time.Durati... function calcDailyTicker (line 46) | func calcDailyTicker(tm string) (*time.Time, time.Duration) { function NewDailyTicker (line 77) | func NewDailyTicker(tm string) (*time.Ticker, *time.Time, time.Duration) { method stopTimer (line 82) | func (s *Scheduler) stopTimer(id int, t *time.Ticker) { method restartTimers (line 91) | func (s *Scheduler) restartTimers(drifted chan struct{}) { method SetupDailyTimers (line 105) | func (s *Scheduler) SetupDailyTimers() { FILE: daemon/tasks/scheduler/scheduler.go type Config (line 15) | type Config struct type Scheduler (line 39) | type Scheduler struct method Start (line 65) | func (s *Scheduler) Start() { method Stop (line 155) | func (s *Scheduler) Stop() { method Tick (line 171) | func (s *Scheduler) Tick() <-chan time.Time { function New (line 51) | func New(ctx context.Context, cancel context.CancelFunc, config Config) ... FILE: daemon/tasks/socketsmonitor/dump.go constant AnySocket (line 20) | AnySocket = 0 type Socket (line 25) | type Socket struct type SocketsTable (line 34) | type SocketsTable struct method dumpSockets (line 40) | func (pm *SocketsMonitor) dumpSockets() *SocketsTable { function dumpXDPSockets (line 84) | func dumpXDPSockets(ctx context.Context, conf *monConfig, socketList *So... function dumpPacketSockets (line 108) | func dumpPacketSockets(ctx context.Context, conf *monConfig, socketList ... function exclude (line 167) | func exclude(expected, what uint8) bool { function addSocketToTable (line 171) | func addSocketToTable(ctx context.Context, wg *sync.WaitGroup, proto uin... FILE: daemon/tasks/socketsmonitor/main.go type monConfig (line 20) | type monConfig struct type SocketsMonitor (line 28) | type SocketsMonitor struct method Start (line 81) | func (pm *SocketsMonitor) Start(ctx context.Context, cancel context.Ca... method Pause (line 120) | func (pm *SocketsMonitor) Pause() error { method Resume (line 126) | func (pm *SocketsMonitor) Resume() error { method Stop (line 132) | func (pm *SocketsMonitor) Stop() error { method Results (line 147) | func (pm *SocketsMonitor) Results() <-chan interface{} { method Errors (line 152) | func (pm *SocketsMonitor) Errors() <-chan error { function initConfig (line 42) | func initConfig(config interface{}) (*monConfig, error) { function New (line 63) | func New(name string, config interface{}, stopOnDisconnect bool) (*Socke... FILE: daemon/tasks/socketsmonitor/options.go type Protos (line 10) | type Protos struct FILE: daemon/ui/alerts.go function NewWarningAlert (line 16) | func NewWarningAlert(what protocol.Alert_What, data interface{}) *protoc... function NewErrorAlert (line 21) | func NewErrorAlert(what protocol.Alert_What, data interface{}) *protocol... function NewAlert (line 26) | func NewAlert(atype protocol.Alert_Type, what protocol.Alert_What, actio... method SendInfoAlert (line 59) | func (c *Client) SendInfoAlert(data interface{}) { method SendWarningAlert (line 64) | func (c *Client) SendWarningAlert(data interface{}) { method SendErrorAlert (line 69) | func (c *Client) SendErrorAlert(data interface{}) { method alertsDispatcher (line 75) | func (c *Client) alertsDispatcher() { method dispatchAlert (line 118) | func (c *Client) dispatchAlert(pbAlert protocol.Alert) { FILE: daemon/ui/auth/auth.go constant AuthSimple (line 28) | AuthSimple = "simple" constant AuthTLSSimple (line 32) | AuthTLSSimple = "tls-simple" constant AuthTLSMutual (line 36) | AuthTLSMutual = "tls-mutual" function New (line 41) | func New(config *config.Config) (grpc.DialOption, error) { FILE: daemon/ui/client.go type Client (line 42) | type Client struct method Connect (line 107) | func (c *Client) Connect() { method Close (line 116) | func (c *Client) Close() { method ProcMonitorMethod (line 123) | func (c *Client) ProcMonitorMethod() string { method InterceptUnknown (line 130) | func (c *Client) InterceptUnknown() bool { method GetFirewallType (line 137) | func (c *Client) GetFirewallType() string { method DefaultAction (line 147) | func (c *Client) DefaultAction() rule.Action { method DefaultDuration (line 162) | func (c *Client) DefaultDuration() rule.Duration { method Connected (line 169) | func (c *Client) Connected() bool { method GetIsAsking (line 179) | func (c *Client) GetIsAsking() bool { method SetIsAsking (line 186) | func (c *Client) SetIsAsking(flag bool) { method poller (line 192) | func (c *Client) poller() { method onStatusChange (line 235) | func (c *Client) onStatusChange(connected bool) { method connect (line 250) | func (c *Client) connect() (err error) { method openSocket (line 275) | func (c *Client) openSocket() (err error) { method disconnect (line 305) | func (c *Client) disconnect() { method ping (line 321) | func (c *Client) ping(ts time.Time) (err error) { method Ask (line 360) | func (c *Client) Ask(con *conman.Connection) *rule.Rule { method PostAlert (line 382) | func (c *Client) PostAlert(atype protocol.Alert_Type, awhat protocol.A... method monitorConfigWorker (line 394) | func (c *Client) monitorConfigWorker() { function NewClient (line 70) | func NewClient(socketPath, localConfigFile string, stats *statistics.Sta... FILE: daemon/ui/client_test.go function restoreConfigFile (line 50) | func restoreConfigFile(t *testing.T) { function validateConfig (line 62) | func validateConfig(t *testing.T, uiClient *Client, cfg *config.Config) { function validateInvalidProcMonConfig (line 83) | func validateInvalidProcMonConfig(t *testing.T, uiClient *Client, cfg *c... function TestClientDefaultConfig (line 106) | func TestClientDefaultConfig(t *testing.T) { function TestClientReloadingConfig (line 125) | func TestClientReloadingConfig(t *testing.T) { function TestClientInvalidProcMon (line 167) | func TestClientInvalidProcMon(t *testing.T) { FILE: daemon/ui/config/config.go type ServerTLSOptions (line 19) | type ServerTLSOptions struct type ServerAuth (line 37) | type ServerAuth struct type ServerConfig (line 44) | type ServerConfig struct type RulesOptions (line 52) | type RulesOptions struct type FwOptions (line 58) | type FwOptions struct type TasksOptions (line 66) | type TasksOptions struct type InternalOptions (line 71) | type InternalOptions struct type Config (line 78) | type Config struct function Parse (line 99) | func Parse(rawConfig interface{}) (conf Config, err error) { function Marshal (line 108) | func Marshal(conf Config) ([]byte, error) { function Load (line 113) | func Load(configFile string) ([]byte, error) { function Save (line 123) | func Save(configFile, rawConfig string) (err error) { FILE: daemon/ui/config_utils.go method getSocketPath (line 19) | func (c *Client) getSocketPath(socketPath string) string { method getCurrentSocketPath (line 38) | func (c *Client) getCurrentSocketPath() string { method setSocketPath (line 45) | func (c *Client) setSocketPath(socketPath string) { method isProcMonitorEqual (line 52) | func (c *Client) isProcMonitorEqual(newMonitorMethod string) bool { method loadDiskConfiguration (line 59) | func (c *Client) loadDiskConfiguration(reload bool) { method loadConfiguration (line 92) | func (c *Client) loadConfiguration(reload bool, rawConfig []byte) (errf ... method reloadConfiguration (line 110) | func (c *Client) reloadConfiguration(reload bool, newConfig *config.Conf... FILE: daemon/ui/notifications.go function NewReply (line 27) | func NewReply(rID uint64, replyCode protocol.NotificationReplyCode, data... method getClientConfig (line 35) | func (c *Client) getClientConfig() *protocol.ClientConfig { method handleActionChangeConfig (line 63) | func (c *Client) handleActionChangeConfig(stream protocol.UI_Notificatio... method handleActionEnableRule (line 87) | func (c *Client) handleActionEnableRule(stream protocol.UI_Notifications... method handleActionDisableRule (line 100) | func (c *Client) handleActionDisableRule(stream protocol.UI_Notification... method handleActionChangeRule (line 111) | func (c *Client) handleActionChangeRule(stream protocol.UI_Notifications... method handleActionDeleteRule (line 128) | func (c *Client) handleActionDeleteRule(stream protocol.UI_Notifications... method handleActionTaskStart (line 140) | func (c *Client) handleActionTaskStart(stream protocol.UI_NotificationsC... method handleActionTaskStop (line 181) | func (c *Client) handleActionTaskStop(stream protocol.UI_NotificationsCl... method handleActionEnableInterception (line 221) | func (c *Client) handleActionEnableInterception(stream protocol.UI_Notif... method handleActionDisableInterception (line 236) | func (c *Client) handleActionDisableInterception(stream protocol.UI_Noti... method handleActionReloadFw (line 247) | func (c *Client) handleActionReloadFw(stream protocol.UI_NotificationsCl... method handleNotification (line 288) | func (c *Client) handleNotification(stream protocol.UI_NotificationsClie... method sendNotificationReply (line 324) | func (c *Client) sendNotificationReply(stream protocol.UI_NotificationsC... method Subscribe (line 345) | func (c *Client) Subscribe() { method listenForNotifications (line 371) | func (c *Client) listenForNotifications() { FILE: daemon/ui/notifications_tasks.go method monitorTaskManager (line 18) | func (c *Client) monitorTaskManager(tm *tasks.TaskManager) { method monitorTaskEvents (line 43) | func (c *Client) monitorTaskEvents(ctx context.Context, taskName string,... method monitorSockets (line 90) | func (c *Client) monitorSockets(config interface{}, stream protocol.UI_N... method monitorNode (line 104) | func (c *Client) monitorNode(node, interval string, stream protocol.UI_N... method monitorProcessDetails (line 114) | func (c *Client) monitorProcessDetails(pid int, interval string, stream ... FILE: ebpf_prog/bpf_headers/bpf_core_read.h type bpf_field_info_kind (line 13) | enum bpf_field_info_kind { type bpf_type_id_kind (line 23) | enum bpf_type_id_kind { type bpf_type_info_kind (line 29) | enum bpf_type_info_kind { type bpf_enum_value_kind (line 36) | enum bpf_enum_value_kind { FILE: ebpf_prog/bpf_headers/bpf_helper_defs.h type bpf_fib_lookup (line 4) | struct bpf_fib_lookup type bpf_sk_lookup (line 5) | struct bpf_sk_lookup type bpf_perf_event_data (line 6) | struct bpf_perf_event_data type bpf_perf_event_value (line 7) | struct bpf_perf_event_value type bpf_pidns_info (line 8) | struct bpf_pidns_info type bpf_redir_neigh (line 9) | struct bpf_redir_neigh type bpf_sock (line 10) | struct bpf_sock type bpf_sock_addr (line 11) | struct bpf_sock_addr type bpf_sock_ops (line 12) | struct bpf_sock_ops type bpf_sock_tuple (line 13) | struct bpf_sock_tuple type bpf_spin_lock (line 14) | struct bpf_spin_lock type bpf_sysctl (line 15) | struct bpf_sysctl type bpf_tcp_sock (line 16) | struct bpf_tcp_sock type bpf_tunnel_key (line 17) | struct bpf_tunnel_key type bpf_xfrm_state (line 18) | struct bpf_xfrm_state type linux_binprm (line 19) | struct linux_binprm type pt_regs (line 20) | struct pt_regs type sk_reuseport_md (line 21) | struct sk_reuseport_md type sockaddr (line 22) | struct sockaddr type tcphdr (line 23) | struct tcphdr type seq_file (line 24) | struct seq_file type tcp6_sock (line 25) | struct tcp6_sock type tcp_sock (line 26) | struct tcp_sock type tcp_timewait_sock (line 27) | struct tcp_timewait_sock type tcp_request_sock (line 28) | struct tcp_request_sock type udp6_sock (line 29) | struct udp6_sock type unix_sock (line 30) | struct unix_sock type task_struct (line 31) | struct task_struct type __sk_buff (line 32) | struct __sk_buff type sk_msg_md (line 33) | struct sk_msg_md type xdp_md (line 34) | struct xdp_md type path (line 35) | struct path type btf_ptr (line 36) | struct btf_ptr type inode (line 37) | struct inode type socket (line 38) | struct socket type file (line 39) | struct file type bpf_timer (line 40) | struct bpf_timer type mptcp_sock (line 41) | struct mptcp_sock type bpf_dynptr (line 42) | struct bpf_dynptr type iphdr (line 43) | struct iphdr type ipv6hdr (line 44) | struct ipv6hdr type __sk_buff (line 226) | struct __sk_buff type __sk_buff (line 255) | struct __sk_buff type __sk_buff (line 291) | struct __sk_buff type __sk_buff (line 354) | struct __sk_buff type __sk_buff (line 423) | struct __sk_buff type __sk_buff (line 443) | struct __sk_buff type __sk_buff (line 459) | struct __sk_buff type __sk_buff (line 514) | struct __sk_buff type bpf_tunnel_key (line 514) | struct bpf_tunnel_key type __sk_buff (line 555) | struct __sk_buff type bpf_tunnel_key (line 555) | struct bpf_tunnel_key type __sk_buff (line 643) | struct __sk_buff type __sk_buff (line 812) | struct __sk_buff type __sk_buff (line 826) | struct __sk_buff type __sk_buff (line 857) | struct __sk_buff type __sk_buff (line 888) | struct __sk_buff type __sk_buff (line 903) | struct __sk_buff type __sk_buff (line 923) | struct __sk_buff type __sk_buff (line 1000) | struct __sk_buff type __sk_buff (line 1041) | struct __sk_buff type __sk_buff (line 1057) | struct __sk_buff type __sk_buff (line 1071) | struct __sk_buff type __sk_buff (line 1111) | struct __sk_buff type xdp_md (line 1130) | struct xdp_md type __sk_buff (line 1178) | struct __sk_buff type __sk_buff (line 1189) | struct __sk_buff type __sk_buff (line 1278) | struct __sk_buff type __sk_buff (line 1322) | struct __sk_buff type bpf_sock_ops (line 1345) | struct bpf_sock_ops type xdp_md (line 1378) | struct xdp_md type bpf_perf_event_value (line 1432) | struct bpf_perf_event_value type bpf_perf_event_data (line 1447) | struct bpf_perf_event_data type bpf_perf_event_value (line 1447) | struct bpf_perf_event_value type pt_regs (line 1505) | struct pt_regs type bpf_sock_ops (line 1553) | struct bpf_sock_ops type sk_msg_md (line 1571) | struct sk_msg_md type sk_msg_md (line 1609) | struct sk_msg_md type sk_msg_md (line 1631) | struct sk_msg_md type sk_msg_md (line 1666) | struct sk_msg_md type bpf_sock_addr (line 1688) | struct bpf_sock_addr type sockaddr (line 1688) | struct sockaddr type xdp_md (line 1706) | struct xdp_md type __sk_buff (line 1726) | struct __sk_buff type bpf_xfrm_state (line 1726) | struct bpf_xfrm_state type bpf_fib_lookup (line 1827) | struct bpf_fib_lookup type bpf_sock_ops (line 1850) | struct bpf_sock_ops type sk_msg_md (line 1868) | struct sk_msg_md type __sk_buff (line 1886) | struct __sk_buff type __sk_buff (line 1927) | struct __sk_buff type __sk_buff (line 1946) | struct __sk_buff type __sk_buff (line 1966) | struct __sk_buff type __sk_buff (line 1999) | struct __sk_buff type __sk_buff (line 2072) | struct __sk_buff type sk_reuseport_md (line 2119) | struct sk_reuseport_md type __sk_buff (line 2141) | struct __sk_buff type bpf_sock (line 2182) | struct bpf_sock type bpf_sock_tuple (line 2182) | struct bpf_sock_tuple type bpf_sock (line 2223) | struct bpf_sock type bpf_sock_tuple (line 2223) | struct bpf_sock_tuple type sk_msg_md (line 2289) | struct sk_msg_md type sk_msg_md (line 2305) | struct sk_msg_md type bpf_spin_lock (line 2375) | struct bpf_spin_lock type bpf_spin_lock (line 2386) | struct bpf_spin_lock type bpf_sock (line 2398) | struct bpf_sock type bpf_sock (line 2398) | struct bpf_sock type bpf_tcp_sock (line 2410) | struct bpf_tcp_sock type bpf_sock (line 2410) | struct bpf_sock type __sk_buff (line 2424) | struct __sk_buff type bpf_sock (line 2436) | struct bpf_sock type bpf_sock (line 2436) | struct bpf_sock type bpf_sock (line 2459) | struct bpf_sock type bpf_sock_tuple (line 2459) | struct bpf_sock_tuple type tcphdr (line 2479) | struct tcphdr type bpf_sysctl (line 2499) | struct bpf_sysctl type bpf_sysctl (line 2522) | struct bpf_sysctl type bpf_sysctl (line 2543) | struct bpf_sysctl type bpf_sysctl (line 2564) | struct bpf_sysctl type tcphdr (line 2717) | struct tcphdr type bpf_perf_event_data (line 2889) | struct bpf_perf_event_data type bpf_pidns_info (line 2905) | struct bpf_pidns_info type seq_file (line 3052) | struct seq_file type seq_file (line 3066) | struct seq_file type __sk_buff (line 3232) | struct __sk_buff type tcp6_sock (line 3242) | struct tcp6_sock type tcp_sock (line 3252) | struct tcp_sock type tcp_timewait_sock (line 3262) | struct tcp_timewait_sock type tcp_request_sock (line 3272) | struct tcp_request_sock type udp6_sock (line 3282) | struct udp6_sock type task_struct (line 3318) | struct task_struct type bpf_sock_ops (line 3385) | struct bpf_sock_ops type bpf_sock_ops (line 3422) | struct bpf_sock_ops type bpf_sock_ops (line 3448) | struct bpf_sock_ops type path (line 3508) | struct path type btf_ptr (line 3559) | struct btf_ptr type seq_file (line 3571) | struct seq_file type btf_ptr (line 3571) | struct btf_ptr type __sk_buff (line 3584) | struct __sk_buff type bpf_redir_neigh (line 3609) | struct bpf_redir_neigh type task_struct (line 3698) | struct task_struct type task_struct (line 3710) | struct task_struct type task_struct (line 3722) | struct task_struct type linux_binprm (line 3736) | struct linux_binprm type inode (line 3764) | struct inode type socket (line 3776) | struct socket type file (line 3776) | struct file type bpf_timer (line 3963) | struct bpf_timer type bpf_timer (line 3978) | struct bpf_timer type bpf_timer (line 4008) | struct bpf_timer type bpf_timer (line 4022) | struct bpf_timer type task_struct (line 4061) | struct task_struct type unix_sock (line 4110) | struct unix_sock type task_struct (line 4152) | struct task_struct type xdp_md (line 4265) | struct xdp_md type xdp_md (line 4278) | struct xdp_md type xdp_md (line 4289) | struct xdp_md type task_struct (line 4303) | struct task_struct type __sk_buff (line 4337) | struct __sk_buff type file (line 4351) | struct file type mptcp_sock (line 4388) | struct mptcp_sock type bpf_dynptr (line 4403) | struct bpf_dynptr type bpf_dynptr (line 4418) | struct bpf_dynptr type bpf_dynptr (line 4433) | struct bpf_dynptr type bpf_dynptr (line 4447) | struct bpf_dynptr type bpf_dynptr (line 4461) | struct bpf_dynptr type bpf_dynptr (line 4475) | struct bpf_dynptr type bpf_dynptr (line 4490) | struct bpf_dynptr type iphdr (line 4514) | struct iphdr type tcphdr (line 4514) | struct tcphdr type ipv6hdr (line 4540) | struct ipv6hdr type tcphdr (line 4540) | struct tcphdr type iphdr (line 4559) | struct iphdr type tcphdr (line 4559) | struct tcphdr type ipv6hdr (line 4580) | struct ipv6hdr type tcphdr (line 4580) | struct tcphdr FILE: ebpf_prog/bpf_headers/bpf_helpers.h function __always_inline (line 135) | static __always_inline void type bpf_map_defold (line 167) | struct bpf_map_defold { type libbpf_pin_type (line 175) | enum libbpf_pin_type { type libbpf_tristate (line 181) | enum libbpf_tristate { FILE: ebpf_prog/bpf_headers/bpf_tracing.h type pt_regs___s390 (line 135) | struct pt_regs___s390 { type pt_regs___arm64 (line 169) | struct pt_regs___arm64 { type pt_regs (line 285) | struct pt_regs type pt_regs (line 461) | struct pt_regs FILE: ebpf_prog/common.h type events_type (line 29) | enum events_type { type trace_ev_common (line 37) | struct trace_ev_common { type trace_sys_enter_execve (line 44) | struct trace_sys_enter_execve { type trace_sys_enter_execveat (line 53) | struct trace_sys_enter_execveat { type trace_sys_exit_execve (line 63) | struct trace_sys_exit_execve { type data_t (line 70) | struct data_t { type data_t (line 91) | struct data_t FILE: ebpf_prog/common_defs.h type u64 (line 27) | typedef u64 pid_size_t; type u64 (line 28) | typedef u64 uid_size_t; type bpf_pin_type (line 30) | enum bpf_pin_type { FILE: ebpf_prog/opensnitch-dns.c type nameLookupEvent (line 40) | struct nameLookupEvent { type hostent (line 46) | struct hostent { type addrinfo (line 57) | struct addrinfo { type addrinfo_args_cache (line 68) | struct addrinfo_args_cache { type addrinfo_args_cache (line 76) | struct addrinfo_args_cache function uretprobe__gethostbyname (line 95) | int uretprobe__gethostbyname(struct pt_regs *ctx) { function uprobe__getaddrinfo (line 152) | int uprobe__getaddrinfo(struct pt_regs *ctx) { function uretprobe__getaddrinfo (line 174) | int uretprobe__getaddrinfo(struct pt_regs *ctx) { FILE: ebpf_prog/opensnitch-procs.c type data_t (line 19) | struct data_t function __always_inline (line 23) | static __always_inline void new_event(struct data_t* data) function __always_inline (line 44) | static __always_inline void __handle_exit_execve(struct trace_sys_exit_e... function tracepoint__sched_sched_process_exit (line 67) | int tracepoint__sched_sched_process_exit(struct pt_regs *ctx) function tracepoint__syscalls_sys_exit_execve (line 90) | int tracepoint__syscalls_sys_exit_execve(struct trace_sys_exit_execve *ctx) function tracepoint__syscalls_sys_exit_execveat (line 97) | int tracepoint__syscalls_sys_exit_execveat(struct trace_sys_exit_execve ... function tracepoint__syscalls_sys_enter_execve (line 104) | int tracepoint__syscalls_sys_enter_execve(struct trace_sys_enter_execve*... function tracepoint__syscalls_sys_enter_execveat (line 166) | int tracepoint__syscalls_sys_enter_execveat(struct trace_sys_enter_execv... FILE: ebpf_prog/opensnitch.c type tcp_key_t (line 9) | struct tcp_key_t { type tcp_value_t (line 16) | struct tcp_value_t { type ipV6 (line 23) | struct ipV6 { type tcpv6_key_t (line 28) | struct tcpv6_key_t { type tcpv6_value_t (line 35) | struct tcpv6_value_t{ type udp_key_t (line 41) | struct udp_key_t { type udp_value_t (line 48) | struct udp_value_t{ type udpv6_key_t (line 54) | struct udpv6_key_t { type udpv6_value_t (line 61) | struct udpv6_value_t{ type sock_on_x86_32_t (line 70) | struct sock_on_x86_32_t { type tcp_key_t (line 80) | struct tcp_key_t type tcp_value_t (line 81) | struct tcp_value_t type tcpv6_key_t (line 87) | struct tcpv6_key_t type tcpv6_value_t (line 88) | struct tcpv6_value_t type udp_key_t (line 94) | struct udp_key_t type udp_value_t (line 95) | struct udp_value_t type udpv6_key_t (line 101) | struct udpv6_key_t type udpv6_value_t (line 102) | struct udpv6_value_t function kprobe__tcp_v4_connect (line 135) | int kprobe__tcp_v4_connect(struct pt_regs *ctx) function kretprobe__tcp_v4_connect (line 152) | int kretprobe__tcp_v4_connect(struct pt_regs *ctx) function kprobe__tcp_v6_connect (line 181) | int kprobe__tcp_v6_connect(struct pt_regs *ctx) function kretprobe__tcp_v6_connect (line 196) | int kretprobe__tcp_v6_connect(struct pt_regs *ctx) function kprobe__udp_sendmsg (line 233) | int kprobe__udp_sendmsg(struct pt_regs *ctx) function kprobe__udpv6_sendmsg (line 287) | int kprobe__udpv6_sendmsg(struct pt_regs *ctx) function kprobe__udp_tunnel6_xmit_skb (line 346) | int kprobe__udp_tunnel6_xmit_skb(struct pt_regs *ctx) function kprobe__inet_dgram_connect (line 421) | int kprobe__inet_dgram_connect(struct pt_regs *ctx) function kretprobe__inet_dgram_connect (line 435) | int kretprobe__inet_dgram_connect(int retval) function kprobe__iptunnel_xmit (line 547) | int kprobe__iptunnel_xmit(struct pt_regs *ctx) FILE: ui/opensnitch/actions/__init__.py class Actions (line 20) | class Actions(QObject): method instance (line 113) | def instance(): method __init__ (line 118) | def __init__(self, parent=None): method _load_default_configs (line 130) | def _load_default_configs(self): method load (line 137) | def load(self, action_file): method loadAll (line 150) | def loadAll(self): method compile (line 167) | def compile(self, json_obj): method getAll (line 210) | def getAll(self): method deleteAll (line 213) | def deleteAll(self): method get (line 216) | def get(self, name): method getByType (line 223) | def getByType(self, acttype): method delete (line 241) | def delete(self, name): method isValid (line 249) | def isValid(self): FILE: ui/opensnitch/actions/utils.py function getColorNames (line 3) | def getColorNames(): FILE: ui/opensnitch/auth/__init__.py function load_file (line 15) | def load_file(file_path): function get_tls_credentials (line 25) | def get_tls_credentials(ca_cert, server_cert, server_key): FILE: ui/opensnitch/config.py class Config (line 4) | class Config: method init (line 181) | def init(): method get (line 186) | def get(): method __init__ (line 191) | def __init__(self): method reload (line 212) | def reload(self): method hasKey (line 215) | def hasKey(self, key): method setSettings (line 218) | def setSettings(self, path, value): method getSettings (line 222) | def getSettings(self, path, default=None): method getBool (line 225) | def getBool(self, path, default_value=False): method getInt (line 228) | def getInt(self, path, default_value=0): method getDefaultAction (line 234) | def getDefaultAction(self): method setRulesDurationFilter (line 242) | def setRulesDurationFilter(self, ignore_temporary_rules=False, temp_ru... method getMaxMsgLength (line 267) | def getMaxMsgLength(self): FILE: ui/opensnitch/customwidgets/addresstablemodel.py class AddressTableModel (line 8) | class AddressTableModel(GenericTableModel): method __init__ (line 10) | def __init__(self, tableName, headerLabels): method reconfigureColumns (line 15) | def reconfigureColumns(self): method lastQuery (line 25) | def lastQuery(self): method update_col_count (line 28) | def update_col_count(self): method fillVisibleRows (line 37) | def fillVisibleRows(self, q, upperBound, force=False): FILE: ui/opensnitch/customwidgets/colorizeddelegate.py class ColorizedDelegate (line 6) | class ColorizedDelegate(QItemDelegate): method __init__ (line 12) | def __init__(self, parent=None, *args, actions={}): method setConfig (line 18) | def setConfig(self, actions): method paint (line 22) | def paint(self, painter, option, index): FILE: ui/opensnitch/customwidgets/completer.py class Completer (line 20) | class Completer(QCompleter): method __init__ (line 21) | def __init__(self, parent=None): method pathFromIndex (line 24) | def pathFromIndex(self, modelIdx): method splitPath (line 48) | def splitPath(self, path): FILE: ui/opensnitch/customwidgets/firewalltableview.py class FirewallTableModel (line 13) | class FirewallTableModel(QStandardItemModel): method __init__ (line 67) | def __init__(self, tableName): method headers (line 79) | def headers(self): method filterByNode (line 82) | def filterByNode(self, addr): method filterAll (line 86) | def filterAll(self): method filterByTable (line 90) | def filterByTable(self, addr, name, family): method filterByChain (line 94) | def filterByChain(self, addr, table, family, chain, hook): method filterByQuery (line 98) | def filterByQuery(self, query): method reorderRows (line 102) | def reorderRows(self, action, row): method sort (line 131) | def sort(self, column, order=QtCore.Qt.SortOrder.AscendingOrder): method refresh (line 136) | def refresh(self, force=False): method query (line 141) | def query(self): method lastError (line 145) | def lastError(self): method clear (line 149) | def clear(self): method setModelColumns (line 156) | def setModelColumns(self, headers): method query (line 164) | def query(self): method setQuery (line 167) | def setQuery(self, q, db, args=None, limit=0, offset=0): method nextRecord (line 170) | def nextRecord(self, offset): method prevRecord (line 173) | def prevRecord(self, offset): method fillVisibleRows (line 176) | def fillVisibleRows(self, upperBound, force, *data): method addRows (line 221) | def addRows(self, rules): method dumpRows (line 232) | def dumpRows(self, nolimits=None): class FirewallTableView (line 235) | class FirewallTableView(QTableView): method __init__ (line 241) | def __init__(self, parent): method _cb_fw_rules_updated (line 256) | def _cb_fw_rules_updated(self): method _cb_column_count_changed (line 259) | def _cb_column_count_changed(self, num): method _cb_fw_rule_position_changed (line 263) | def _cb_fw_rule_position_changed(self, action, row): method _cb_rows_reordered (line 266) | def _cb_rows_reordered(self, view, node_addr, uuid, old_pos, new_pos): method _cb_rows_updated (line 271) | def _cb_rows_updated(self, view, data): method filterAll (line 292) | def filterAll(self): method filterByNode (line 295) | def filterByNode(self, addr): method filterByTable (line 298) | def filterByTable(self, addr, name, family): method filterByChain (line 301) | def filterByChain(self, addr, table, family, chain, hook): method filterByQuery (line 304) | def filterByQuery(self, query): method refresh (line 307) | def refresh(self): method clearSelection (line 310) | def clearSelection(self): method selectedRows (line 313) | def selectedRows(self): method setModel (line 329) | def setModel(self, model): method setTrackingColumn (line 336) | def setTrackingColumn(self, col): FILE: ui/opensnitch/customwidgets/generictableview.py class GenericTableModel (line 16) | class GenericTableModel(QStandardItemModel): method __init__ (line 41) | def __init__(self, tableName, headerLabels): method headers (line 48) | def headers(self): method getLimitQuery (line 51) | def getLimitQuery(self, offset, forward=True): method query (line 75) | def query(self): method lastQuery (line 79) | def lastQuery(self): method lastError (line 83) | def lastError(self): method clear (line 87) | def clear(self): method refresh (line 90) | def refresh(self): method rowCount (line 95) | def rowCount(self, index=None): method total (line 99) | def total(self): method data (line 108) | def data(self, index, role=Qt.ItemDataRole.DisplayRole): method update_row_count (line 117) | def update_row_count(self): method update_col_count (line 122) | def update_col_count(self): method setModelColumns (line 129) | def setModelColumns(self, newColumns): method setQuery (line 145) | def setQuery(self, q, db, binds=None, limit=None, offset=None): method nextRecord (line 178) | def nextRecord(self, offset): method prevRecord (line 187) | def prevRecord(self, offset): method refreshViewport (line 196) | def refreshViewport(self, scrollValue, maxRowsInViewport, force=False): method fillVisibleRows (line 228) | def fillVisibleRows(self, q, upperBound, force=False): method dumpRows (line 260) | def dumpRows(self, nolimits=False, first_row=QSql.Location.BeforeFirst... method copySelectedRows (line 282) | def copySelectedRows(self, start=QSql.Location.BeforeFirstRow.value, e... class GenericTableView (line 298) | class GenericTableView(QTableView): method __init__ (line 301) | def __init__(self, parent): method setVerticalScrollBar (line 332) | def setVerticalScrollBar(self, vScrollBar): method setModel (line 337) | def setModel(self, model): method setTrackingColumn (line 345) | def setTrackingColumn(self, col): method selectAll (line 349) | def selectAll(self): method getRowCells (line 354) | def getRowCells(self, row): method selectDbRows (line 361) | def selectDbRows(self, first, last): method getMinViewportRow (line 377) | def getMinViewportRow(self): method getMaxViewportRow (line 381) | def getMaxViewportRow(self): method getViewportRowPos (line 385) | def getViewportRowPos(self, row): method clear (line 389) | def clear(self): method refresh (line 392) | def refresh(self): method forceViewRefresh (line 399) | def forceViewRefresh(self): method calculateRowsInViewport (line 402) | def calculateRowsInViewport(self): method scrollViewport (line 407) | def scrollViewport(self, row): method mouseReleaseEvent (line 420) | def mouseReleaseEvent(self, event): method mouseMoveEvent (line 462) | def mouseMoveEvent(self, event): method mousePressEvent (line 477) | def mousePressEvent(self, event): method handleShiftPressed (line 560) | def handleShiftPressed(self): method handleMouseMoveEvent (line 565) | def handleMouseMoveEvent(self, row, clickedItem, selected): method onBeginViewportRefresh (line 578) | def onBeginViewportRefresh(self): method onEndViewportRefresh (line 584) | def onEndViewportRefresh(self): method resizeEvent (line 594) | def resizeEvent(self, event): method onRowCountChanged (line 602) | def onRowCountChanged(self): method clearSelection (line 623) | def clearSelection(self): method selectedRows (line 634) | def selectedRows(self, limit=""): method getCurrentIndex (line 654) | def getCurrentIndex(self): method selectItem (line 657) | def selectItem(self, _data, _column): method selectIndices (line 667) | def selectIndices(self): method _selectLastRow (line 682) | def _selectLastRow(self): method _selectRow (line 689) | def _selectRow(self, pos): method onScrollbarValueChanged (line 696) | def onScrollbarValueChanged(self, vSBNewValue): method onKeyUp (line 717) | def onKeyUp(self): method onKeyDown (line 735) | def onKeyDown(self): method onKeyHome (line 754) | def onKeyHome(self): method onKeyEnd (line 766) | def onKeyEnd(self): method onKeyPageUp (line 775) | def onKeyPageUp(self): method onKeyPageDown (line 779) | def onKeyPageDown(self): method onKeySpace (line 786) | def onKeySpace(self): method eventFilter (line 793) | def eventFilter(self, obj, event): FILE: ui/opensnitch/customwidgets/itemwidgetcentered.py class IconTextItem (line 25) | class IconTextItem(QWidget): method __init__ (line 27) | def __init__(self, icon: QIcon, text: str, parent=None, size=24): FILE: ui/opensnitch/customwidgets/main.py class ColorizedQSqlQueryModel (line 10) | class ColorizedQSqlQueryModel(QSqlQueryModel): method __init__ (line 24) | def __init__(self, modelData={}): method data (line 28) | def data(self, index, role=QtCore.Qt.DisplayRole): class ConnectionsTableModel (line 45) | class ConnectionsTableModel(QStandardItemModel): method __init__ (line 82) | def __init__(self): method query (line 97) | def query(self): method lastQuery (line 101) | def lastQuery(self): method lastError (line 105) | def lastError(self): method clear (line 109) | def clear(self): method setQuery (line 112) | def setQuery(self, q, db): method buildMap (line 177) | def buildMap(self): method updateDistinctIfNeeded (line 214) | def updateDistinctIfNeeded(self, force=False): method refreshViewport (line 234) | def refreshViewport(self, value, maxRowsInViewport): method getMatch (line 308) | def getMatch (self, filterStr): method getFilterStr (line 339) | def getFilterStr(self): method getActionStr (line 346) | def getActionStr(self): method dumpRows (line 353) | def dumpRows(self): class ConnectionsTableView (line 368) | class ConnectionsTableView(QTableView): method __init__ (line 375) | def __init__(self, parent): method setVerticalScrollBar (line 385) | def setVerticalScrollBar(self, vScrollBar): method setModel (line 390) | def setModel(self, model): method onRowsInsertedOrRemoved (line 401) | def onRowsInsertedOrRemoved(self, parent, start, end): method resizeEvent (line 407) | def resizeEvent(self, event): method calculateRowsInViewport (line 414) | def calculateRowsInViewport(self): method onValueChanged (line 419) | def onValueChanged(self, vSBNewValue): method onRowCountChanged (line 429) | def onRowCountChanged(self): method onKeyUp (line 454) | def onKeyUp(self): method onKeyDown (line 458) | def onKeyDown(self): method onKeyHome (line 462) | def onKeyHome(self): method onKeyEnd (line 466) | def onKeyEnd(self): method onKeyPageUp (line 470) | def onKeyPageUp(self): method onKeyPageDown (line 476) | def onKeyPageDown(self): method eventFilter (line 482) | def eventFilter(self, obj, event): FILE: ui/opensnitch/customwidgets/netstattablemodel.py class NetstatTableModel (line 6) | class NetstatTableModel(GenericTableModel): method __init__ (line 8) | def __init__(self, tableName, headerLabels): method data (line 15) | def data(self, index, role=Qt.ItemDataRole.DisplayRole): FILE: ui/opensnitch/customwidgets/updownbtndelegate.py class UpDownButtonDelegate (line 6) | class UpDownButtonDelegate(QItemDelegate): method paint (line 12) | def paint(self, painter, option, index): method createEditor (line 19) | def createEditor(self, parent, option, index): method _cb_button_clicked (line 41) | def _cb_button_clicked(self, action, idx): method updateEditorGeometry (line 44) | def updateEditorGeometry(self, editor, option, index): FILE: ui/opensnitch/database/__init__.py class Database (line 9) | class Database: method instance (line 31) | def instance(): method __init__ (line 36) | def __init__(self, dbname="db"): method initialize (line 44) | def initialize(self, dbtype=DB_TYPE_MEMORY, dbfile=DB_IN_MEMORY, dbjrn... method close (line 80) | def close(self): method is_db_ok (line 88) | def is_db_ok(self): method get_db (line 101) | def get_db(self): method get_db_file (line 104) | def get_db_file(self): method get_new_qsql_model (line 107) | def get_new_qsql_model(self): method get_db_name (line 110) | def get_db_name(self): method _create_tables (line 113) | def _create_tables(self): method get_schema_version (line 264) | def get_schema_version(self): method set_schema_version (line 273) | def set_schema_version(self, version): method get_journal_mode (line 279) | def get_journal_mode(self): method set_journal_mode (line 287) | def set_journal_mode(self, mode): method _upgrade_db_schema (line 314) | def _upgrade_db_schema(self): method _apply_db_upgrade (line 330) | def _apply_db_upgrade(self, file): method optimize (line 344) | def optimize(self): method clean (line 350) | def clean(self, table): method vacuum (line 355) | def vacuum(self): method clone_db (line 359) | def clone_db(self, name): method clone (line 362) | def clone(self): method transaction (line 366) | def transaction(self): method commit (line 369) | def commit(self): method rollback (line 372) | def rollback(self): method get_total_records (line 375) | def get_total_records(self): method get_newest_record (line 383) | def get_newest_record(self): method get_oldest_record (line 392) | def get_oldest_record(self): method purge_oldest (line 401) | def purge_oldest(self, max_days_to_keep): method select (line 425) | def select(self, qstr): method remove (line 433) | def remove(self, qstr, args=None): method _insert (line 451) | def _insert(self, query_str, columns): method insert (line 472) | def insert(self, table, fields, columns, update_field=None, update_val... method update (line 496) | def update(self, table, fields, values, condition=None, action_on_conf... method _insert_batch (line 515) | def _insert_batch(self, query_str, fields, values): method insert_batch (line 537) | def insert_batch(self, table, db_fields, db_columns, fields, values, u... method update_batch (line 550) | def update_batch(self, table, db_fields, db_columns, fields, values, u... method dump (line 561) | def dump(self): method get_query (line 565) | def get_query(self, table, fields): method empty_rule (line 568) | def empty_rule(self, name=""): method delete_rule (line 581) | def delete_rule(self, name, node_addr): method delete_rules_by_field (line 599) | def delete_rules_by_field(self, field, values): method get_connection_by_field (line 623) | def get_connection_by_field(self, field, date): method get_rule (line 635) | def get_rule(self, rule_name, node_addr=None): method get_rule_by_field (line 652) | def get_rule_by_field(self, node_addr=None, field=None, value=None): method get_rules (line 671) | def get_rules(self, node_addr): method insert_rule (line 684) | def insert_rule(self, rule, node_addr): method rule_exists (line 694) | def rule_exists(self, rule, node_addr): method delete_alert (line 719) | def delete_alert(self, time, node_addr=None): method get_alert (line 737) | def get_alert(self, alert_time, node_addr=None): FILE: ui/opensnitch/database/enums.py class ConnFields (line 2) | class ConnFields(): class RuleFields (line 19) | class RuleFields(): class AlertFields (line 36) | class AlertFields(): FILE: ui/opensnitch/desktop_parser.py class LinuxDesktopParser (line 21) | class LinuxDesktopParser(threading.Thread): method __init__ (line 22) | def __init__(self): method get_locale (line 53) | def get_locale(self): method _parse_exec (line 61) | def _parse_exec(self, cmd): method get_app_description (line 89) | def get_app_description(self, parser): method discover_app_icon (line 103) | def discover_app_icon(app_name): method _parse_desktop_file (line 114) | def _parse_desktop_file(self, desktop_path): method get_info_by_path (line 154) | def get_info_by_path(self, path, default_icon): method get_info_by_binname (line 177) | def get_info_by_binname(self, name, default_icon): method run (line 181) | def run(self): FILE: ui/opensnitch/dialogs/conndetails.py class ConnDetails (line 9) | class ConnDetails(InfoWindow): method __init__ (line 13) | def __init__(self, parent): method showByField (line 19) | def showByField(self, field, value): FILE: ui/opensnitch/dialogs/events/base.py class EventsBase (line 12) | class EventsBase(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]): method __init__ (line 13) | def __init__(self, parent=None): method add_tab (line 17) | def add_tab(self, widget, icon, label): method set_current_tab (line 21) | def set_current_tab(self, idx, block_events=False): method add_toolbar_buton (line 28) | def add_toolbar_buton(self): method add_tree_items (line 32) | def add_tree_items(self, level, labels, clean=True): method get_tree_item (line 47) | def get_tree_item(self, idx): method find_tree_items (line 53) | def find_tree_items(self, idx, data): method get_tree_selected_items (line 65) | def get_tree_selected_items(self, tree_idx): method set_tree_selected_items (line 84) | def set_tree_selected_items(self, selected, expanded): method get_current_view_idx (line 95) | def get_current_view_idx(self): method get_central_widget (line 98) | def get_central_widget(self): method get_data_view (line 101) | def get_data_view(self, idx): method get_search_widget (line 104) | def get_search_widget(self): method get_search_text (line 107) | def get_search_text(self): method set_search_text (line 110) | def set_search_text(self, text): FILE: ui/opensnitch/dialogs/events/config.py class ConfigManager (line 7) | class ConfigManager: method __init__ (line 8) | def __init__(self, parent): method default_views_config (line 531) | def default_views_config(self): FILE: ui/opensnitch/dialogs/events/dialog.py class StatsDialog (line 44) | class StatsDialog(menus.MenusManager, menu_actions.MenuActions, views.Vi... method __init__ (line 57) | def __init__(self, parent=None, address=None, db=None, dbname="db", ap... method changeEvent (line 368) | def changeEvent(self, event): method show (line 377) | def show(self): method eventFilter (line 394) | def eventFilter(self, source, event): method _configure_plugins (line 411) | def _configure_plugins(self): method _configure_buttons_icons (line 420) | def _configure_buttons_icons(self): method _load_settings (line 461) | def _load_settings(self): method _save_settings (line 532) | def _save_settings(self): method _cb_fw_rules_updated (line 559) | def _cb_fw_rules_updated(self): method _cb_app_rules_updated (line 562) | def _cb_app_rules_updated(self, what): method _cb_nodes_updated (line 565) | def _cb_nodes_updated(self, count): method _cb_fw_table_rows_reordered (line 570) | def _cb_fw_table_rows_reordered(self, node_addr): method _cb_tree_edit_firewall_clicked (line 575) | def _cb_tree_edit_firewall_clicked(self): method _cb_proc_details_clicked (line 578) | def _cb_proc_details_clicked(self): method _cb_notification_callback (line 591) | def _cb_notification_callback(self, node_addr, reply): method _cb_tab_changed (line 627) | def _cb_tab_changed(self, index): method _cb_table_context_menu (line 659) | def _cb_table_context_menu(self, pos): method _cb_table_header_clicked (line 684) | def _cb_table_header_clicked(self, pos, sortIdx): method _cb_events_filter_line_changed (line 688) | def _cb_events_filter_line_changed(self, text): method _cb_limit_combo_changed (line 691) | def _cb_limit_combo_changed(self, idx): method _cb_combo_action_changed (line 708) | def _cb_combo_action_changed(self, idx): method _cb_clean_sql_clicked (line 715) | def _cb_clean_sql_clicked(self, idx): method _cb_cmd_back_clicked (line 725) | def _cb_cmd_back_clicked(self, idx): method _cb_main_table_double_clicked (line 728) | def _cb_main_table_double_clicked(self, row): method _cb_table_clicked (line 813) | def _cb_table_clicked(self, idx): method _cb_table_double_clicked (line 816) | def _cb_table_double_clicked(self, row): method _cb_prefs_clicked (line 912) | def _cb_prefs_clicked(self): method _cb_rules_filter_combo_changed (line 915) | def _cb_rules_filter_combo_changed(self, idx): method _cb_rules_tree_item_expanded (line 927) | def _cb_rules_tree_item_expanded(self, item): method _cb_rules_tree_item_double_clicked (line 931) | def _cb_rules_tree_item_double_clicked(self, item, col): method _cb_rules_tree_item_clicked (line 935) | def _cb_rules_tree_item_clicked(self, item, col): method _cb_splitter_moved (line 993) | def _cb_splitter_moved(self, tab, pos, index): method _cb_start_clicked (line 996) | def _cb_start_clicked(self): method _cb_node_start_clicked (line 1016) | def _cb_node_start_clicked(self): method _cb_node_prefs_clicked (line 1029) | def _cb_node_prefs_clicked(self): method _cb_node_delete_clicked (line 1035) | def _cb_node_delete_clicked(self): method _cb_new_rule_clicked (line 1038) | def _cb_new_rule_clicked(self): method _cb_edit_rule_clicked (line 1041) | def _cb_edit_rule_clicked(self): method _cb_del_rule_clicked (line 1049) | def _cb_del_rule_clicked(self): method _cb_enable_rule_toggled (line 1062) | def _cb_enable_rule_toggled(self, state): method _cb_prev_button_clicked (line 1065) | def _cb_prev_button_clicked(self): method _cb_next_button_clicked (line 1069) | def _cb_next_button_clicked(self): method _cb_help_button_clicked (line 1073) | def _cb_help_button_clicked(self): method open_firewall (line 1091) | def open_firewall(self): method new_fw_rule (line 1097) | def new_fw_rule(self): method load_fw_rule (line 1102) | def load_fw_rule(self, node, uuid): method open_settings (line 1107) | def open_settings(self, addr=None): method enable_rule (line 1117) | def enable_rule(self, state): method del_by_field (line 1133) | def del_by_field(self, cur_idx, table, value): method del_rule (line 1157) | def del_rule(self, rule_name, node_addr): method display_alert_info (line 1166) | def display_alert_info(self, time, node): method _update_status_label (line 1192) | def _update_status_label(self, running=False, text=FIREWALL_DISABLED): method _add_rulesTree_nodes (line 1204) | def _add_rulesTree_nodes(self): method _add_rulesTree_fw_chains (line 1215) | def _add_rulesTree_fw_chains(self): method get_rule (line 1276) | def get_rule(self, rule_name, node_name): method _on_settings_saved (line 1291) | def _on_settings_saved(self): method _on_menu_exit_clicked (line 1296) | def _on_menu_exit_clicked(self, triggered): method update (line 1300) | def update(self, is_local=True, stats=None, need_query_update=True): method _on_update_triggered (line 1310) | def _on_update_triggered(self, is_local, need_query_update=False): method closeEvent (line 1334) | def closeEvent(self, e): method hideEvent (line 1349) | def hideEvent(self, e): method keyPressEvent (line 1353) | def keyPressEvent(self, event): FILE: ui/opensnitch/dialogs/events/menu_actions.py class MenuActions (line 20) | class MenuActions(views.ViewsManager): method __init__ (line 21) | def __init__(self, parent): method table_menu_new_rule_from_row (line 24) | def table_menu_new_rule_from_row(self, cur_idx, model, selection): method table_menu_export_clipboard (line 36) | def table_menu_export_clipboard(self, cur_idx, model, selection): method table_menu_export_disk (line 74) | def table_menu_export_disk(self, cur_idx, model, selection): method table_menu_duplicate (line 110) | def table_menu_duplicate(self, cur_idx, model, selection): method table_menu_apply_to_node (line 138) | def table_menu_apply_to_node(self, cur_idx, model, selection, node_addr): method table_menu_apply_to_all_nodes (line 177) | def table_menu_apply_to_all_nodes(self, cur_idx, model, selection, nod... method table_menu_change_rule_field (line 229) | def table_menu_change_rule_field(self, cur_idx, model, selection, fiel... method table_menu_enable (line 269) | def table_menu_enable(self, cur_idx, model, selection, is_rule_enabled): method table_menu_delete (line 307) | def table_menu_delete(self, cur_idx, model, selection): method table_menu_edit (line 362) | def table_menu_edit(self, cur_idx, model, selection): FILE: ui/opensnitch/dialogs/events/menus.py class MenusManager (line 16) | class MenusManager(views.ViewsManager): method __init__ (line 17) | def __init__(self, parent): method configure_main_btn_menu (line 20) | def configure_main_btn_menu(self): method configure_header_contextual_menu (line 54) | def configure_header_contextual_menu(self, pos): method configure_events_contextual_menu (line 101) | def configure_events_contextual_menu(self, pos): method configure_fwrules_contextual_menu (line 140) | def configure_fwrules_contextual_menu(self, pos): method configure_rules_contextual_menu (line 247) | def configure_rules_contextual_menu(self, pos): method configure_alerts_contextual_menu (line 370) | def configure_alerts_contextual_menu(self, pos): FILE: ui/opensnitch/dialogs/events/nodes.py class NodesManager (line 4) | class NodesManager: method __init__ (line 5) | def __init__(self, parent): method node_start_interception (line 10) | def node_start_interception(self, addr=None, callback=None): method node_stop_interception (line 13) | def node_stop_interception(self, addr=None, callback=None): method node_get (line 16) | def node_get(self, addr): method node_delete (line 19) | def node_delete(self, addr): method node_del_rule (line 22) | def node_del_rule(self, addr, name, callback): method node_hostname (line 25) | def node_hostname(self, addr): method nodes_count (line 28) | def nodes_count(self): method node_list (line 31) | def node_list(self): method node_add_rules (line 34) | def node_add_rules(self, addr, rules): method node_rule_to_json (line 37) | def node_rule_to_json(self, addr, name): method node_export_rule (line 40) | def node_export_rule(self, addr, name, outdir): method node_export_rules (line 43) | def node_export_rules(self, addr, outdir): method node_import_all_rules (line 46) | def node_import_all_rules(self, rulesdir, callback): method node_reload_fw (line 50) | def node_reload_fw(self, addr, fw_config, callback): method send_notification (line 53) | def send_notification(self, addr, ntf, callback): method send_notifications (line 56) | def send_notifications(self, ntf, callback): method save_ntf (line 64) | def save_ntf(self, nid, ntf): method del_notification (line 67) | def del_notification(self, nid): method ntf_reply_exists (line 70) | def ntf_reply_exists(self, nid): method get_notification (line 73) | def get_notification(self, nid): FILE: ui/opensnitch/dialogs/events/queries.py class Queries (line 32) | class Queries: method __init__ (line 33) | def __init__(self, win): method get_completer (line 108) | def get_completer(self, idx): method get_query (line 125) | def get_query(self, table, fields): method get_view_query (line 128) | def get_view_query(self, model, idx, where_clause=None): method advanced_search (line 145) | def advanced_search(self, text): method get_filter_line (line 202) | def get_filter_line(self, idx, text, adv_search=None): method get_indetail_filter (line 245) | def get_indetail_filter(self, indetail_view, lastQuery, text, advanced... method get_nodes_filter (line 300) | def get_nodes_filter(self, indetail_view, lastQuery, text, advanced_fi... method get_events_generic_filter (line 356) | def get_events_generic_filter(self, action, filter_text): method set_rules_filter (line 373) | def set_rules_filter(self, parent_row=constants.NO_PARENT, item_row=0,... method set_fw_rules_filter (line 438) | def set_fw_rules_filter(self, parent_row=constants.NO_PARENT, item_row... method set_events_query (line 477) | def set_events_query(self, advanced_filter=None): method set_nodes_query (line 511) | def set_nodes_query(self, data): method set_rules_query (line 520) | def set_rules_query(self, rule_name="", node=""): method set_hosts_query (line 542) | def set_hosts_query(self, data): method set_process_query (line 551) | def set_process_query(self, data): method set_addrs_query (line 561) | def set_addrs_query(self, data): method set_ports_query (line 571) | def set_ports_query(self, data): method set_users_query (line 582) | def set_users_query(self, data): method setQuery (line 596) | def setQuery(self, model, q, binds=None, limit=0, offset=None): FILE: ui/opensnitch/dialogs/events/tasks/netstat.py class Netstat (line 17) | class Netstat: method __init__ (line 18) | def __init__(self, win, cfg, db): method cb_combo_netstat_changed (line 31) | def cb_combo_netstat_changed(self, combo, idx): method configure (line 47) | def configure(self): method configure_combos (line 82) | def configure_combos(self): method update_node_list (line 100) | def update_node_list(self, count, node_list): method monitor_node (line 128) | def monitor_node(self): method unmonitor_node (line 174) | def unmonitor_node(self, node_addr): method update_node (line 197) | def update_node(self, node_addr, data): FILE: ui/opensnitch/dialogs/events/tasks/nodemon.py class Nodemon (line 15) | class Nodemon: method __init__ (line 16) | def __init__(self, win): method reset_node_info (line 19) | def reset_node_info(self, status=""): method monitor_selected_node (line 30) | def monitor_selected_node(self, node_addr, col_uptime, col_hostname, c... method unmonitor_deselected_node (line 62) | def unmonitor_deselected_node(self, last_addr): method update_node_info (line 84) | def update_node_info(self, data): FILE: ui/opensnitch/dialogs/events/views.py class ViewsManager (line 26) | class ViewsManager(config.ConfigManager, nodes.NodesManager, base.Events... method __init__ (line 27) | def __init__(self, parent): method view_setup (line 67) | def view_setup( method cb_scrollbar_pressed (line 122) | def cb_scrollbar_pressed(self): method cb_scrollbar_released (line 125) | def cb_scrollbar_released(self): method reset_statusbar (line 128) | def reset_statusbar(self): method needs_refresh (line 135) | def needs_refresh(self): method in_detail_view (line 142) | def in_detail_view(self, idx): method set_in_detail_view (line 145) | def set_in_detail_view(self, idx, state): method set_last_selected_item (line 148) | def set_last_selected_item(self, what): method get_view_context_menu (line 151) | def get_view_context_menu(self, idx): method set_view_context_menu (line 154) | def set_view_context_menu(self, idx, menu): method set_scrollbar_active (line 157) | def set_scrollbar_active(self, state): method is_scrollbar_active (line 160) | def is_scrollbar_active(self): method set_context_menu_active (line 163) | def set_context_menu_active(self, state): method is_context_menu_active (line 166) | def is_context_menu_active(self): method get_view_limit (line 169) | def get_view_limit(self): method get_query_limit (line 175) | def get_query_limit(self): method get_view_order (line 181) | def get_view_order(self, field=None): method get_view_config (line 188) | def get_view_config(self, idx): method set_view_config (line 191) | def set_view_config(self, idx, config): method get_view_name (line 194) | def get_view_name(self, idx): method get_view (line 197) | def get_view(self, idx): method set_view (line 200) | def set_view(self, idx, view): method update_interception_status (line 203) | def update_interception_status(self, enabled): method clear_rows_selection (line 211) | def clear_rows_selection(self): method are_rows_selected (line 215) | def are_rows_selected(self): method set_filter_line_color (line 223) | def set_filter_line_color(self, text): method copy_selected_rows (line 230) | def copy_selected_rows(self): method show_columns (line 246) | def show_columns(self): method show_view_columns (line 254) | def show_view_columns(self, idx): method on_filter_line_changed (line 263) | def on_filter_line_changed(self, text): method on_splitter_moved (line 306) | def on_splitter_moved(self, tab, pos, index): method on_table_clicked (line 316) | def on_table_clicked(self, idx): method on_table_header_clicked (line 352) | def on_table_header_clicked(self, pos, sortOrder): method on_menu_export_csv_clicked (line 375) | def on_menu_export_csv_clicked(self, tab_idx): method on_menu_node_export_clicked (line 408) | def on_menu_node_export_clicked(self, triggered): method on_menu_node_import_clicked (line 432) | def on_menu_node_import_clicked(self, triggered): method on_menu_export_clicked (line 464) | def on_menu_export_clicked(self, triggered): method on_menu_import_clicked (line 497) | def on_menu_import_clicked(self, triggered): method on_cmd_back_clicked (line 528) | def on_cmd_back_clicked(self, idx): method set_active_widgets (line 557) | def set_active_widgets(self, prev_idx, state, label_txt=""): method set_rules_tab_active (line 597) | def set_rules_tab_active(self, row, cur_idx, name_idx, node_idx): method get_active_table (line 612) | def get_active_table(self): method refresh_active_table (line 620) | def refresh_active_table(self): method restore_scroll_value (line 631) | def restore_scroll_value(self): method restore_last_selected_row (line 638) | def restore_last_selected_row(self): method restore_details_view_columns (line 649) | def restore_details_view_columns(self, header, settings_key): method restore_rules_tab_widgets (line 665) | def restore_rules_tab_widgets(self, active): method view_delete_node (line 699) | def view_delete_node(self): method update_nodes_interception_status (line 721) | def update_nodes_interception_status(self, show=True, disable=False): method update_status (line 742) | def update_status(self): FILE: ui/opensnitch/dialogs/firewall.py class FirewallDialog (line 21) | class FirewallDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]): method __init__ (line 35) | def __init__(self, parent=None, appicon=None, node=None): method _cb_notification_callback (line 93) | def _cb_notification_callback(self, addr, reply): method _cb_nodes_updated (line 109) | def _cb_nodes_updated(self, total): method _cb_combo_nodes_changed (line 114) | def _cb_combo_nodes_changed(self, idx): method _cb_combo_profile_changed (line 122) | def _cb_combo_profile_changed(self, idx): method _cb_combo_policy_changed (line 138) | def _cb_combo_policy_changed(self, combo): method _cb_new_rule_clicked (line 194) | def _cb_new_rule_clicked(self): method _cb_allow_out_service_clicked (line 197) | def _cb_allow_out_service_clicked(self): method _cb_allow_in_service_clicked (line 200) | def _cb_allow_in_service_clicked(self): method _cb_enable_fw_changed (line 203) | def _cb_enable_fw_changed(self, enable): method _cb_close_clicked (line 213) | def _cb_close_clicked(self): method _close (line 216) | def _close(self): method _change_fw_backend (line 219) | def _change_fw_backend(self, addr, node_cfg): method showEvent (line 223) | def showEvent(self, event): method _load_nodes (line 234) | def _load_nodes(self): method send_notification (line 251) | def send_notification(self, node_addr, fw_config): method load_fw_policies (line 266) | def load_fw_policies(self, node_addr=None): method load_node_fw_policy (line 305) | def load_node_fw_policy(self, addr): method fw_is_incompatible (line 342) | def fw_is_incompatible(self, addr, node): method change_fw (line 373) | def change_fw(self, addr, node_cfg): method enable_fw (line 387) | def enable_fw(self, addr, enable): method load_rule (line 449) | def load_rule(self, addr, uuid): method new_rule (line 452) | def new_rule(self): method allow_out_service (line 455) | def allow_out_service(self): method allow_in_service (line 458) | def allow_in_service(self): method _set_status_error (line 461) | def _set_status_error(self, msg): method _set_status_successful (line 466) | def _set_status_successful(self, msg): method _set_status_message (line 471) | def _set_status_message(self, msg): method _reset_status_message (line 476) | def _reset_status_message(self): method _reset_fields (line 480) | def _reset_fields(self): method block_combo_signals (line 483) | def block_combo_signals(self, state=True): method _disable_widgets (line 489) | def _disable_widgets(self, disable=True): FILE: ui/opensnitch/dialogs/firewall_rule/dialog.py class FwRuleDialog (line 33) | class FwRuleDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]): method __init__ (line 37) | def __init__(self, parent=None, appicon=None): method show (line 92) | def show(self): method init (line 96) | def init(self): method _close (line 121) | def _close(self): method cb_notification_callback (line 127) | def cb_notification_callback(self, addr, reply): method cb_nodes_updated (line 132) | def cb_nodes_updated(self, total): method cb_combo_nodes_changed (line 135) | def cb_combo_nodes_changed(self, idx): method closeEvent (line 141) | def closeEvent(self, e): method cb_check_enable_toggled (line 144) | def cb_check_enable_toggled(self, status): method cb_description_changed (line 147) | def cb_description_changed(self, text): method cb_help_button_clicked (line 150) | def cb_help_button_clicked(self): method cb_close_clicked (line 162) | def cb_close_clicked(self): method cb_delete_clicked (line 165) | def cb_delete_clicked(self): method cb_save_clicked (line 168) | def cb_save_clicked(self): method cb_add_clicked (line 171) | def cb_add_clicked(self): method cb_reset_clicked (line 183) | def cb_reset_clicked(self): method cb_add_new_statement (line 187) | def cb_add_new_statement(self): method cb_del_statement (line 191) | def cb_del_statement(self): method del_statement (line 194) | def del_statement(self): method cb_statem_combo_changed (line 210) | def cb_statem_combo_changed(self, idx): method cb_statem_value_changed (line 220) | def cb_statem_value_changed(self, val): method cb_statem_value_index_changed (line 226) | def cb_statem_value_index_changed(self, idx): method cb_statem_op_changed (line 246) | def cb_statem_op_changed(self, idx): method cb_statem_opts_changed (line 252) | def cb_statem_opts_changed(self, idx): method cb_direction_changed (line 258) | def cb_direction_changed(self, idx): method cb_verdict_changed (line 262) | def cb_verdict_changed(self, idx): method cb_verdict_parms_changed (line 270) | def cb_verdict_parms_changed(self, idx): method reorder_toolbox_pages (line 273) | def reorder_toolbox_pages(self): method add_new_statement (line 279) | def add_new_statement(self, title="", topWidget=None): method load (line 283) | def load(self, addr, uuid): method new (line 288) | def new(self): method exclude_service (line 293) | def exclude_service(self, direction): method save (line 298) | def save(self): method delete (line 331) | def delete(self): method form_to_protobuf (line 353) | def form_to_protobuf(self): FILE: ui/opensnitch/dialogs/firewall_rule/notifications.py function send (line 11) | def send(win, node_addr, fw_config, op, uuid): function send_all (line 15) | def send_all(win, fw_config, op): function handle (line 20) | def handle(win, addr, reply): FILE: ui/opensnitch/dialogs/firewall_rule/rules.py function new (line 18) | def new(win): function exclude_service (line 39) | def exclude_service(win, direction): function add (line 70) | def add(win, nIdx): function is_valid (line 96) | def is_valid(win): function has_verdict_parms (line 124) | def has_verdict_parms(win, idx): function add_rule (line 135) | def add_rule(win, addr, node, chain): function save (line 142) | def save(win, addr, node, chain, uuid): function delete (line 150) | def delete(win, addr, node, uuid): function configure_verdict_parms (line 157) | def configure_verdict_parms(win, idx): function load (line 187) | def load(win, addr, uuid): FILE: ui/opensnitch/dialogs/firewall_rule/statements.py function add_new (line 294) | def add_new(win, title="", topWidget=None): function configure_value_opts (line 367) | def configure_value_opts(win, st_idx): function load_meta (line 435) | def load_meta(win, exp, idx): function load_limit (line 499) | def load_limit(win, exp, idx): function load_ct (line 519) | def load_ct(win, exp, idx): function set_title (line 562) | def set_title(win, st_idx, value=None): FILE: ui/opensnitch/dialogs/firewall_rule/utils.py function load_nodes (line 6) | def load_nodes(win): function reset_widgets (line 27) | def reset_widgets(win, title, topWidget): function set_status_error (line 45) | def set_status_error(win, msg): function set_status_successful (line 50) | def set_status_successful(win, msg): function set_status_message (line 55) | def set_status_message(win, msg): function reset_status_message (line 60) | def reset_status_message(win): function reset_fields (line 64) | def reset_fields(win): function enable_save (line 96) | def enable_save(win, enable=True): function enable_buttons (line 103) | def enable_buttons(win, enable=True): function disable_buttons (line 110) | def disable_buttons(win, disabled=True): function disable_controls (line 115) | def disable_controls(win): function is_valid_int_value (line 119) | def is_valid_int_value(value): FILE: ui/opensnitch/dialogs/preferences/dialog.py class PreferencesDialog (line 37) | class PreferencesDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH... method __init__ (line 73) | def __init__(self, parent=None, appicon=None): method showEvent (line 209) | def showEvent(self, event): method add_section (line 213) | def add_section(self, widget, icon, lbl): method insert_section (line 217) | def insert_section(self, idx, widget, lbl): method remove_section (line 221) | def remove_section(self, idx): method enable_section (line 225) | def enable_section(self, idx, enable): method set_section_title (line 229) | def set_section_title(self, idx, text): method set_section_visible (line 233) | def set_section_visible(self, idx, visible): method get_section (line 237) | def get_section(self, idx): method show_node_prefs (line 241) | def show_node_prefs(self, addr): method init (line 249) | def init(self): method cb_notification_callback (line 283) | def cb_notification_callback(self, addr, reply): method cb_list_item_activated (line 295) | def cb_list_item_activated(self, item): method cb_line_certs_changed (line 299) | def cb_line_certs_changed(self, text): method cb_node_line_certs_changed (line 304) | def cb_node_line_certs_changed(self, text): method cb_cmd_node_rulespath_clicked (line 310) | def cb_cmd_node_rulespath_clicked(self): method cb_file_db_clicked (line 323) | def cb_file_db_clicked(self): method cb_server_logoutput_combo_changed (line 341) | def cb_server_logoutput_combo_changed(self, idx): method cb_cmd_server_logfile_clicked (line 348) | def cb_cmd_server_logfile_clicked(self): method cb_line_server_logfile_changed (line 353) | def cb_line_server_logfile_changed(self, text): method cb_combo_uirules_changed (line 358) | def cb_combo_uirules_changed(self, idx): method cb_db_type_changed (line 367) | def cb_db_type_changed(self): method cb_accept_button_clicked (line 373) | def cb_accept_button_clicked(self): method cb_apply_button_clicked (line 378) | def cb_apply_button_clicked(self): method cb_cancel_button_clicked (line 381) | def cb_cancel_button_clicked(self): method cb_help_button_clicked (line 384) | def cb_help_button_clicked(self): method cb_popups_check_toggled (line 387) | def cb_popups_check_toggled(self, checked): method cb_node_combo_changed (line 395) | def cb_node_combo_changed(self, index): method cb_node_needs_update (line 400) | def cb_node_needs_update(self): method cb_server_settings_changed (line 405) | def cb_server_settings_changed(self): method cb_ui_check_rules_toggled (line 410) | def cb_ui_check_rules_toggled(self, state): method cb_combo_themes_changed (line 415) | def cb_combo_themes_changed(self, index): method cb_spin_uidensity_changed (line 421) | def cb_spin_uidensity_changed(self, value): method cb_ui_check_auto_scale_toggled (line 426) | def cb_ui_check_auto_scale_toggled(self, checked): method cb_ui_screen_factor_changed (line 432) | def cb_ui_screen_factor_changed(self, text): method cb_combo_auth_type_changed (line 437) | def cb_combo_auth_type_changed(self, index): method cb_combo_node_auth_type_changed (line 443) | def cb_combo_node_auth_type_changed(self, index): method cb_db_max_days_toggled (line 448) | def cb_db_max_days_toggled(self, state): method cb_db_jrnl_wal_toggled (line 454) | def cb_db_jrnl_wal_toggled(self, state): method cb_cmd_spin_clicked (line 459) | def cb_cmd_spin_clicked(self, spinWidget, operation): method cb_radio_system_notifications (line 462) | def cb_radio_system_notifications(self): method cb_test_notifs_clicked (line 465) | def cb_test_notifs_clicked(self): FILE: ui/opensnitch/dialogs/preferences/sections/db.py function save_config (line 8) | def save_config(win): function enable_db_cleaner_options (line 39) | def enable_db_cleaner_options(win, enable, db_max_days): function enable_db_jrnl_wal (line 51) | def enable_db_jrnl_wal(win, enable, db_jrnl_wal): function type_changed (line 55) | def type_changed(win): FILE: ui/opensnitch/dialogs/preferences/sections/nodes.py function load (line 7) | def load(win): function get_node_addr (line 21) | def get_node_addr(win): function config_auth_type (line 26) | def config_auth_type(win, idx): function reset_node_settings (line 41) | def reset_node_settings(win): function load_node_settings (line 62) | def load_node_settings(win): function load_node_auth_settings (line 154) | def load_node_auth_settings(win, config): FILE: ui/opensnitch/dialogs/preferences/sections/ui.py function load_langs (line 8) | def load_langs(win): function load_themes (line 21) | def load_themes(win): function get_theme_name (line 49) | def get_theme_name(win): function change_theme (line 53) | def change_theme(win): function show_ui_density_widgets (line 60) | def show_ui_density_widgets(win, idx): function show_ui_scalefactor_widgets (line 70) | def show_ui_scalefactor_widgets(win, show=False): function load_ui_settings (line 74) | def load_ui_settings(win): function load_ui_columns_config (line 153) | def load_ui_columns_config(win): FILE: ui/opensnitch/dialogs/preferences/settings.py function save (line 22) | def save(win): function load (line 34) | def load(win): function save_ui_config (line 105) | def save_ui_config(win): function save_ui_columns_config (line 250) | def save_ui_columns_config(win): function save_nodes_config (line 283) | def save_nodes_config(win): function save_node_config (line 317) | def save_node_config(win, notifObject, addr): function save_node_auth_config (line 361) | def save_node_auth_config(win, config): function build_node_config (line 387) | def build_node_config(win, addr): FILE: ui/opensnitch/dialogs/preferences/signals.py function connect_all (line 2) | def connect_all(win): FILE: ui/opensnitch/dialogs/preferences/utils.py function validate_certs (line 12) | def validate_certs(win): function needs_restart (line 44) | def needs_restart(win): function test_notifications (line 51) | def test_notifications(win): function configure_notifications (line 72) | def configure_notifications(win): function cmd_spin_clicked (line 85) | def cmd_spin_clicked(win, widget, operation): function config_server_auth_type (line 98) | def config_server_auth_type(win, idx): function show_help (line 108) | def show_help(): function hide_status_label (line 116) | def hide_status_label(win): function show_status_label (line 119) | def show_status_label(win): function set_status_error (line 122) | def set_status_error(win, msg): function set_status_successful (line 128) | def set_status_successful(win, msg): function set_status_message (line 134) | def set_status_message(win, msg): function reset_status_message (line 140) | def reset_status_message(win): FILE: ui/opensnitch/dialogs/processdetails.py class ProcessDetailsDialog (line 19) | class ProcessDetailsDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_P... method __init__ (line 61) | def __init__(self, parent=None, appicon=None): method _configure_plugins (line 104) | def _configure_plugins(self): method _cb_notification_callback (line 114) | def _cb_notification_callback(self, addr, reply): method closeEvent (line 157) | def closeEvent(self, e): method _cb_close_clicked (line 160) | def _cb_close_clicked(self): method _cb_combo_pids_changed (line 163) | def _cb_combo_pids_changed(self, idx): method _cb_action_clicked (line 172) | def _cb_action_clicked(self): method _show_message (line 178) | def _show_message(self, text): method _delete_notification (line 181) | def _delete_notification(self, nid): method _reset (line 185) | def _reset(self): method _set_button_running (line 200) | def _set_button_running(self, yes): method _close (line 208) | def _close(self): method monitor (line 214) | def monitor(self, pids): method _set_tab_text (line 228) | def _set_tab_text(self, tab_idx, text): method _start_monitoring (line 233) | def _start_monitoring(self): method _stop_monitoring (line 255) | def _stop_monitoring(self): method _load_data (line 271) | def _load_data(self, data): method _load_app_icon (line 340) | def _load_app_icon(self, proc_path): method _load_iostats (line 351) | def _load_iostats(self, iostats): method _load_mem_data (line 370) | def _load_mem_data(self, mem): method _load_descriptors (line 380) | def _load_descriptors(self, descriptors): method _load_env_vars (line 401) | def _load_env_vars(self, envs): method _build_notification_message (line 412) | def _build_notification_message(self, pid): FILE: ui/opensnitch/dialogs/prompt/checksums.py function verify (line 5) | def verify(checksums, rule): function update_rule (line 28) | def update_rule(node, rules, rule_name, con): FILE: ui/opensnitch/dialogs/prompt/details.py function render (line 4) | def render(node, detailsWidget, con): FILE: ui/opensnitch/dialogs/prompt/dialog.py class PromptDialog (line 36) | class PromptDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]): method __init__ (line 43) | def __init__(self, parent=None, appicon=None): method _cb_label_clicked (line 150) | def _cb_label_clicked(self, what): method _configure_plugins (line 163) | def _configure_plugins(self): method _pre_popup_plugins (line 176) | def _pre_popup_plugins(self, con): method _post_popup_plugins (line 179) | def _post_popup_plugins(self, conn): method get_main_widget (line 194) | def get_main_widget(self): method get_connection (line 198) | def get_connection(self): method get_peer (line 202) | def get_peer(self): method get_message_text (line 206) | def get_message_text(self): method set_app_name (line 209) | def set_app_name(self, text): method set_app_description (line 212) | def set_app_description(self, text): method set_app_path (line 215) | def set_app_path(self, text): method set_app_args (line 218) | def set_app_args(self, text): method set_message_text (line 221) | def set_message_text(self, text): method set_message_style (line 225) | def set_message_style(self, style): method set_icon_pixmap (line 228) | def set_icon_pixmap(self, pixmap): method eventFilter (line 232) | def eventFilter(self, obj, event): method showEvent (line 238) | def showEvent(self, event): method adjust_size (line 244) | def adjust_size(self): method move_popup (line 251) | def move_popup(self): method stop_countdown (line 266) | def stop_countdown(self): method _check_advanced_toggled (line 277) | def _check_advanced_toggled(self, state): method _button_clicked (line 292) | def _button_clicked(self): method _cb_warninglbl_clicked (line 295) | def _cb_warninglbl_clicked(self, link): method _cb_cmdinfo_clicked (line 300) | def _cb_cmdinfo_clicked(self): method _cb_update_rule_clicked (line 304) | def _cb_update_rule_clicked(self, updateAll=False): method _cb_cmdback_clicked (line 334) | def _cb_cmdback_clicked(self): method promptUser (line 338) | def promptUser(self, connection, is_local, peer): method _timeout_worker (line 371) | def _timeout_worker(self): method on_connection_prompt_triggered (line 392) | def on_connection_prompt_triggered(self): method on_tick_triggered (line 404) | def on_tick_triggered(self): method on_timeout_triggered (line 408) | def on_timeout_triggered(self): method reset_widgets (line 412) | def reset_widgets(self): method _hide_widget (line 426) | def _hide_widget(self, widget, hide): method _set_cmd_action_text (line 429) | def _set_cmd_action_text(self): method _display_checksums_warning (line 440) | def _display_checksums_warning(self, peer, con): method _render_connection (line 493) | def _render_connection(self, con): method keyPressEvent (line 585) | def keyPressEvent(self, event): method closeEvent (line 591) | def closeEvent(self, e): method close (line 595) | def close(self): method _on_action_clicked (line 600) | def _on_action_clicked(self, action): method _on_deny_btn_clicked (line 604) | def _on_deny_btn_clicked(self, action): method _is_list_rule (line 610) | def _is_list_rule(self): method _send_rule (line 616) | def _send_rule(self): FILE: ui/opensnitch/dialogs/prompt/utils.py function truncate_text (line 11) | def truncate_text(text, max_size=64): function set_elide_text (line 16) | def set_elide_text(widget, text, max_size=64): function get_rule_name (line 20) | def get_rule_name(rule, is_list): function get_popup_message (line 30) | def get_popup_message(is_local, node, hostname, app_name, con): function set_app_path (line 69) | def set_app_path(appPathLabel, app_name, app_args, con): function set_app_args (line 93) | def set_app_args(argsLabel, app_name, app_args): function set_app_description (line 110) | def set_app_description(appDescriptionLabel, description): function add_fixed_options_to_combo (line 127) | def add_fixed_options_to_combo(combo, con, uid): function add_ip_regexp_to_combo (line 145) | def add_ip_regexp_to_combo(combo, IPcombo, con): function add_appimage_pattern_to_combo (line 154) | def add_appimage_pattern_to_combo(combo, con): function add_snap_pattern_to_combo (line 165) | def add_snap_pattern_to_combo(combo, con): function add_dst_networks_to_combo (line 181) | def add_dst_networks_to_combo(combo, dst_ip): function add_dsthost_to_combo (line 193) | def add_dsthost_to_combo(popup, dst_host): function get_duration (line 203) | def get_duration(duration_idx): function set_default_duration (line 223) | def set_default_duration(cfg, durationCombo): function set_default_target (line 230) | def set_default_target(combo, con, cfg, app_name, app_args): function get_combo_operator (line 266) | def get_combo_operator(data, comboText, con): FILE: ui/opensnitch/dialogs/ruleseditor/dialog.py class RulesEditorDialog (line 38) | class RulesEditorDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH... method __init__ (line 42) | def __init__(self, parent=None, modal=True, appicon=None): method showEvent (line 71) | def showEvent(self, event): method init (line 75) | def init(self): method add_section (line 104) | def add_section(self, widget, icon, lbl): method insert_section (line 108) | def insert_section(self, idx, widget, lbl): method remove_section (line 112) | def remove_section(self, idx): method enable_section (line 116) | def enable_section(self, idx, enable): method set_section_title (line 120) | def set_section_title(self, idx, text): method set_section_visible (line 124) | def set_section_visible(self, idx, visible): method get_section (line 128) | def get_section(self, idx): method cb_rule_name_validator_result (line 132) | def cb_rule_name_validator_result(self, result): method cb_accept_clicked (line 143) | def cb_accept_clicked(self): method cb_close_clicked (line 146) | def cb_close_clicked(self): method cb_reset_clicked (line 149) | def cb_reset_clicked(self): method cb_help_clicked (line 152) | def cb_help_clicked(self): method cb_select_list_button_clicked (line 155) | def cb_select_list_button_clicked(self): method cb_select_nets_list_button_clicked (line 160) | def cb_select_nets_list_button_clicked(self): method cb_select_ips_list_button_clicked (line 165) | def cb_select_ips_list_button_clicked(self): method cb_select_regexp_list_button_clicked (line 170) | def cb_select_regexp_list_button_clicked(self): method cb_proto_check_toggled (line 175) | def cb_proto_check_toggled(self, state): method cb_proc_check_toggled (line 178) | def cb_proc_check_toggled(self, state): method cb_cmdline_check_toggled (line 183) | def cb_cmdline_check_toggled(self, state): method cb_iface_check_toggled (line 188) | def cb_iface_check_toggled(self, state): method cb_dstport_check_toggled (line 191) | def cb_dstport_check_toggled(self, state): method cb_srcport_check_toggled (line 194) | def cb_srcport_check_toggled(self, state): method cb_uid_check_toggled (line 197) | def cb_uid_check_toggled(self, state): method cb_pid_check_toggled (line 200) | def cb_pid_check_toggled(self, state): method cb_srcip_check_toggled (line 203) | def cb_srcip_check_toggled(self, state): method cb_dstip_check_toggled (line 206) | def cb_dstip_check_toggled(self, state): method cb_dsthost_check_toggled (line 209) | def cb_dsthost_check_toggled(self, state): method cb_dstlists_check_toggled (line 212) | def cb_dstlists_check_toggled(self, state): method cb_dstregexplists_check_toggled (line 216) | def cb_dstregexplists_check_toggled(self, state): method cb_dstiplists_check_toggled (line 220) | def cb_dstiplists_check_toggled(self, state): method cb_dstnetlists_check_toggled (line 224) | def cb_dstnetlists_check_toggled(self, state): method cb_uid_combo_changed (line 228) | def cb_uid_combo_changed(self, index): method cb_nodes_combo_changed (line 231) | def cb_nodes_combo_changed(self, index): method cb_md5check_toggled (line 235) | def cb_md5check_toggled(self, state): method cb_save_clicked (line 238) | def cb_save_clicked(self): method cb_notification_callback (line 284) | def cb_notification_callback(self, addr, reply): method new_rule (line 294) | def new_rule(self): method new_rule_from_connection (line 300) | def new_rule_from_connection(self, coltime): method edit_rule (line 319) | def edit_rule(self, records, _addr=None): method load_rule (line 338) | def load_rule(self, addr=None, rule=None): method add_rule (line 365) | def add_rule(self): method delete_rule (line 388) | def delete_rule(self): method save_rule (line 406) | def save_rule(self): FILE: ui/opensnitch/dialogs/ruleseditor/nodes.py function load_all (line 9) | def load_all(win, addr=None): function get_node_addr (line 44) | def get_node_addr(win): function load_rules (line 49) | def load_rules(win, addr): FILE: ui/opensnitch/dialogs/ruleseditor/rules.py function insert_rule_to_db (line 8) | def insert_rule_to_db(win, node_addr, rule): function new_operator (line 13) | def new_operator(op_type, operand, data, sensitive): function get_duration (line 21) | def get_duration(win, duration_idx): function load_duration (line 41) | def load_duration(win, duration): function set_fields_from_connection (line 62) | def set_fields_from_connection(win, records): function load_operator (line 80) | def load_operator(win, operator): FILE: ui/opensnitch/dialogs/ruleseditor/signals.py function connect_all (line 3) | def connect_all(win): FILE: ui/opensnitch/dialogs/ruleseditor/utils.py function bool (line 13) | def bool(s): function load_aliases_into_menu (line 16) | def load_aliases_into_menu(win): function set_rulename_validator (line 23) | def set_rulename_validator(win): function configure_icons (line 28) | def configure_icons(win): function set_status_error (line 41) | def set_status_error(win, msg): function set_status_message (line 45) | def set_status_message(win, msg): function reset_state (line 49) | def reset_state(win): function comma_to_regexp (line 125) | def comma_to_regexp(win, text, expected_type): function regexp_to_comma (line 148) | def regexp_to_comma(win, text, expected_type): function is_regex (line 174) | def is_regex(win, text): function is_valid_regex (line 181) | def is_valid_regex(win, regex): function is_valid_list_path (line 189) | def is_valid_list_path(win, listWidget): FILE: ui/opensnitch/firewall/__init__.py class Firewall (line 22) | class Firewall(QObject): method instance (line 26) | def instance(): method __init__ (line 31) | def __init__(self, parent=None): method switch_rules (line 37) | def switch_rules(self, key, old_pos, new_pos): method add_rule (line 40) | def add_rule(self, addr, rule): method insert_rule (line 43) | def insert_rule(self, addr, rule, position=0): method update_rule (line 46) | def update_rule(self, addr, uuid, rule): method delete_rule (line 49) | def delete_rule(self, addr, uuid): method change_rule_field (line 52) | def change_rule_field(self, addr, uuid, field, value): method enable_rule (line 63) | def enable_rule(self, addr, uuid, enable): method filter_rules (line 71) | def filter_rules(self, nail): method filter_by_table (line 109) | def filter_by_table(self, addr, table, family): method filter_by_chain (line 123) | def filter_by_chain(self, addr, table, family, chain, hook): method swap_rules (line 137) | def swap_rules(self, view, addr, uuid, old_pos, new_pos): method get_rule_by_uuid (line 140) | def get_rule_by_uuid(self, uuid, naddr=None): method get_protorule_by_uuid (line 157) | def get_protorule_by_uuid(self, addr, uuid): method get_node_rules (line 162) | def get_node_rules(self, addr): method get_chains (line 165) | def get_chains(self): method get_rules (line 168) | def get_rules(self): method rule_to_json (line 171) | def rule_to_json(self, rule): method apply_profile (line 174) | def apply_profile(self, node_addr, json_profile): method delete_profile (line 212) | def delete_profile(self, node_addr, json_profile): FILE: ui/opensnitch/firewall/chains.py class Chains (line 6) | class Chains(): method __init__ (line 8) | def __init__(self, nodes): method get (line 11) | def get(self): method get_node_chains (line 17) | def get_node_chains(self, addr): method get_node_chains (line 33) | def get_node_chains(self, addr): method get_policy (line 51) | def get_policy(self, node_addr=None, hook=Hooks.INPUT.value, _type=Cha... method set_policy (line 60) | def set_policy(self, node_addr, hook=Hooks.INPUT.value, _type=ChainTyp... method new (line 77) | def new( class ChainFilter (line 104) | class ChainFilter(Chains): method input (line 113) | def input(family=Family.INET.value): method output (line 124) | def output(family=Family.INET.value): method forward (line 135) | def forward(family=Family.INET.value): class ChainMangle (line 147) | class ChainMangle(Chains): method output (line 156) | def output(family=Family.INET.value): method input (line 168) | def input(family=Family.INET.value): method forward (line 180) | def forward(family=Family.INET.value): method prerouting (line 193) | def prerouting(family=Family.INET.value): method postrouting (line 205) | def postrouting(family=Family.INET.value): class ChainDstNAT (line 216) | class ChainDstNAT(Chains): method prerouting (line 225) | def prerouting(family=Family.INET.value): method output (line 237) | def output(family=Family.INET.value): method postrouting (line 249) | def postrouting(family=Family.INET.value): FILE: ui/opensnitch/firewall/enums.py class Verdicts (line 4) | class Verdicts(Enums): class Policy (line 21) | class Policy(Enums): class Table (line 25) | class Table(Enums): class Hooks (line 31) | class Hooks(Enums): class PortProtocols (line 38) | class PortProtocols(Enums): class Protocols (line 46) | class Protocols(Enums): class Family (line 66) | class Family(Enums): class ChainType (line 71) | class ChainType(Enums): class Operator (line 78) | class Operator(Enums): class TimeUnits (line 86) | class TimeUnits(Enums): class RateUnits (line 92) | class RateUnits(Enums): class Statements (line 98) | class Statements(Enums): FILE: ui/opensnitch/firewall/exprs.py class Expr (line 7) | class Expr(): method new (line 19) | def new(op, what, values): class ExprCt (line 32) | class ExprCt(Enums): class ExprMeta (line 41) | class ExprMeta(Enums): class ExprIface (line 50) | class ExprIface(Enums): class ExprICMP (line 54) | class ExprICMP(Enums): class ExprICMPRejectCodes (line 76) | class ExprICMPRejectCodes(Enums): class ExprLog (line 89) | class ExprLog(Enums): class ExprLogLevels (line 94) | class ExprLogLevels(Enums): class ExprCounter (line 105) | class ExprCounter(Enums): class ExprLimit (line 111) | class ExprLimit(Enums): class ExprQuota (line 118) | class ExprQuota(Enums): FILE: ui/opensnitch/firewall/profiles.py class Profiles (line 7) | class Profiles(): method load_predefined_profiles (line 10) | def load_predefined_profiles(): class ProfileAcceptOutput (line 20) | class ProfileAcceptOutput(): class ProfileAcceptForward (line 33) | class ProfileAcceptForward(): class ProfileDropForward (line 47) | class ProfileDropForward(): class ProfileAcceptInput (line 61) | class ProfileAcceptInput(): class ProfileDropInput (line 75) | class ProfileDropInput(): class ProfileDropOutput (line 144) | class ProfileDropOutput(): FILE: ui/opensnitch/firewall/rules.py class Rules (line 12) | class Rules(QObject): method __init__ (line 20) | def __init__(self, nodes): method _cb_rules_updated (line 25) | def _cb_rules_updated(self): method add (line 28) | def add(self, addr, rule): method insert (line 54) | def insert(self, addr, rule, position=0): method update (line 84) | def update(self, addr, uuid, rule): method get (line 103) | def get(self): method delete (line 111) | def delete(self, addr, uuid): method get_by_node (line 133) | def get_by_node(self, addr): method get_by_uuid (line 146) | def get_by_uuid(self, addr, uuid): method swap (line 160) | def swap(self, view, addr, uuid, old_pos, new_pos): method is_duplicated (line 194) | def is_duplicated(self, addr, orig_rule): method new (line 227) | def new( method new_flat (line 250) | def new_flat(c, r): method to_dict (line 269) | def to_dict(sysRules): method to_json (line 284) | def to_json(rule): method to_array (line 291) | def to_array(addr, chain, rule): FILE: ui/opensnitch/firewall/utils.py class Utils (line 5) | class Utils(): method isExprPort (line 8) | def isExprPort(value): method isProtobufSupported (line 19) | def isProtobufSupported(): FILE: ui/opensnitch/nodes.py class Nodes (line 15) | class Nodes(QObject): method instance (line 25) | def instance(): method __init__ (line 30) | def __init__(self): method count (line 39) | def count(self): method add (line 42) | def add(self, _peer, client_config=None): method add_data (line 95) | def add_data(self, addr, client_config): method add_fw_config (line 101) | def add_fw_config(self, addr, fwconfig): method add_fw_rules (line 104) | def add_fw_rules(self, addr, fwconfig): method add_rule (line 107) | def add_rule(self, time, node, name, description, enabled, precedence,... method add_rules (line 115) | def add_rules(self, addr, rules): method get_rules (line 121) | def get_rules(self, addr): method delete_rule (line 124) | def delete_rule(self, rule_name, addr, callback): method delete_rule_by_field (line 138) | def delete_rule_by_field(self, field, values): method rule_to_json (line 141) | def rule_to_json(self, addr, rule_name): method export_rule (line 144) | def export_rule(self, addr, rule_name, outdir): method export_rules (line 147) | def export_rules(self, addr, outdir): method import_rules (line 150) | def import_rules(self, addr=None, rulesdir="", callback=None): method disable_rule (line 168) | def disable_rule(self, addr, rule_name): method update_rule_time (line 171) | def update_rule_time(self, time, rule_name, addr): method delete_all (line 174) | def delete_all(self): method delete (line 179) | def delete(self, peer): method get (line 193) | def get(self): method get_node (line 196) | def get_node(self, addr): method get_nodes (line 203) | def get_nodes(self): method get_node_hostname (line 206) | def get_node_hostname(self, addr): method get_node_config (line 215) | def get_node_config(self, addr): method get_client_config (line 224) | def get_client_config(self, client_config): method get_addr (line 235) | def get_addr(self, peer): method is_connected (line 246) | def is_connected(self, addr): method is_local (line 253) | def is_local(self, addr): method get_notifications (line 265) | def get_notifications(self): method save_node_config (line 282) | def save_node_config(self, addr, config): method save_nodes_config (line 288) | def save_nodes_config(self, config): method change_node_config (line 295) | def change_node_config(self, addr, config, _callback): method start_interception (line 305) | def start_interception(self, _addr=None, _callback=None): method stop_interception (line 308) | def stop_interception(self, _addr=None, _callback=None): method firewall (line 311) | def firewall(self, not_type=ui_pb2.ENABLE_INTERCEPTION, addr=None, cal... method send_notification (line 320) | def send_notification(self, addr, notification, callback_signal=None): method send_notifications (line 356) | def send_notifications(self, notification, callback_signal=None): method reply_notification (line 374) | def reply_notification(self, addr, reply): method stop_notifications (line 399) | def stop_notifications(self, addr=None): method insert (line 408) | def insert(self, peer, status=ONLINE): method update (line 423) | def update(self, peer, status=ONLINE): method update_all (line 440) | def update_all(self, status=OFFLINE): method reset_status (line 456) | def reset_status(self): method reload_fw (line 462) | def reload_fw(self, addr, fw_config, callback): FILE: ui/opensnitch/notifications.py class DesktopNotifications (line 4) | class DesktopNotifications(): method __init__ (line 39) | def __init__(self): method is_available (line 82) | def is_available(self): method are_enabled (line 85) | def are_enabled(self): method support_actions (line 88) | def support_actions(self): method show (line 96) | def show(self, title, body, icon="dialog-information", urgency=URGENCY... method ask (line 116) | def ask(self, connection, timeout, callback): FILE: ui/opensnitch/plugins/__init__.py class PluginSignal (line 11) | class PluginSignal(QtCore.QObject): method __init__ (line 21) | def __init__(self): method emit (line 24) | def emit(self, args): method connect (line 27) | def connect(self, callback): method disconnect (line 30) | def disconnect(self, callback): method cb_signal (line 34) | def cb_signal(self, args): class PluginsList (line 37) | class PluginsList(): method __init_subclass__ (line 44) | def __init_subclass__(cls, **kwargs): class PluginBase (line 50) | class PluginBase(PluginsList, ABC): method __init__ (line 111) | def __init__(self): method get_name (line 114) | def get_name(self): method is_enabled (line 117) | def is_enabled(self): method set_enabled (line 120) | def set_enabled(self, enable): method get_description (line 123) | def get_description(self): method configure (line 127) | def configure(self): method compile (line 131) | def compile(self): method run (line 135) | def run(self, args): class PluginsManager (line 138) | class PluginsManager(): method instance (line 142) | def instance(): method __init__ (line 147) | def __init__(self): method load_plugins (line 168) | def load_plugins(self): method load_plugin_byname (line 179) | def load_plugin_byname(self, name, force=False): method load_plugin (line 191) | def load_plugin(self, path, force=False): method unload_all (line 214) | def unload_all(self): FILE: ui/opensnitch/plugins/downloader/_gui.py function add_panel_items (line 5) | def add_panel_items(parent, config): FILE: ui/opensnitch/plugins/downloader/downloader.py class Downloader (line 23) | class Downloader(PluginBase): method __init__ (line 45) | def __init__(self, config=None): method configure (line 55) | def configure(self, parent=None): method compile (line 61) | def compile(self): method run (line 108) | def run(self, parent=None, args=()): method new_timer (line 118) | def new_timer(self, interval, config): method cb_run_tasks (line 123) | def cb_run_tasks(self, args): method cb_signal (line 174) | def cb_signal(self, signal): method download_url (line 188) | def download_url(self, task_name, remote, localfile): FILE: ui/opensnitch/plugins/highlight/highlight.py class Highlight (line 9) | class Highlight(PluginBase): method __init__ (line 111) | def __init__(self, config=None): method get_name (line 118) | def get_name(self): method is_enabled (line 121) | def is_enabled(self): method set_enabled (line 124) | def set_enabled(self, enable): method get_description (line 127) | def get_description(self): method configure (line 130) | def configure(self): method _compile (line 137) | def _compile(self, what): method compile (line 164) | def compile(self): method run (line 176) | def run(self, parent, args): method paintCell (line 294) | def paintCell(self, method getAlignment (line 332) | def getAlignment(self, alignments): method getFont (line 347) | def getFont(self, font): method stop (line 351) | def stop(self): method cb_signal (line 354) | def cb_signal(self, signal): FILE: ui/opensnitch/plugins/sample/sample.py class Sample (line 4) | class Sample(PluginBase): method __init__ (line 17) | def __init__(self): method configure (line 20) | def configure(self): method load_conf (line 23) | def load_conf(self): method compile (line 26) | def compile(self): method run (line 31) | def run(self, args): method cb_signal (line 36) | def cb_signal(self, signal): FILE: ui/opensnitch/plugins/versionchecker/versionchecker.py class Versionchecker (line 24) | class Versionchecker(PluginBase): method __init__ (line 59) | def __init__(self, config=None): method configure (line 72) | def configure(self, parent=None): method compile (line 76) | def compile(self): method run (line 107) | def run(self, parent=None, args=()): method new_timer (line 124) | def new_timer(self, interval, config): method cb_run_tasks (line 129) | def cb_run_tasks(self, args): method cb_signal (line 162) | def cb_signal(self, signal): method check_version (line 176) | def check_version(self, task_name, remote): FILE: ui/opensnitch/plugins/virustotal/_models.py class VTTableModel (line 67) | class VTTableModel(GenericTableModel): method __init__ (line 69) | def __init__(self, method reconfigureColumns (line 93) | def reconfigureColumns(self): method lastQuery (line 121) | def lastQuery(self): method update_col_count (line 124) | def update_col_count(self): method fillVisibleRows (line 133) | def fillVisibleRows(self, q, upperBound, force=False): method resolve_all (line 148) | def resolve_all(self): method quota_exceeded (line 152) | def quota_exceeded(self): method reset_cells (line 155) | def reset_cells(self, pos): method set_cells_info (line 159) | def set_cells_info(self, pos, info): method get_info (line 174) | def get_info(self, pos, ip): method cb_ip_info (line 224) | def cb_ip_info(self, pos, what): FILE: ui/opensnitch/plugins/virustotal/_popups.py function build_vt_tab (line 15) | def build_vt_tab(plugin, parent): function add_vt_tab (line 57) | def add_vt_tab(parent, tab): function add_vt_response (line 60) | def add_vt_response(parent, response, conn, error=None): function add_analyzing_msg (line 87) | def add_analyzing_msg(vt, parent): function reset_widgets_state (line 93) | def reset_widgets_state(parent): function _cb_popup_link_clicked (line 99) | def _cb_popup_link_clicked(link, parent): FILE: ui/opensnitch/plugins/virustotal/_procdialog.py function build_vt_tab (line 6) | def build_vt_tab(plugin, parent): function add_vt_tab (line 24) | def add_vt_tab(vt, parent, widget): function _cb_proctab_changed (line 28) | def _cb_proctab_changed(idx, vt, parent): function update_tab (line 47) | def update_tab(what, response, parent, config, conn): FILE: ui/opensnitch/plugins/virustotal/_utils.py function get_verdict (line 2) | def get_verdict(verdict): function get_categories (line 13) | def get_categories(cats): function get_ssl_info (line 20) | def get_ssl_info(ssl_certificate): function get_dns_records (line 40) | def get_dns_records(last_dns_records): function build_html_report (line 57) | def build_html_report(json_obj, report="", spaces=""): function report_to_html (line 85) | def report_to_html(json_obj, report="", spaces=""): function report_to_ascii (line 91) | def report_to_ascii(json_obj, report="", space=""): FILE: ui/opensnitch/plugins/virustotal/virustotal.py class VTSignals (line 28) | class VTSignals(QtCore.QObject): class VTAnalysis (line 32) | class VTAnalysis(QtCore.QRunnable): method __init__ (line 33) | def __init__(self, parent, config, what, url, timeout, api_key, conn): method run (line 44) | def run(self): method analyze (line 47) | def analyze(self, parent, conf, what, url, timeout, api_key, conn): class Virustotal (line 65) | class Virustotal(PluginBase): method __init__ (line 184) | def __init__(self, config=None): method configure (line 205) | def configure(self, parent=None): method compile (line 250) | def compile(self): method run (line 278) | def run(self, parent, args): method analysis_error (line 337) | def analysis_error(self, what, parent, conf, error, conn, response): method analysis_completed (line 342) | def analysis_completed(self, what, parent, conf, conn, response): method update_popup (line 359) | def update_popup(self, what, response, parent, config, conn, errmsg=No... method is_benign (line 451) | def is_benign(self, mal_results): method is_malicious (line 454) | def is_malicious(self, mal_results): method cb_incoming_events (line 457) | def cb_incoming_events(self, signal): FILE: ui/opensnitch/proto/__init__.py function import_ (line 41) | def import_(): FILE: ui/opensnitch/proto/enums.py class ConnFields (line 6) | class ConnFields(Enums): class RuleFields (line 23) | class RuleFields(Enums): class NodeFields (line 38) | class NodeFields(Enums): FILE: ui/opensnitch/proto/pre3200/ui_pb2_grpc.py class UIStub (line 7) | class UIStub(object): method __init__ (line 11) | def __init__(self, channel): class UIServicer (line 44) | class UIServicer(object): method Ping (line 48) | def Ping(self, request, context): method AskRule (line 55) | def AskRule(self, request, context): method Subscribe (line 62) | def Subscribe(self, request, context): method Notifications (line 69) | def Notifications(self, request_iterator, context): method PostAlert (line 76) | def PostAlert(self, request, context): function add_UIServicer_to_server (line 84) | def add_UIServicer_to_server(servicer, server): FILE: ui/opensnitch/proto/ui_pb2_grpc.py class UIStub (line 8) | class UIStub(object): method __init__ (line 11) | def __init__(self, channel): class UIServicer (line 44) | class UIServicer(object): method Ping (line 47) | def Ping(self, request, context): method AskRule (line 53) | def AskRule(self, request, context): method Subscribe (line 59) | def Subscribe(self, request, context): method Notifications (line 65) | def Notifications(self, request_iterator, context): method PostAlert (line 71) | def PostAlert(self, request, context): function add_UIServicer_to_server (line 78) | def add_UIServicer_to_server(servicer, server): class UI (line 112) | class UI(object): method Ping (line 116) | def Ping(request, method AskRule (line 133) | def AskRule(request, method Subscribe (line 150) | def Subscribe(request, method Notifications (line 167) | def Notifications(request_iterator, method PostAlert (line 184) | def PostAlert(request, FILE: ui/opensnitch/rules.py class Rule (line 24) | class Rule(): method __init__ (line 25) | def __init__(self): method to_bool (line 29) | def to_bool(s): method new_empty (line 33) | def new_empty(): method new_from_records (line 37) | def new_from_records(records): class Rules (line 80) | class Rules(QObject): method instance (line 87) | def instance(): method __init__ (line 92) | def __init__(self): method add (line 96) | def add(self, time, node, name, description, enabled, precedence, nolo... method add_rules (line 107) | def add_rules(self, addr, rules): method delete (line 132) | def delete(self, name, addr, callback): method delete_by_field (line 146) | def delete_by_field(self, field, values): method get_by_name (line 149) | def get_by_name(self, node, name): method get_all_by_node (line 152) | def get_all_by_node(self, node): method get_by_field (line 155) | def get_by_field(self, node, field, value): method exists (line 158) | def exists(self, rule, node_addr): method new_unique_name (line 161) | def new_unique_name(self, rule_name, node_addr, prefix): method disable (line 174) | def disable(self, addr, name): method update_time (line 184) | def update_time(self, time, name, addr): method _timestamp_to_rfc3339 (line 195) | def _timestamp_to_rfc3339(self, time): method rule_to_json (line 201) | def rule_to_json(self, node, rule_name): method _export_rule_common (line 218) | def _export_rule_common(self, node, records, outdir): method export_rule (line 237) | def export_rule(self, node, rule_name, outdir): method export_rules (line 260) | def export_rules(self, node, outdir): method import_rules (line 283) | def import_rules(self, rulesdir): FILE: ui/opensnitch/service.py class UIService (line 46) | class UIService(ui_pb2_grpc.UIServicer, QtWidgets.QGraphicsObject): method __init__ (line 60) | def __init__(self, app, on_exit, start_in_bg=False): method _load_plugins (line 159) | def _load_plugins(self): method _stop_plugins (line 174) | def _stop_plugins(self): method _setup_interfaces (line 181) | def _setup_interfaces(self): method _setup_slots (line 189) | def _setup_slots(self): method _setup_icons (line 205) | def _setup_icons(self): method _setup_tray (line 227) | def _setup_tray(self): method _on_switch_autostart (line 254) | def _on_switch_autostart(self): method _on_show_menu (line 267) | def _on_show_menu(self): method _show_gui_if_tray_not_available (line 270) | def _show_gui_if_tray_not_available(self): method show_systray_msg (line 283) | def show_systray_msg(self, title, body, icon=None, callback=None, user... method _show_systray_msg_error (line 302) | def _show_systray_msg_error(self): method _on_tray_icon_activated (line 327) | def _on_tray_icon_activated(self, reason): method _on_close (line 340) | def _on_close(self): method _show_stats_dialog (line 358) | def _show_stats_dialog(self): method _on_stats_status_changed (line 364) | def _on_stats_status_changed(self, enabled): method _on_status_changed (line 368) | def _on_status_changed(self, enabled): method _on_diff_versions (line 372) | def _on_diff_versions(self, daemon_ver, ui_ver): method _on_update_stats (line 383) | def _on_update_stats(self, proto, addr, request): method _on_new_alert (line 389) | def _on_new_alert(self, proto, addr, alert): method _on_new_remote (line 438) | def _on_new_remote(self, addr, request): method _on_stats_dialog_shown (line 448) | def _on_stats_dialog_shown(self): method _on_notification_reply (line 458) | def _on_notification_reply(self, addr, reply): method _on_remote_stats_menu (line 472) | def _on_remote_stats_menu(self, address): method _show_systray_message (line 476) | def _show_systray_message(self, title, body, icon, urgency): method _on_enable_interception_clicked (line 503) | def _on_enable_interception_clicked(self): method _on_settings_saved (line 507) | def _on_settings_saved(self): method _has_desktop_notifications (line 519) | def _has_desktop_notifications(self): method _init_translation (line 527) | def _init_translation(self): method _stop_db_cleaner (line 536) | def _stop_db_cleaner(self): method _start_db_cleaner (line 541) | def _start_db_cleaner(self): method _update_fw_status (line 550) | def _update_fw_status(self, enabled): method _set_daemon_connected (line 566) | def _set_daemon_connected(self, connected): method _enable_interception (line 596) | def _enable_interception(self, enable): method _is_local_request (line 627) | def _is_local_request(self, proto, addr): method _build_missed_rule_msg (line 638) | def _build_missed_rule_msg(self, conn, rule, node, hostname): method _get_peer (line 682) | def _get_peer(self, peer): method _delete_node (line 691) | def _delete_node(self, peer): method _populate_stats (line 706) | def _populate_stats(self, db, proto, addr, stats): method _populate_stats_details (line 763) | def _populate_stats_details(self, db, addr, stats): method _populate_stats_events (line 778) | def _populate_stats_events(self, db, addr, stats, table, colnames, col... method _overwrite_nodes_config (line 810) | def _overwrite_nodes_config(self, node_config): method _on_temp_rule_expired (line 834) | def _on_temp_rule_expired(self, node_addr, rule_name): method _on_node_actions (line 843) | def _on_node_actions(self, kwargs): method OpenWindow (line 904) | def OpenWindow(self): method close (line 907) | def close(self): method PostAlert (line 910) | def PostAlert(self, alert, context): method Ping (line 915) | def Ping(self, request, context): method AskRule (line 938) | def AskRule(self, request, context): method Subscribe (line 985) | def Subscribe(self, node_config, context): method Notifications (line 1030) | def Notifications(self, node_iter, context): FILE: ui/opensnitch/utils/__init__.py class AsnDB (line 18) | class AsnDB(): method instance (line 23) | def instance(): method __init__ (line 28) | def __init__(self): method is_available (line 32) | def is_available(self): method load (line 35) | def load(self): method lookup (line 68) | def lookup(self, ip): method get_as_name (line 78) | def get_as_name(self, asn): method get_asn (line 91) | def get_asn(self, ip): class GenericTimer (line 98) | class GenericTimer(Thread): method __init__ (line 103) | def __init__(self, _interval, _in_loop, _callback, _args=()): method run (line 111) | def run(self): method stop (line 121) | def stop(self): class OneshotTimer (line 124) | class OneshotTimer(GenericTimer): method __init__ (line 125) | def __init__(self, _interval, _callback, _args=()): method run (line 128) | def run(self): method stop (line 135) | def stop(self): class CleanerTask (line 138) | class CleanerTask(Thread): method __init__ (line 143) | def __init__(self, _interval, _callback): method run (line 162) | def run(self): method stop (line 169) | def stop(self): class QuickHelp (line 173) | class QuickHelp(): method show (line 175) | def show(help_str): class Utils (line 178) | class Utils(): method check_versions (line 180) | def check_versions(daemon_version): method get_user_id (line 186) | def get_user_id(uid): method get_interfaces (line 197) | def get_interfaces(): method create_socket_dirs (line 210) | def create_socket_dirs(): class Message (line 224) | class Message(): method ok (line 227) | def ok(title, message, icon): method yes_no (line 237) | def yes_no(title, message, icon): class FileDialog (line 248) | class FileDialog(): method save (line 251) | def save(parent): method select (line 256) | def select(parent): method select_dir (line 261) | def select_dir(parent, current_dir): class Enums (line 266) | class Enums(enum.Enum): method to_dict (line 268) | def to_dict(cls): method keys (line 272) | def keys(cls): method values (line 276) | def values(cls): class NetworkInterfaces (line 279) | class NetworkInterfaces(): method list (line 282) | def list(): class NetworkServices (line 297) | class NetworkServices(): method instance (line 303) | def instance(): method __init__ (line 311) | def __init__(self): method to_array (line 337) | def to_array(self): method service_by_index (line 340) | def service_by_index(self, idx): method service_by_name (line 346) | def service_by_name(self, name): method port_by_index (line 352) | def port_by_index(self, idx): method index_by_port (line 358) | def index_by_port(self, port): class Icons (line 364) | class Icons(): method new (line 415) | def new(widget, icon_name): method get_by_appname (line 443) | def get_by_appname(app_icon): class Versions (line 464) | class Versions(): method get (line 466) | def get(): FILE: ui/opensnitch/utils/duration/duration.py function to_seconds (line 43) | def to_seconds(dur_str): FILE: ui/opensnitch/utils/infowindow.py class InfoWindow (line 5) | class InfoWindow(QtWidgets.QDialog): method __init__ (line 8) | def __init__(self, parent): method closeEvent (line 32) | def closeEvent(self, ev): method _load_settings (line 37) | def _load_settings(self): method _save_settings (line 42) | def _save_settings(self): method showText (line 45) | def showText(self, text): method showHtml (line 63) | def showHtml(self, text): FILE: ui/opensnitch/utils/languages.py function __get_i18n_path (line 9) | def __get_i18n_path(): function init (line 12) | def init(saved_lang): function save (line 24) | def save(cfg, lang): function get_all (line 32) | def get_all(): FILE: ui/opensnitch/utils/logger/logger.py function new (line 11) | def new(tag, max_bytes=5242880, max_backup=5, filename=None): function get (line 27) | def get(tag): function print_stack (line 33) | def print_stack(): FILE: ui/opensnitch/utils/network_aliases/network_aliases.py class NetworkAliases (line 22) | class NetworkAliases: method load_aliases (line 26) | def load_aliases(): method get_alias (line 41) | def get_alias(ip): method get_networks_for_alias (line 54) | def get_networks_for_alias(alias): method get_alias_all (line 58) | def get_alias_all(): FILE: ui/opensnitch/utils/qvalidator.py class RestrictChars (line 4) | class RestrictChars(QtGui.QValidator): method __init__ (line 7) | def __init__(self, restricted_chars, *args, **kwargs): method validate (line 11) | def validate(self, value, pos): FILE: ui/opensnitch/utils/themes/themes.py class Themes (line 12) | class Themes(): method instance (line 32) | def instance(): method __init__ (line 37) | def __init__(self): method available (line 41) | def available(self): method get_saved_theme (line 44) | def get_saved_theme(self): method save_theme (line 64) | def save_theme(self, theme_idx, theme, density_scale): method load_theme (line 74) | def load_theme(self, app): method change_theme (line 95) | def change_theme(self, window, theme_name, extra={}): method list_local_themes (line 105) | def list_local_themes(self): method list_themes (line 120) | def list_themes(self): FILE: ui/opensnitch/utils/xdg.py function get_runtime_dir (line 8) | def get_runtime_dir(strict=True): function get_run_opensnitch_dir (line 45) | def get_run_opensnitch_dir(): class Autostart (line 57) | class Autostart(): method __init__ (line 58) | def __init__(self): method _copyfile (line 66) | def _copyfile(self, src, dst): method createUserDir (line 73) | def createUserDir(self): method isEnabled (line 79) | def isEnabled(self): method enable (line 92) | def enable(self, mode=True): method disable (line 107) | def disable(self): FILE: ui/tests/conftest.py function init_test_environment (line 13) | def init_test_environment(): function qapp (line 39) | def qapp(): function qtbot (line 51) | def qtbot(qapp, qtbot): function mock_message_dialogs (line 56) | def mock_message_dialogs(): function reset_node_before_each_test (line 63) | def reset_node_before_each_test(qapp): FILE: ui/tests/dialogs/__init__.py class ClientConfig (line 7) | class ClientConfig: class Connection (line 33) | class Connection: FILE: ui/tests/dialogs/test_preferences.py class TestPreferences (line 16) | class TestPreferences(): method reset_settings (line 18) | def reset_settings(self): method setup_method (line 24) | def setup_method(self): method run (line 30) | def run(self, qtbot): method test_save_popups_settings (line 36) | def test_save_popups_settings(self, qtbot): method test_save_ui_settings (line 59) | def test_save_ui_settings(self, qtbot): method test_save_node_settings (line 72) | def test_save_node_settings(self, qtbot, capsys): method test_load_ui_settings (line 120) | def test_load_ui_settings(self, qtbot, capsys): method test_cancel_discards_changes (line 156) | def test_cancel_discards_changes(self, qtbot): method test_save_db_type_memory (line 181) | def test_save_db_type_memory(self, qtbot): method test_save_theme_settings (line 192) | def test_save_theme_settings(self, qtbot): method test_default_values_on_fresh_start (line 209) | def test_default_values_on_fresh_start(self, qtbot): method test_save_screen_scaling_settings (line 228) | def test_save_screen_scaling_settings(self, qtbot): method test_save_desktop_notifications_qt (line 242) | def test_save_desktop_notifications_qt(self, qtbot): method test_save_db_purge_settings (line 256) | def test_save_db_purge_settings(self, qtbot): method test_disable_popups (line 270) | def test_disable_popups(self, qtbot): method test_save_advanced_popup_options (line 282) | def test_save_advanced_popup_options(self, qtbot): method test_timeout_spinner_boundaries (line 300) | def test_timeout_spinner_boundaries(self, qtbot): method test_settings_persistence_reopen (line 321) | def test_settings_persistence_reopen(self, qtbot): method test_action_deny_setting (line 351) | def test_action_deny_setting(self, qtbot): method test_action_reject_setting (line 362) | def test_action_reject_setting(self, qtbot): method test_duration_option_always (line 373) | def test_duration_option_always(self, qtbot): method test_duration_option_custom (line 384) | def test_duration_option_custom(self, qtbot): method test_dialog_position_center (line 395) | def test_dialog_position_center(self, qtbot): method test_dialog_position_top_right (line 403) | def test_dialog_position_top_right(self, qtbot): method test_ui_rules_combo_disabled_when_unchecked (line 411) | def test_ui_rules_combo_disabled_when_unchecked(self, qtbot): method test_db_file_visibility (line 421) | def test_db_file_visibility(self, qtbot): method test_notifications_disabled (line 435) | def test_notifications_disabled(self, qtbot): method test_target_option_process (line 445) | def test_target_option_process(self, qtbot): method test_target_option_custom (line 455) | def test_target_option_custom(self, qtbot): FILE: ui/tests/dialogs/test_ruleseditor.py class TestRulesEditor (line 19) | class TestRulesEditor(): method setup_method (line 21) | def setup_method(self): method test_rule_no_fields (line 30) | def test_rule_no_fields(self, qtbot): method test_fields_empty (line 40) | def test_fields_empty(self, qtbot): method test_add_basic_rule (line 85) | def test_add_basic_rule(self, qtbot): method test_add_complex_rule (line 110) | def test_add_complex_rule(self, qtbot): method test_add_reject_rule (line 142) | def test_add_reject_rule(self, qtbot): method test_add_deny_rule (line 167) | def test_add_deny_rule(self, qtbot): method test_add_allow_rule (line 192) | def test_add_allow_rule(self, qtbot): method test_add_rule_name_conflict (line 217) | def test_add_rule_name_conflict(self, qtbot): method test_load_rule (line 233) | def test_load_rule(self, qtbot): method test_edit_and_rename_rule (line 254) | def test_edit_and_rename_rule(self, qtbot): method test_durations (line 289) | def test_durations(self, qtbot): method test_rule_LANs (line 316) | def test_rule_LANs(self, qtbot): method test_rule_networks (line 343) | def test_rule_networks(self, qtbot): method test_rule_with_process_path (line 371) | def test_rule_with_process_path(self, qtbot): method test_rule_with_cmdline (line 390) | def test_rule_with_cmdline(self, qtbot): method test_rule_with_pid (line 409) | def test_rule_with_pid(self, qtbot): method test_rule_with_uid (line 428) | def test_rule_with_uid(self, qtbot): method test_rule_with_source_port (line 446) | def test_rule_with_source_port(self, qtbot): method test_rule_with_protocol (line 465) | def test_rule_with_protocol(self, qtbot): method test_rule_with_source_ip (line 483) | def test_rule_with_source_ip(self, qtbot): method test_rule_with_dest_ip (line 502) | def test_rule_with_dest_ip(self, qtbot): method test_rule_reset_button (line 522) | def test_rule_reset_button(self, qtbot): method test_rule_enabled_disabled (line 543) | def test_rule_enabled_disabled(self, qtbot): method test_rule_precedence (line 560) | def test_rule_precedence(self, qtbot): method test_rule_nolog (line 577) | def test_rule_nolog(self, qtbot): method test_rule_with_process_regexp (line 596) | def test_rule_with_process_regexp(self, qtbot): method test_rule_with_cmdline_regexp (line 616) | def test_rule_with_cmdline_regexp(self, qtbot): method test_rule_with_host_regexp (line 636) | def test_rule_with_host_regexp(self, qtbot): method test_sensitive_case_matching (line 655) | def test_sensitive_case_matching(self, qtbot): method test_md5_requires_process_path (line 674) | def test_md5_requires_process_path(self, qtbot): method test_rule_with_md5_and_process (line 691) | def test_rule_with_md5_and_process(self, qtbot): method test_comma_separated_ports (line 711) | def test_comma_separated_ports(self, qtbot): method test_multicast_address (line 737) | def test_multicast_address(self, qtbot): method test_empty_rule_name_auto_generation (line 756) | def test_empty_rule_name_auto_generation(self, qtbot): method test_checkbox_enables_field (line 774) | def test_checkbox_enables_field(self, qtbot): method test_rule_description (line 797) | def test_rule_description(self, qtbot): FILE: ui/tests/test_nodes.py class NotifTest (line 14) | class NotifTest(QtCore.QObject): method callback (line 19) | def callback(self, reply): class TestNodes (line 24) | class TestNodes(): method setup_method (line 26) | def setup_method(self): method test_add (line 41) | def test_add(self, qtbot): method test_get_node (line 45) | def test_get_node(self, qtbot): method test_get_addr (line 49) | def test_get_addr(self, qtbot): method test_get_nodes (line 53) | def test_get_nodes(self, qtbot): method test_add_rule (line 57) | def test_add_rule(self, qtbot): method test_update_rule_time (line 81) | def test_update_rule_time(self, qtbot): method test_delete_rule (line 91) | def test_delete_rule(self, qtbot): method test_update_node_status (line 99) | def test_update_node_status(self, qtbot): method test_send_notification (line 111) | def test_send_notification(self, qtbot): method test_reply_notification (line 126) | def test_reply_notification(self, qtbot): method test_delete (line 139) | def test_delete(self, qtbot): method test_count (line 151) | def test_count(self, qtbot): method test_is_connected (line 163) | def test_is_connected(self, qtbot): method test_is_local_unix_socket (line 172) | def test_is_local_unix_socket(self, qtbot): method test_is_local_remote_address (line 177) | def test_is_local_remote_address(self, qtbot): method test_get_node_hostname (line 185) | def test_get_node_hostname(self, qtbot): method test_get_node_hostname_nonexistent (line 192) | def test_get_node_hostname_nonexistent(self, qtbot): method test_get_node_config (line 197) | def test_get_node_config(self, qtbot): method test_get_node_config_nonexistent (line 203) | def test_get_node_config_nonexistent(self, qtbot): method test_delete_all (line 208) | def test_delete_all(self, qtbot): method test_send_notifications_broadcast (line 218) | def test_send_notifications_broadcast(self, qtbot): method test_get_notifications (line 234) | def test_get_notifications(self, qtbot): method test_disable_rule (line 253) | def test_disable_rule(self, qtbot): method test_delete_rule_by_field (line 285) | def test_delete_rule_by_field(self, qtbot): method test_rule_to_json (line 328) | def test_rule_to_json(self, qtbot): method test_get_node_nonexistent (line 354) | def test_get_node_nonexistent(self, qtbot): method test_add_duplicate_peer (line 359) | def test_add_duplicate_peer(self, qtbot): method test_get_addr_various_formats (line 371) | def test_get_addr_various_formats(self, qtbot): method test_get_addr_ipv6 (line 381) | def test_get_addr_ipv6(self, qtbot): method test_get_addr_unix_empty_path (line 392) | def test_get_addr_unix_empty_path(self, qtbot): method test_reset_status (line 399) | def test_reset_status(self, qtbot): method test_update_all_status (line 412) | def test_update_all_status(self, qtbot): method test_save_node_config (line 426) | def test_save_node_config(self, qtbot): method test_firewall_enable_interception (line 438) | def test_firewall_enable_interception(self, qtbot): method test_firewall_disable_interception (line 446) | def test_firewall_disable_interception(self, qtbot): method test_stop_notifications (line 454) | def test_stop_notifications(self, qtbot):