Skip to content

0.22.1 --- the confinement rules are as long as the grants make them - #44

Merged
Sunrisepeak merged 2 commits into
mainfrom
openkal-0.24.1
Nov 6, 2026
Merged

Sunrisepeak merged 2 commits into
mainfrom
openkal-0.24.1

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

Part of the openkal 0.24.1 correction group (mcpp design record 2026-11-07 §4.2.3).

  • src/process.cpp: the sandbox profile was a fixed 16 KiB buffer. It names every grant in the write rule and in the read rule, so sixteen grants near MAXPATHLEN exceeded it and kal_process_spawn returned kal_err_invalid for a well-formed request. The profile is now allocated to the bound of what build can write for this start (fixed rules, the program's quoted name, and each grant quoted twice). Allocation failure reports kal_err_no_memory; overflow, which the bound excludes, kal_err_no_space.
  • tests/openkal_0_23.cpp: a confined start with sixteen grants, the last named by more than 950 bytes, must run (the started program reports its resource preference, 72).
  • openkal = "^0.24.0" (design §4.2.2, A1).

Co-authored-by: speak-agent

Sunrisepeak and others added 2 commits November 7, 2026 05:10
The sandbox profile was a fixed 16 KiB; sixteen grants named near
MAXPATHLEN exceeded it and the start was refused with kal_err_invalid. The
profile is now sized to the bound of what the rules can hold for the
grants of the start; an allocation failure reports kal_err_no_memory and an
overflow, which the bound excludes, kal_err_no_space. The 0.23 test starts
a confined program with sixteen grants, the last named by more than 950
bytes. OpenKal is the compatible range ^0.24.0.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
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