谢栋梁
e5548acb98
fix: allow home subdirectories through is_dangerous_path()
...
Split DANGEROUS_PATHS into two categories:
1. DANGEROUS_SYSTEM_PATHS: Block path AND all subdirectories
(e.g., /etc, /etc/passwd, /var/log/auth.log)
2. DANGEROUS_HOME_CONTAINERS: Block ONLY exact match
(e.g., /home is blocked but /home/user/project passes through)
This fixes the issue where /home/user/project was incorrectly blocked
by is_dangerous_path(). Subdirectory access control for home directories
is properly delegated to is_home_directory_root() in resolve_and_validate_path().
Addresses review feedback from @chatgpt-codex-connector about blocking
all home directory subpaths.
2025-12-15 20:24:44 +08:00
..
2025-12-04 18:15:14 +04:00
2025-11-14 01:40:49 -07:00
2025-12-04 18:15:14 +04:00
2025-11-14 01:40:49 -07:00
2025-12-04 18:15:14 +04:00
2025-10-01 18:53:30 +04:00
2025-10-02 11:08:56 +04:00
2025-07-13 10:41:43 -06:00
2025-07-12 20:24:34 -06:00
2025-10-07 12:59:09 +04:00
2025-11-18 20:28:27 +04:00
2025-10-02 08:09:44 +04:00
2025-12-04 18:15:14 +04:00
2025-11-18 20:28:27 +04:00
2025-10-21 10:35:44 +04:00
2025-08-08 12:59:41 +05:00
2025-10-04 21:10:56 +04:00
2025-10-07 12:59:09 +04:00
2025-10-01 18:53:30 +04:00
2025-11-18 20:28:27 +04:00
2025-12-04 18:15:14 +04:00
2025-10-21 10:35:44 +04:00
2025-10-21 10:35:44 +04:00
2025-12-04 18:15:14 +04:00
2025-10-08 11:14:22 +04:00
2025-10-21 10:41:02 +04:00
2025-10-07 17:39:41 +01:00
2025-10-07 17:39:41 +01:00
2025-10-06 23:32:04 +04:00
2025-12-04 18:15:14 +04:00
2025-10-06 00:39:00 +04:00
2025-11-21 09:31:34 +04:00
2025-10-04 13:46:22 +04:00
2025-11-18 20:28:27 +04:00
2025-11-18 20:28:27 +04:00
2025-10-03 22:41:28 +04:00
2025-11-18 20:28:27 +04:00
2025-10-21 10:35:44 +04:00
2025-10-21 10:35:44 +04:00
2025-10-03 11:29:06 +04:00
2025-10-21 10:35:44 +04:00
2025-06-16 11:30:02 +04:00
2025-10-07 12:59:09 +04:00
2025-10-04 21:10:56 +04:00
2025-11-18 20:28:27 +04:00
2025-06-29 00:01:35 +02:00
2025-10-02 12:59:45 +04:00
2025-10-21 10:35:44 +04:00
2025-06-23 19:07:40 +04:00
2025-12-04 18:15:14 +04:00
2025-12-04 18:15:14 +04:00
2025-06-29 00:01:35 +02:00
2025-12-04 18:15:14 +04:00
2025-12-04 18:15:14 +04:00
2025-06-29 00:01:35 +02:00
2025-12-04 18:15:14 +04:00
2025-06-18 23:41:22 +04:00
2025-06-17 11:29:45 +04:00
2025-10-21 10:35:44 +04:00
2025-10-02 11:23:15 +04:00
2025-12-04 18:15:14 +04:00
2025-11-14 01:40:49 -07:00
2025-10-07 12:59:09 +04:00
2025-10-21 10:35:44 +04:00
2025-06-22 10:21:19 +04:00
2025-10-07 12:59:09 +04:00
2025-11-18 20:28:27 +04:00
2025-10-21 10:35:44 +04:00
2025-10-04 21:10:56 +04:00
2025-12-04 18:15:14 +04:00
2025-11-18 20:50:42 +04:00
2025-11-18 20:28:27 +04:00
2025-10-21 10:35:44 +04:00
2025-10-07 12:59:09 +04:00
2025-10-02 10:25:41 +04:00
2025-11-14 01:40:49 -07:00
2025-12-04 18:15:14 +04:00
2025-10-07 12:59:09 +04:00
2025-08-17 16:08:52 +00:00
2025-12-15 20:24:44 +08:00
2025-11-18 20:28:27 +04:00
2025-07-13 06:09:31 -06:00
2025-12-04 18:15:14 +04:00
2025-11-18 20:28:27 +04:00
2025-11-18 20:28:27 +04:00
2025-12-04 18:15:14 +04:00
2025-10-02 23:47:44 +04:00
2025-10-07 12:59:09 +04:00
2025-10-07 12:59:09 +04:00
2025-10-07 12:59:09 +04:00
2025-11-14 01:40:49 -07:00
2025-10-07 12:59:09 +04:00
2025-08-22 09:23:59 +04:00
2025-11-18 20:28:27 +04:00
2025-12-04 18:15:14 +04:00
2025-11-18 20:28:27 +04:00
2025-10-21 10:35:44 +04:00
2025-11-18 20:28:27 +04:00
2025-08-22 09:23:59 +04:00
2025-12-04 18:15:14 +04:00
2025-12-05 13:53:39 +08:00
2025-10-07 12:59:09 +04:00
2025-12-04 18:15:14 +04:00
2025-06-21 00:08:11 +04:00
2025-10-17 23:42:32 +04:00
2025-10-17 23:42:32 +04:00
2025-10-02 11:08:56 +04:00
2025-10-04 21:10:56 +04:00
2025-10-07 12:59:09 +04:00
2025-06-16 13:14:53 +04:00