Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/hive-c0re/src/agent_config
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas fb5eb9edc1 agents: read every MemoryMax= size systemd enforces
`parse_bytes` knew only K/M/G/T, in either case. A size with the bare
`B` unit (`1048576B`), which `validate_memory_max` stores and systemd
enforces, became `infinity` in the agent's cap file: the cgroup was
capped while the agent was told there was no cap. It now takes exactly
the single-term forms systemd's `parse_size` does: no suffix, `B`, or
K/M/G/T/P/E, case-sensitive. Lowercase units and `4GB`, which systemd
refuses and so leaves the unit uncapped, read as `infinity` too.

A test runs every suffix form the validator accepts through it and
checks the stored value parses to the right byte count.

Part of #5081 (slice S0-2).
2026-10-12 10:59:12 +02:00
..
capabilities.rs hive-c0re: an unreadable capabilities file denies ManageRootAgent mounts 2026-09-26 21:11:54 +02:00
limits.rs refs: repoint seven comments that name files which have moved 2026-09-02 08:58:31 +02:00
mod.rs hive-c0re: fail on an unparseable resource-limits or topology file, write both atomically 2026-09-27 02:41:38 +02:00
resource_limits.rs agents: read every MemoryMax= size systemd enforces 2026-10-12 10:59:12 +02:00
tool_groups.rs tool_groups: add test for the case-insensitive is_known match 2026-10-09 00:50:27 +02:00
topology.rs hive-c0re: fail on an unparseable resource-limits or topology file, write both atomically 2026-09-27 02:41:38 +02:00