Hello,
I have a device driver module which does a register_chardev(). In the driver open() function I wish to be able to determine the pid or pgid of the process which is attempting to open the device node. Is this possible? Does anyone have any ideas of where to begin?
I am assuming this should somewhat secure my device node to only allow my applications to use it, since you cannot migrate a process to a new process group unless they are in the same session.