如何从"struct linux_binprm"获取argv; [英] How to get argv from "struct linux_binprm"

查看:142
本文介绍了如何从"struct linux_binprm"获取argv;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用bprm_check_security lsm挂钩来检查是否允许运行具有特定参数的进程.在文档中,我看到argv应该在@bprm中可用(类型为struct linux_binprm),但是我没有找到任何从结构中提取argv的方法.

I want to use bprm_check_security lsm hook to check whether a process with specific arguments is allowed to run. In the documentation I saw that the argv should be available in @bprm (of type struct linux_binprm), but I didn't find any ways to extract the argv from the struct.

有什么想法吗?

推荐答案

bool tomoyo_dump_page(struct linux_binprm * bprm,unsigned long pos,struct tomoyo_page_dump * dump)

bool tomoyo_dump_page(struct linux_binprm *bprm, unsigned long pos, struct tomoyo_page_dump *dump)

这篇关于如何从"struct linux_binprm"获取argv;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆