Chris Mason
99aff23783
core/exec-invoke: log write() allow-list widening
...
apply_syscall_filter() unconditionally inserts the write() syscall
into c->syscall_filter when exec_fd or handoff_timestamp_fd is in
use, so the parent can receive the exec status / handoff timestamp
from the child. When the unit configured a positive
SystemCallFilter= allow-list that deliberately omits write(), the
resulting widening of the operator's policy happens silently with
no trace in the journal.
Emit a log_debug() before the seccomp_filter_set_add_by_name() call
when syscall_allow_list is true, so the widening is at least
observable to operators inspecting the unit's debug log.
While here, document that mutating c->syscall_filter through a
'const ExecContext *c' is intentional: apply_syscall_filter() runs
only in the post-fork child, which owns a private copy of the
address space, so the hashmap change is never observed by the
manager.
No functional change for the allow-list itself; write() is still
added exactly as before.
Fixes: 84b79215cc ("core: do not filter out write() if required in the very late stage")
Assisted-by: kres (claude-opus-4-7)
Signed-off-by: Chris Mason <clm@meta.com >
2026-05-22 22:19:35 +02:00
..
2025-11-22 10:19:41 +01:00
2025-10-17 21:11:23 +09:00
2026-05-21 10:33:03 +09:00
2026-01-02 04:05:45 +09:00
2026-05-18 21:17:38 +00:00
2025-12-24 07:37:58 +01:00
2026-04-13 13:20:43 +02:00
2026-04-12 15:27:15 +02:00
2025-12-15 08:50:13 +09:00
2026-05-18 21:17:38 +00:00
2026-05-18 21:17:38 +00:00
2026-05-13 10:36:12 +02:00
2026-05-18 21:17:38 +00:00
2026-05-18 21:17:38 +00:00
2026-05-18 21:42:56 +02:00
2026-05-18 21:42:56 +02:00
2025-10-17 21:11:23 +09:00
2026-05-13 10:36:12 +02:00
2025-12-20 15:50:47 +01:00
2026-01-02 04:05:45 +09:00
2025-11-26 16:22:50 +09:00
2025-11-26 16:22:50 +09:00
2026-05-18 21:42:56 +02:00
2025-11-26 16:22:50 +09:00
2026-05-18 12:29:12 +02:00
2025-11-26 16:22:50 +09:00
2025-11-26 16:22:50 +09:00
2025-11-26 16:22:50 +09:00
2025-11-26 16:22:50 +09:00
2025-11-26 16:22:50 +09:00
2026-05-15 14:01:57 +09:00
2025-12-18 17:37:26 +01:00
2025-11-26 16:22:50 +09:00
2025-11-26 16:22:50 +09:00
2025-11-26 19:02:31 +09:00
2025-11-26 16:22:50 +09:00
2025-11-26 16:22:50 +09:00
2025-11-26 16:22:50 +09:00
2026-02-10 21:54:12 +01:00
2025-11-26 16:22:50 +09:00
2025-11-26 16:22:50 +09:00
2025-11-26 16:22:50 +09:00
2025-11-26 16:22:50 +09:00
2025-11-26 16:22:50 +09:00
2025-11-26 16:22:50 +09:00
2025-11-26 16:22:50 +09:00
2025-11-26 19:02:31 +09:00
2025-11-26 16:22:50 +09:00
2026-02-26 14:23:23 +01:00
2025-11-26 16:22:50 +09:00
2026-01-19 17:49:29 +01:00
2026-01-06 17:59:10 +01:00
2026-05-05 17:22:26 +02:00
2025-12-15 08:50:13 +09:00
2026-01-03 21:25:02 +01:00
2026-01-02 04:04:19 +09:00
2026-03-30 14:18:56 +02:00
2026-01-02 04:05:45 +09:00
2026-05-21 10:33:03 +09:00
2026-02-10 21:54:12 +01:00
2026-05-22 22:19:35 +02:00
2026-05-18 21:42:56 +02:00
2026-05-21 10:14:08 +01:00
2026-05-21 10:14:08 +01:00
2026-04-30 11:12:33 +01:00
2025-11-04 10:55:04 +01:00
2026-05-18 02:32:39 +09:00
2026-05-21 10:33:03 +09:00
2025-10-16 17:00:29 +02:00
2026-05-21 10:33:03 +09:00
2026-05-05 17:22:26 +02:00
2026-04-28 09:01:54 +02:00
2026-04-27 13:49:24 +02:00
2026-01-02 04:05:45 +09:00
2026-03-20 19:25:55 +00:00
2025-12-15 08:50:13 +09:00
2026-05-21 18:30:16 +02:00
2026-05-18 21:42:56 +02:00
2026-05-18 21:42:56 +02:00
2026-05-21 10:14:08 +01:00
2026-05-15 13:46:08 +01:00
2026-05-21 10:33:03 +09:00
2025-10-17 21:11:23 +09:00
2025-11-26 19:02:31 +09:00
2025-11-26 19:02:31 +09:00
2026-05-15 13:46:08 +01:00
2026-05-21 10:33:03 +09:00
2026-05-15 13:46:08 +01:00
2026-05-21 10:33:03 +09:00
2026-05-21 10:33:03 +09:00
2026-01-02 04:05:45 +09:00
2026-05-21 10:33:03 +09:00
2026-04-10 15:08:02 +02:00
2025-10-22 16:20:44 +02:00
2026-05-21 10:33:03 +09:00
2026-01-02 04:05:45 +09:00
2026-05-21 18:02:05 +02:00
2026-01-02 04:05:45 +09:00
2025-11-26 16:22:50 +09:00
2025-11-26 16:22:50 +09:00
2026-04-22 17:41:42 +02:00
2026-03-20 21:38:08 +01:00
2026-05-21 10:14:08 +01:00
2026-05-15 13:46:08 +01:00
2025-11-26 19:02:31 +09:00
2026-01-02 04:05:45 +09:00
2025-12-15 08:50:13 +09:00
2026-03-30 14:18:56 +02:00
2025-10-17 21:11:23 +09:00
2026-05-21 18:02:05 +02:00
2026-01-02 04:05:45 +09:00
2026-05-13 22:44:52 +01:00
2026-01-02 04:05:45 +09:00
2026-05-15 14:01:57 +09:00
2025-09-23 03:46:55 +09:00
2025-12-15 08:50:13 +09:00
2026-03-30 14:18:56 +02:00
2026-01-02 04:05:45 +09:00
2025-12-31 19:33:19 +01:00
2025-11-12 23:47:38 +01:00
2025-10-17 21:11:23 +09:00
2026-04-12 15:27:15 +02:00
2025-11-26 19:02:31 +09:00
2026-05-06 12:04:51 +01:00
2025-11-26 19:02:31 +09:00
2026-05-21 10:33:03 +09:00
2026-05-15 13:46:08 +01:00
2026-05-15 14:01:57 +09:00
2026-04-16 02:15:52 -07:00
2026-04-16 02:15:52 -07:00
2026-05-18 21:42:56 +02:00
2025-10-17 21:11:23 +09:00
2026-05-15 00:02:01 -07:00
2026-05-15 00:02:01 -07:00
2026-03-29 20:32:15 +02:00
2025-10-17 21:11:23 +09:00
2026-04-28 12:37:21 +01:00
2025-10-16 19:47:40 +01:00
2026-05-19 11:05:55 +02:00
2026-05-19 11:05:55 +02:00
2026-04-15 23:37:55 -07:00
2026-04-15 23:37:55 -07:00
2026-05-03 10:23:55 +01:00
2026-03-26 15:21:10 +01:00
2026-05-12 22:56:04 +02:00
2026-02-16 09:44:57 +01:00
2026-04-16 02:15:52 -07:00
2026-04-16 02:15:52 -07:00
2026-05-11 03:03:32 -07:00
2026-05-11 03:03:32 -07:00
2026-05-12 08:51:26 -07:00
2026-05-11 04:32:03 -07:00
2026-05-15 00:02:01 -07:00
2026-05-15 00:02:01 -07:00
2026-05-12 08:55:33 -07:00
2026-05-12 08:55:33 -07:00
2026-05-11 04:32:14 -07:00
2026-05-11 04:32:14 -07:00
2026-05-12 08:51:26 -07:00
2026-05-11 04:32:14 -07:00
2026-05-20 16:11:45 +02:00
2026-04-27 13:49:24 +02:00
2026-05-20 17:22:18 +09:00
2026-02-16 09:44:58 +01:00