Re: Initiating a user level script from kernel space

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

 



On Mon, Apr 11, 2005 at 13:17:28 +0530, Manu Jose wrote:
> Hi,
>         What is the simplest method to initiate a  ' bash script in
> user level ' from a kernel module .?

call_usermodehelper()

It invokes an executable, which includes #! scripts and misc binaries.
Don't invoke commands passed from userland this way for security
reasons (it will run as root). IIRC it is asynchronous (starts the
process and returns immediately) and you don't get stdin/stdout/stderr
nor return value (will be collected by init), so you need the script to
call you back in some way (proc file, sysctl, device, netlink...).

-------------------------------------------------------------------------------
						 Jan 'Bulb' Hudec <bulb@xxxxxx>

Attachment: signature.asc
Description: Digital signature


[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