From: Greg KH <greg@kroah.com>
To: Sohaib Mhmd <xunilams@gmail.com>
Cc: kernelnewbies@kernelnewbies.org
Subject: Re: Invoke Firefox from kernel space
Date: Fri, 23 Oct 2020 06:38:58 +0200 [thread overview]
Message-ID: <20201023043858.GA21788@kroah.com> (raw)
In-Reply-To: <CAL06vpHQXuO_9LWz5t0bJ00eJhBheCSTq7B-QkgfKzE8soeZrw@mail.gmail.com>
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@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
prev parent reply other threads:[~2020-10-23 4:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-22 23:35 Invoke Firefox from kernel space Sohaib Mhmd
2020-10-23 4:38 ` Greg KH [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201023043858.GA21788@kroah.com \
--to=greg@kroah.com \
--cc=kernelnewbies@kernelnewbies.org \
--cc=xunilams@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.