lsm一些结构体


1. struct linux_binprm; // 程序
2. struct cred; // 进程相关数据结构
3. struct rlimit; // 进程相关数据结构
4. struct siginfo; // 信号
5. struct sembuf; // 信号量
6. struct kern_ipc_perm; // Semaphore信号,共享内存段,或者消息队列
7. struct audit_context; // 审计
8. struct super_block; // 文件系统
9. struct inode; // 管道,文件,或者Socket套接字
10. struct dentry; // 与文件相关的目录项对象,指向相关目录项的指针
11. struct file; // 文件系统相关数据结构
12. struct vfsmount; // 文件系统相关数据结构
13. struct path; // 文件路径
14. struct qstr; // 是一个内核字符串的包装器,它存储了实际的char*字符串以及字符串长度和散列值,这使得更容易处理查找工作。 要注意的是,这里并不存储绝对路径,而是只有路径的最后一个分量,例如对/usr/bin/emacs只存储emacs,因为在linux中,路径信息隐含在了dentry层次链表结构中了 
15. struct iattr; // inode相关?
16. struct fown_struct; // 该结构的作用是通过信号进行I/O时间通知的数据
17. struct file_operations; // 指向文件操作表的指针, 定义在linux/include/linux/fs.h中,其中包含着与文件关联的操作
18. struct msg_msg; // 单个的消息
19. struct xattr; // 文件系统扩展属性
20. struct xfrm_sec_ctx; //  安全上下文, 加密时使用。解密呢?
21. struct mm_struct; // 进程地址空间

https://www.jianshu.com/p/9a640329449b

posted on 2021-04-07 21:08  lydstory  阅读(149)  评论(0)    收藏  举报

导航