Abhishekmishra2808 opened a new pull request, #19852: URL: https://github.com/apache/nuttx/pull/19852
*Note: Please adhere to [Contributing Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).* ## Summary Documents the UNIX setuid-on-exec `sudo` helper: kernel raises euid from the file owner on exec, userspace checks the password, then `setresuid`/`execvp` run the command. Adds an NSH `sudo` command page and a short setuid-on-exec note in the user-identity guide. Companion apps change: https://github.com/apache/nuttx-apps/pull/3728 ## Impact Documentation only. No kernel API or runtime change. Describes `CONFIG_SYSTEM_SUDO` as an application, not an NSH builtin. ## Testing Host: Linux x86_64 (WSL2), gcc 13.3.0. Target: `sim:login` with `CONFIG_SYSTEM_SUDO=y` (apps PR 3728). Docs built as part of the same tree; runtime shows the setuid helper installed: ``` login: root password: User Logged-in! NuttShell (NSH) NuttX-13.0.0 nsh# id uid=0(root) gid=0(root) nsh# ls -l /bin/sudo -rwsr-xr-x root root 0 /bin/sudo ``` -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
