Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am grabbing the LSM hooks in my own created module and showing into the securityfs psuedo filesystem which is showing correctly.

The path where these hooks are showing is

/sys/kernel/security/(my-own-module-name)/filename

Now for example when mmap is called, I can show its number into securityfs.

What I need is I want to know about the PID(Process ID) who called mmap system call and can show into the same filesystem. If someone want I can put the code here.

This thing is happening in SELinux but that need its source code analysis which is a time consuming job, if someone can help here that ill safe lot of my time. I am using Linux kernel 3.2.

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.