8fe8417ffb
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 Signed-off-by: hujun5 <hujun5@xiaomi.com> |
||
---|---|---|
.. | ||
Make.defs | ||
fs_files.c | ||
fs_foreachinode.c | ||
fs_inode.c | ||
fs_inodeaddref.c | ||
fs_inodebasename.c | ||
fs_inodefind.c | ||
fs_inodefree.c | ||
fs_inodegetpath.c | ||
fs_inoderelease.c | ||
fs_inoderemove.c | ||
fs_inodereserve.c | ||
fs_inodesearch.c | ||
inode.h |