hujun260 opened a new pull request, #9497:
URL: https://github.com/apache/nuttx/pull/9497

   ## Summary
   In embedded development environments, due to the lack of address isolation 
between processes, fd may be passed between processes and lead to misuse,
   
   We have designed an fd cross-process automatic detection tool, 
fdcheck_protect returns the fd containing the pid information, indicating that 
the ownership of the current fd belongs to the pid and is not allowed to be 
used by other processes. fdcheck_restore will obtain the true fd and check if 
the ownership of the fd is legal
   
   For ease of understanding, let's give an example where the following 
information is represented in 32-bit binary format
   
   fd        00000000 00000000 00000000 10001010
   pid       00000000 00000000 00000011 01010101
   ret       00000000 00000011 01010101 10001010
   
   ## Impact
   none
   
   ## Testing
   ostest
   
   


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

Reply via email to