BaaRai
dd80fea140
agent: test that the file tool identity stays on its own thread
...
The new root tests hold a file tool call open and check, at that moment,
that only the call's thread has file system uid 10001: the caller, 32
goroutines locked on other threads and every other thread listed in
/proc keep uid 0, root's groups and root's access, and goroutines the
call starts do not inherit the ids. A panic and runtime.Goexit inside
the call reach the caller and end the thread instead of returning it
to the runtime. Calls under load with live and cancelled contexts never
show the executor's ids on an observer thread, and no thread keeps
them afterwards.
Both mutations that would leak the identity are caught: unlocking the
thread without restoring its ids, and a process-wide setgroups.
The comment of runWithFileIdentity now states the limits: the ids cover
fn's goroutine only, and fn must not start goroutines or programs.
2026-11-22 09:50:09 +01:00
..
2026-10-12 06:26:51 +02:00
2026-11-21 08:10:52 +01:00
2026-11-14 14:19:13 +01:00
2026-11-20 18:11:16 +01:00
2026-11-20 22:18:53 +01:00
2026-11-20 05:35:54 +01:00
2026-11-14 01:02:16 +01:00
2026-11-20 05:35:54 +01:00
2026-11-12 12:35:06 +01:00
2026-11-22 09:50:09 +01:00
2026-11-14 01:02:16 +01:00
2026-11-20 22:18:53 +01:00
2026-11-17 13:04:36 -05:00
2026-11-17 15:50:00 -05:00
2026-11-10 17:45:11 +01:00
2026-11-19 14:23:29 -03:00
2026-10-08 23:14:34 +02:00
2026-11-18 00:41:18 -06:00
2026-11-18 22:40:21 +01:00
2026-11-20 05:35:55 +01:00
2026-10-08 23:14:34 +02:00
2026-10-08 23:14:34 +02:00
2026-11-12 00:37:44 +01:00
2026-10-08 23:14:34 +02:00
2026-11-20 22:18:53 +01:00
2026-11-12 20:48:34 +01:00
2026-11-12 20:48:34 +01:00
2026-11-17 13:04:36 -05:00
2026-11-17 23:44:36 +01:00
2026-11-21 08:10:52 +01:00
2026-10-12 07:30:27 +02:00
2026-07-26 04:27:45 -04:00
2026-09-10 14:08:40 +08:00
2026-11-20 10:03:52 +00:00
2026-11-17 06:14:31 +00:00
2026-11-20 18:48:06 +01:00
2026-11-21 09:50:45 +00:00
2026-11-20 10:03:52 +00:00
2026-11-21 16:29:53 +01:00
2026-11-22 09:50:09 +01:00
2026-11-22 09:50:09 +01:00
2026-11-22 09:50:09 +01:00
2026-11-22 09:50:09 +01:00
2026-11-22 09:50:09 +01:00
2026-11-22 09:50:09 +01:00
2026-11-20 05:35:54 +01:00
2026-11-20 05:35:54 +01:00
2026-11-20 05:35:54 +01:00
2026-11-22 09:50:09 +01:00
2026-10-12 07:29:59 +02:00
2026-11-21 14:29:23 +01:00
2026-10-12 06:25:35 +02:00
2026-11-20 22:18:53 +01:00
2026-11-21 21:30:58 +03:00
2026-11-20 22:18:53 +01:00
2026-11-21 21:30:58 +03:00
2026-11-21 20:58:25 +03:00
2026-11-21 20:58:25 +03:00
2026-11-12 07:37:58 +01:00
2026-11-10 22:14:24 +01:00
2026-11-19 14:23:29 -03:00
2026-11-21 09:50:45 +00:00
2026-11-15 22:26:21 +01:00
2026-11-15 22:26:21 +01:00
2026-11-15 19:08:49 +01:00
2026-11-15 01:23:56 +01:00
2026-11-15 01:23:56 +01:00
2026-10-12 06:45:21 +02:00
2026-11-21 08:14:56 +01:00
2026-11-21 08:10:52 +01:00
2026-11-21 08:10:52 +01:00
2026-11-21 09:50:45 +00:00
2026-11-14 14:19:13 +01:00
2026-11-14 14:19:13 +01:00
2026-11-14 14:19:13 +01:00
2026-11-14 14:19:13 +01:00
2026-11-12 00:37:44 +01:00
2026-08-25 09:40:05 -04:00
2026-11-08 17:11:43 +01:00
2026-11-03 23:20:21 +01:00
2026-10-08 23:14:34 +02:00
2026-08-25 11:39:24 -04:00
2026-11-17 12:56:13 +00:00
2026-11-20 05:35:54 +01:00
2026-11-18 00:41:18 -06:00
2026-11-18 00:41:18 -06:00
2026-11-15 00:57:13 +01:00
2026-11-20 10:03:52 +00:00
2026-10-12 06:26:51 +02:00
2026-11-19 14:23:29 -03:00
2026-11-20 05:35:55 +01:00
2026-08-24 19:29:00 +08:00
2026-11-21 08:10:52 +01:00
2026-11-20 22:54:57 +01:00
2026-11-22 09:50:09 +01:00
2026-11-14 01:02:16 +01:00
2026-09-07 11:21:50 -04:00
2026-11-15 15:32:07 +01:00
2026-11-15 15:32:07 +01:00
2026-11-20 05:35:54 +01:00
2026-09-10 21:42:25 +08:00
2026-11-20 05:35:55 +01:00
2026-11-20 05:35:55 +01:00
2026-10-21 14:46:56 +02:00
2026-11-11 00:34:55 +01:00
2026-07-26 04:27:45 -04:00
2026-11-10 17:45:11 +01:00
2026-11-18 00:41:18 -06:00
2026-11-20 06:38:10 +01:00
2026-11-10 09:46:49 +01:00
2026-11-20 10:03:52 +00:00
2026-11-14 13:46:03 +01:00
2026-11-12 15:42:31 +01:00
2026-11-02 09:05:03 +03:00
2026-10-08 23:14:34 +02:00
2026-11-21 08:10:52 +01:00
2026-10-08 23:14:34 +02:00
2026-11-21 08:50:26 +01:00
2026-11-22 01:02:23 +00:00
2026-11-12 14:46:44 +01:00
2026-11-19 14:23:29 -03:00
2026-11-11 21:59:09 +01:00
2026-11-08 18:15:33 +01:00
2026-11-11 19:19:55 +01:00
2026-11-14 23:30:06 +01:00
2026-11-12 16:33:14 +01:00
2026-11-14 23:30:06 +01:00
2026-11-21 08:10:52 +01:00
2026-08-29 21:55:27 +08:00
2026-11-21 09:50:45 +00:00
2026-11-14 14:19:13 +01:00