Repository navigation
0.22.1 --- the confinement rules are as long as the grants make them - #44
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 nearMAXPATHLENexceeded it andkal_process_spawnreturnedkal_err_invalidfor a well-formed request. The profile is now allocated to the bound of whatbuildcan write for this start (fixed rules, the program's quoted name, and each grant quoted twice). Allocation failure reportskal_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