You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "Sumit6307 (via GitHub)" <gi...@apache.org> on 2026/03/28 18:47:21 UTC
[I] [GSoC 2026] RFC: Add Multi-User Support for Apache NuttX (NUTTX-8) [nuttx]
Sumit6307 opened a new issue, #18645:
URL: https://github.com/apache/nuttx/issues/18645
### Is your feature request related to a problem? Please describe.
Apache NuttX currently operates as a single-user system. Although structures for uid_t and gid_t exist in some headers, they are not enforced for access control. There is no consistent enforcement of file ownership or mode bits (rwxrwxrwx) at the VFS level.
This creates a significant security gap for networked embedded systems where process isolation and the "least privilege" principle are required. Without this, any process can modify critical system files, configuration, or device nodes, leading to a complete compromise if even a single service is exploited.
Relevant Issue Link: [NUTTX-8 (Jira)](https://issues.apache.org/jira/browse/NUTTX-8)
### Describe the solution you'd like
I propose to implement a POSIX-compliant multi-user model for NuttX that integrates deep kernel identity with VFS enforcement. This involves:
1. Identity Management: Activating and propagating user credentials (ruid, euid, rgid, egid) within struct task_group_s and implementing inheritance logic across the task lifecycle.
2. VFS Permission Engine: A centralized access validation logic within the VFS layer to intercept file/directory operations. Most importantly, this will include Path Traversal Enforcement (validating the Search/Execute bit during resolution).
3. Syscall Implementation: Implementation/hardening of setuid, seteuid, setgid, setegid, getgroups, and setgroups, along with making chmod and chown meaningful for filesystem metadata.
4. Config-Gated Support: All changes will be optional via CONFIG_FS_PERMISSIONS and CONFIG_SCHED_USER_IDENTITY to maintain NuttX's footprint for users who do not require multi-user support.
My goal is to make NuttX behavior more Unix/Linux-like in a way that is enforceable and testable at the kernel boundary. I have already contributed to the filesystem layer via PR #18506 and am currently working on PR #18607 (VFS Profiler).
### Describe alternatives you've considered
1. External Security Middleware: Handling permissions in user-space at the application level. However, this is easily bypassable and does not provide a true kernel-level security invariant.
2. LSM-style (Linux Security Module) hooks: While highly flexible, a full LSM implementation might be too heavyweight for many NuttX targets. A direct, POSIX-aligned integration at the VFS layer provides the best balance of performance and security for an RTOS.
3. Mandatory Access Control (MAC): While powerful, MAC is significantly more complex to configure than the standard discretionary access control (DAC) model that most NuttX users expect from a Unix-like system.
### Verification
- [x] I have verified before submitting the report.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [GSoC 2026] RFC: Add Multi-User Support for Apache NuttX (NUTTX-8) [nuttx]
Posted by "Sumit6307 (via GitHub)" <gi...@apache.org>.
Sumit6307 commented on issue #18645:
URL: https://github.com/apache/nuttx/issues/18645#issuecomment-4148607621
[GSoC2026ProposalSumitKesarwani-Nuttx.pdf](https://github.com/user-attachments/files/26325471/GSoC2026ProposalSumitKesarwani-Nuttx.pdf)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [GSoC 2026] RFC: Add Multi-User Support for Apache NuttX (NUTTX-8) [nuttx]
Posted by "linguini1 (via GitHub)" <gi...@apache.org>.
linguini1 closed issue #18645: [GSoC 2026] RFC: Add Multi-User Support for Apache NuttX (NUTTX-8)
URL: https://github.com/apache/nuttx/issues/18645
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [GSoC 2026] RFC: Add Multi-User Support for Apache NuttX (NUTTX-8) [nuttx]
Posted by "Sumit6307 (via GitHub)" <gi...@apache.org>.
Sumit6307 commented on issue #18645:
URL: https://github.com/apache/nuttx/issues/18645#issuecomment-4148609196
[GSoC2026ProposalSumitKesarwani-Nuttx.pdf](https://github.com/user-attachments/files/26325486/GSoC2026ProposalSumitKesarwani-Nuttx.pdf)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [GSoC 2026] RFC: Add Multi-User Support for Apache NuttX (NUTTX-8) [nuttx]
Posted by "Sumit6307 (via GitHub)" <gi...@apache.org>.
Sumit6307 commented on issue #18645:
URL: https://github.com/apache/nuttx/issues/18645#issuecomment-4148621745
Hi @acassis and the NuttX community,
I have attached my full GSoC 2026 proposal PDF to the original post of this issue for your review.
The document covers the implementation details for NUTTX-8, including the specific changes planned for the task-group structure and the VFS-level permission checking engine.
I would greatly appreciate any feedback or suggestions you might have regarding the technical architecture, particularly on:
1. The centralized VFS access hooks.
2. The approach to handling filesystem-specific metadata fallbacks.
I am eager to iterate on this based on your insights to ensure it aligns perfectly with the project's long-term goals. Thank you!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [GSoC 2026] RFC: Add Multi-User Support for Apache NuttX (NUTTX-8) [nuttx]
Posted by "acassis (via GitHub)" <gi...@apache.org>.
acassis commented on issue #18645:
URL: https://github.com/apache/nuttx/issues/18645#issuecomment-4169615320
Please confirm if you submitted the proposal before the deadline yesterday?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [GSoC 2026] RFC: Add Multi-User Support for Apache NuttX (NUTTX-8) [nuttx]
Posted by "Sumit6307 (via GitHub)" <gi...@apache.org>.
Sumit6307 commented on issue #18645:
URL: https://github.com/apache/nuttx/issues/18645#issuecomment-4170327494
> Please confirm if you submitted the proposal before the deadline yesterday?
@acassis
Yes sir, I submitted the proposal.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [GSoC 2026] RFC: Add Multi-User Support for Apache NuttX (NUTTX-8) [nuttx]
Posted by "Sumit6307 (via GitHub)" <gi...@apache.org>.
Sumit6307 commented on issue #18645:
URL: https://github.com/apache/nuttx/issues/18645#issuecomment-4151898775
> [GSoC2026ProposalSumitKesarwani-Nuttx.pdf](https://github.com/user-attachments/files/26325486/GSoC2026ProposalSumitKesarwani-Nuttx.pdf)
@acassis Sir, have you reviewed my proposal?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org