The UI can't tell which process monitor method the daemon is actually using
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 66/100
Direzione di ricerca
Start with proto/ui.proto and daemon/procmon/monitor/init.go to trace the statistics sent to the UI and where the active method is selected. The issue suggests adding the running method to Statistics; check how statistics are populated and sent, then verify the UI can distinguish the active method from the configured one, including after a reload.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
When the configured method (ebpf or audit) fails to start, the daemon falls back to proc, but nothing tells the UI. The UI only sees the configured method, so it can show "ebpf" while the daemon is really parsing /proc. That matters to users: /proc misses or misattributes short-lived processes (#1447), which is the main reason to choose ebpf.
What happens now (master a1353848, same code in v1.8.0)
monitor.Init()tries the configured method and, if it fails, falls back to/proc. It callsprocmon.SetMonitorMethod(procmon.MethodProc)and logsProcess monitor method /proc(daemon/procmon/monitor/init.go:131-133). The running method is then known only inside the daemon (procmon.GetMonitorMethod()).- What the UI gets is
ClientConfig.Config, which is the config file read from disk (daemon/ui/notifications.go:36,60). SoProcMonitorMethodthere is the configured value, not the running one. It also doesn't reflect the-process-monitor-methodcommand-line flag (daemon/main.go:107). - On a config reload,
reloadConfiguration()puts the last good method back into its in-memory copy when the new one fails (daemon/ui/config_utils.go:261), but that copy isn't whatgetClientConfig()sends. Statistics(proto/ui.proto:79) has no field for it either.
Expected behaviour
The UI can show the method in use, and that it differs from the configured one when there was a fallback.
Possible change (open to whatever fits best)
- a. Add
string process_monitor_methodtoStatistics, filled fromprocmon.GetMonitorMethod(). It's sent on every ping, so the UI also sees a change after a reload. This is additive in protobuf: older UIs ignore it and older daemons send an empty string, which reads as "unknown". - b. Or add the field to
ClientConfig. That's only sent at subscribe time, so it would also need an update after a reload changes the method. - c. Also send an
Alert(type warning, what: e.g.PROC_MONITOR) when Init falls back, so the UI can explain why. Today the only warning comes from the command-line path ("Unable to set process monitor method via parameter",daemon/main.go:643-645).
(a) looks like the smallest useful change. I'm happy to send a PR for it if that's the preferred shape.
Context
We noticed this while building a status view for a desktop frontend: there was no honest way to say "eBPF is active" versus "configured eBPF, running /proc".
- Lingua principale
- Python
- Stelle
- 14.3k
- Fork
- 689
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di evilsocket/opensnitch
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
evilsocket/opensnitch#1715 ·
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 76/100
evilsocket/opensnitch#1689 · 3 commenti · 1 reazione ·
-
[Bug Report] list_subscriptions plugin prevents the UI from starting with protobuf < 3.20 (Fedora 44)Forse già presa @aadrian l’ha presa 48 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
evilsocket/opensnitch#1683 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
evilsocket/opensnitch#1675 ·
-
ui: Addresses tab shows raw column name "what"Forse già presa @aadrian l’ha presa 48 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
evilsocket/opensnitch#1674 · 2 commenti ·
Tutte le issue di evilsocket/opensnitch
Issue simili
-
[Bug]: DoubleMLData.from_arrays checks the treatment d with force_all_x_finite instead of force_all_d_finiteForse già presa @leninworld l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
DoubleML/doubleml-for-py#471 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
python-pillow/Pillow#10590 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
BUG: ZarrTrace fails in init_trace for models with datetime coordinates (object dtype coord array)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 2 giorni