我已经编写了一个读写/proc文件的内核模块,它工作得很好。现在我想对它使用权限,但当我为下面显示的权限编写函数时,它给了我一个错误。home/karan/practice/procf/testproc1.c:50:32: error: ‘struct task_struct’ has no member named ‘euid'
我知道在get_current()中#定义了current。为什么会发生这种情况?是否有从get_curre
在我的代码中,我想要获取当前任务的task_struct现在我有了一个进程的PID,我想检查当前进程是否是它的父进程之一(在某种程度上)有现成的函数吗?或者我必须造一个,PSEUDO CODE:
target_process = get_task_struct_ofis one of my kids所以主要有两个问题:
1)有没有现成的