You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "patacongo (via GitHub)" <gi...@apache.org> on 2023/03/29 19:56:32 UTC

[GitHub] [nuttx] patacongo commented on pull request #8924: binfmt: set default uid for builtin app

patacongo commented on PR #8924:
URL: https://github.com/apache/nuttx/pull/8924#issuecomment-1489218982

   It would help to understand exactly what you are trying to accomplish to forcing some UID defined in a configuration.
   
   NuttX supports standard /etc/passwd and /etc/group files for assigning UIDs and GIDs to users.  These are currently only used in NSH logins and do not for set UID and GID, but they should!  See configuration sim:nsh, boards/sim/sim/sim/include/nsh_romfsimg.h, and boards/sim/sim/sim/src/etc.
   
   The behavior that I would expect is that the UID and GID defaut to zero (root) but are set at login to the values in /etc.  Tasks run (in memory or in the file system) would (usually) take the UID and GID of the parent. But could be changed with ST_NOSUID logic or setuid() and setgid().
   


-- 
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