Invoke Firefox from kernel space

Greg KH greg at kroah.com
Fri Oct 23 00:38:58 EDT 2020


On Fri, Oct 23, 2020 at 01:35:53AM +0200, Sohaib Mhmd wrote:
> Hello,
> 
> I tried to use: call_usermodehelper
> It worked fine with
> <https://github.com/smalinux/Kernel-hacking-101/blob/master/invoke-userlevel-app.c>
> /sbin/shutdown and /bin/touch
> but with /bin/firefox i got kernel oops:
> Any clarification, thanks
> 
> [ 2258.760627] invoke_userlevel_app: module verification failed: signature
> > and/or required key missing - tainting kernel
> > [ 2258.918529] do_init_module: 'invoke_userlevel_app'->init suspiciously
> > returned 256, it should follow 0/-E convention
> >                do_init_module: loading module anyway...

The kernel module you wrote is not handling errors properly, why ignore
the kernel's messages here?

And how can the kernel invoke a graphical program?  Please look up how
these types of programs work to see that the kernel can not directly
call them, sorry.

good luck!

greg k-h



More information about the Kernelnewbies mailing list