Linux 上软件包升级后 process_name 规则失效了

Aperta
#4,698 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
57/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go, linux
Ambito
backend

Direzione di ricerca

Start by locating the Linux process inspection code that supplies process_name rules, then check how it handles executable paths after a package upgrade. Reproduce the report by replacing an executable while its process remains running and compare the reported name with the configured Telegram rule. Done means the rule still matches after the executable is marked deleted; the issue names no specific source file or test.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

操作系统

Linux

系统版本

Arch Linux

安装类型

sing-box 原始命令行程序

如果您使用图形客户端程序,请提供该程序版本。

No response

版本
sing-box version 1.14.4

Environment: go1.27.3-X:nodwarf5 linux/amd64
Tags: with_gvisor,with_quic,with_dhcp,with_wireguard,with_utls,with_acme,with_clash_api,with_tailscale,with_ccm,with_ocm,with_cloudflared,with_naive_outbound,with_usbip,with_openvpn,with_openconnect,badlinkname,tfogo_checklinkname0
CGO: enabled
描述

软件包升级后,process_name 规则会静默失效。原因应该是对于可执行文件被替换、进程未重启的应用,sing-box 获取到的 process_name 变成了末尾会多一个 (deleted)。

重现方式
  1. 规则配置 process_name: ["Telegram"] → proxy
  2. 打开 telegram-desktop
  3. 升级 telegram-desktop 软件包,但是不要重启软件,此时 telegram 就不能联网了,重启后才会恢复
日志

支持我们
完整性要求
  • 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
  • 我保证提供了可以在本地重现该问题的服务器、客户端配置文件与流程,而不是一个脱敏的复杂客户端配置文件。
  • 我保证提供了可用于重现我报告的错误的最简配置,而不是依赖远程服务器、TUN、图形界面客户端或者其他闭源软件。
  • 我保证提供了完整的配置文件与日志,而不是出于对自身智力的自信而仅提供了部分认为有用的部分。
Lingua principale
Go
Stelle
40.4k
Fork
5k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di SagerNet/sing-box

Tutte le issue di SagerNet/sing-box

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.