Conversation
A child starts with all three, a grandchild inherits a dropped set, and task_create() and mount() fail with EPERM once SPAWN and RAWIO are gone. The parent keeps its full set. Built only with CONFIG_SCHED_CAPABILITIES (apache/nuttx#20417), so small boards that turn it off, and trees without it, are untouched. Signed-off-by: Royyan Zahir <royzah@gmail.com>
xiaoxiang781216
approved these changes
Oct 3, 2026
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.
Note: Please adhere to Contributing Guidelines.
Summary
ostest coverage for process capabilities, apache/nuttx#20417 (
PR_CAPS_GET,PR_CAPS_DROP;PR_CAP_SPAWN,PR_CAP_RAWIO,PR_CAP_ADMIN).task_create()fails withEPERMmount()fails withEPERM;ENOSYSwhen the build has no mountable fs, since there is nothing to guardBuilt only with
CONFIG_SCHED_CAPABILITIES,CONFIG_SCHED_WAITPIDand a flat or protected build (task_create()). The option comes with apache/nuttx#20417, so this compiles to nothing until that merges, and on boards that turn it off.Impact
testing/ostestonly. No change whereCONFIG_SCHED_CAPABILITIESis unset.Testing
Host: Ubuntu 24.04.3, x86_64. Builds and runs in
ghcr.io/apache/nuttx/apache-nuttx-ci-linux(GCC 12.3).sim:ostest,CONFIG_TESTING_OSTEST_LOOPS=1.sim:ostestcaps_test: PASSED;ostestexits 0sim:ostest+CONFIG_FS_TMPFScaps_test: PASSED; with a mountable fs,mount()reaches the RAWIO check;ostestexits 0sim:ostestcaps.cnot built;ostestexits 0tools/checkpatch.sh -c -u -m -gclean. The logs below are cut to the boot, the caps test and the end; each full run is about 4,200 lines, happy to post them.apache/nuttx#20417,
sim:ostest+CONFIG_FS_TMPFSapache/nuttx#20417,
sim:ostestmaster,
sim:ostest