sched/group: add POSIX saved UID/GID APIs and pseudo-fs ownership - #19578
Open
Abhishekmishra2808 wants to merge 6 commits into
Open
sched/group: add POSIX saved UID/GID APIs and pseudo-fs ownership#19578Abhishekmishra2808 wants to merge 6 commits into
Abhishekmishra2808 wants to merge 6 commits into
Conversation
Abhishekmishra2808
requested review from
Donny9,
GUIDINGLI,
jerpelea,
pkarashchenko,
pussuw,
raiden00pl and
xiaoxiang781216
as code owners
July 29, 2026 13:58
acassis
requested changes
Jul 29, 2026
|
acassis
previously approved these changes
Jul 29, 2026
Implement POSIX real/effective/saved credential getters and paired setters in the task group layer, with libc stubs and syscalls. Signed-off-by: Abhishek Mishra <mishra.abhishek2808@gmail.com>
Set i_owner and i_group from the caller's effective credentials in inode_reserve(), covering IPC objects, FIFOs, and pseudo-files. Signed-off-by: Abhishek Mishra <mishra.abhishek2808@gmail.com>
Use inode_checkopenperm() for message queues, named semaphores, and shm, and reallocate mqueue state when reopening after the last close. Signed-off-by: Abhishek Mishra <mishra.abhishek2808@gmail.com>
Accept user:hash:uid:gid:home lines produced by mkpasswd in addition to the six-field gecos form, and raise the default line buffer to 256. Signed-off-by: Abhishek Mishra <mishra.abhishek2808@gmail.com>
Document setreuid/setregid, getresuid/getresgid, and how inode_reserve assigns owner and group for pseudo-filesystem objects. Signed-off-by: Abhishek Mishra <mishra.abhishek2808@gmail.com>
When CONFIG_TESTING_OSTEST_MULTIUSER is enabled, default CONFIG_LIBC_PASSWD_FILEPATH to a writable tmpfs path used by the ostest multiuser passwd sub-test. Signed-off-by: Abhishek Mishra <mishra.abhishek2808@gmail.com>
Abhishekmishra2808
force-pushed
the
multiuser
branch
from
July 29, 2026 16:45
ffb3064 to
567d50f
Compare
xiaoxiang781216
approved these changes
Jul 29, 2026
acassis
approved these changes
Jul 29, 2026
Contributor
Author
|
After merging this, please re-run the CI at apache/nuttx-apps#3677 |
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.
Summary
getresuid,getresgid,setreuid, andsetregidsyscallsDocumentation/implementation/user_identity.rstImpact
Adds POSIX saved UID/GID syscalls (getresuid, getresgid, setreuid, setregid) and completes multi-user support for pseudo-FS inode ownership and IPC open permission checks. Extends libc passwd parsing for NuttX 5-field records.
New behavior is gated behind CONFIG_SCHED_USER_IDENTITY and existing CONFIG_FS_PERMISSION options.
Testing