Can a driver give root privileges to a process?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The sys_mlock() call can only be called by a process with root privileges. I'm working on a library that calls a driver on behalf of a non-root process to perform some stuff, and one of these things the driver does is call sys_mlock().

Would it be possible for the driver to give root privileges to the process, at least temporarily, so that the library can call sys_mlock() instead? Obviously, there would be security issues with this, but let's ignore that for the moment.


-- Timur Tabi Staff Software Engineer timur.tabi@xxxxxxxxxxx

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux