patacongo commented on code in PR #8924:
URL: https://github.com/apache/nuttx/pull/8924#discussion_r1152177168


##########
binfmt/binfmt_execmodule.c:
##########
@@ -266,6 +266,10 @@ int exec_module(FAR struct binary_s *binp,
 
   pid = tcb->cmn.pid;
 
+#ifdef CONFIG_SCHED_USER_IDENTITY
+  tcb->cmn.group->tg_uid = binp->proguid;

Review Comment:
   > I think that is depended on the fork and setuid policy from app. But we 
can set a default UID when task is creating.
   
   Everything I have read states that the UID should be the UID of the parent.  
setuid() should be able to change the UID.
   
   In Unix systems there is an effective UID (euid) and a real UID (ruid).  
Both are inherited from the parent.  The child can change is effective UID but 
not its real UID.
   
   I certainly think we as a project need to agree on this policy before we 
commit to it.
   



-- 
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-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to