3x-ui/xray
Qiaochu Hu 24cd271486
Fix overly permissive file permissions (os.ModePerm) (#4207)
Several file operations used os.ModePerm (0777) which makes files
world-writable and world-readable, violating the principle of least
privilege:

- database/db.go: InitDB directory creation → 0755
- xray/process.go: Xray config write → 0644
- xray/process.go: Crash report write → 0644
- web/service/server.go: Binary extraction → 0755

Also removes unused "io/fs" imports from the affected files.
2026-05-10 14:47:28 +02:00
..
api.go avoid reset in QueryStatsRequest (#4202) 2026-05-10 10:59:42 +02:00
client_traffic.go API: UUID for getClientTraffics 2025-09-21 19:16:54 +02:00
config.go v3 2026-05-10 02:13:42 +02:00
inbound.go v3 2026-05-10 02:13:42 +02:00
log_writer.go v3 2026-05-10 02:13:42 +02:00
process.go Fix overly permissive file permissions (os.ModePerm) (#4207) 2026-05-10 14:47:28 +02:00
traffic.go docs: add comments for all functions 2025-09-20 09:35:50 +02:00