Skip to content

Fix/568 existing validators - #571

Merged
SJrX merged 4 commits into
242.xfrom
fix/568-existing-validators
Oct 24, 2026
Merged

SJrX merged 4 commits into
242.xfrom
fix/568-existing-validators

Conversation

@SJrX

@SJrX SJrX commented Oct 24, 2026

Copy link
Copy Markdown
Owner

No description provided.

SJrX and others added 4 commits October 24, 2026 15:50
Fixes values the plugin flagged although systemd accepts them, and values it
accepted although systemd rejects them, for ExecStart= and the other command
keys, WorkingDirectory=, EnvironmentFile=, Standard{Input,Output,Error}=,
IOSchedulingClass=, IO*Max= limits, Memory*= limits, CPUAffinity=,
CapabilityBoundingSet=/AmbientCapabilities=, SystemCallErrorNumber=, Nice=,
LimitNICE= and other rlimits, signals, ReadOnlyPaths= and friends, and
RootImagePolicy= and friends. Unknown %-specifiers are now refused and %% is
treated as a literal %.

Part of #568. Verdicts were checked against systemd's own parsers built at
the pinned commit 0f0682b773 (condition values against src/shared/condition.c,
since systemd only evaluates them at unit start). Values systemd accepts at
parse time but rejects only later are accepted (see #565).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…#568)

Fixes dependency keys (OnFailure=, Wants=, After=, ...) with specifiers,
FailureAction=/SuccessAction=/JobTimeoutAction= values such as halt-force,
trigger units, timeouts and cgroup settings, so they match what systemd
accepts.

Part of #568. Verdicts were checked against systemd's own parsers built at
the pinned commit 0f0682b773 (condition values against src/shared/condition.c,
since systemd only evaluates them at unit start). Values systemd accepts at
parse time but rejects only later are accepted (see #565).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
#568)

Fixes ERSPANHardwareId= and other integer settings that rejected hex or
signed spellings systemd accepts, FooOverUDP Protocol=, Xfrm InterfaceId=,
DHCP SocketPriority= bounds and related network-file settings.

Part of #568. Verdicts were checked against systemd's own parsers built at
the pinned commit 0f0682b773 (condition values against src/shared/condition.c,
since systemd only evaluates them at unit start). Values systemd accepts at
parse time but rejects only later are accepted (see #565).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…cks (#568)

Re-checked every flagged condition value against systemd's runtime condition
code, fixed the values that can work, and pinned the ones that can never work
(for example ConditionVirtualization= with several words) with tests.

Part of #568. Verdicts were checked against systemd's own parsers built at
the pinned commit 0f0682b773 (condition values against src/shared/condition.c,
since systemd only evaluates them at unit start). Values systemd accepts at
parse time but rejects only later are accepted (see #565).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Unit Test Results (grammar engine true)

1 899 tests   1 899 ✅  1m 8s ⏱️
  528 suites      0 💤
  528 files        0 ❌

Results for commit 2c66c5d.

@github-actions

Copy link
Copy Markdown

Unit Test Results (grammar engine false)

1 899 tests   1 899 ✅  1m 26s ⏱️
  528 suites      0 💤
  528 files        0 ❌

Results for commit 2c66c5d.

@SJrX
SJrX merged commit 996a8bc into 242.x Oct 24, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant