Re: Invoke Firefox from kernel space

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

 



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

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[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