Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Baruch Siach <baruch@tkos.co.il>
To: buildroot@busybox.net
Subject: [Buildroot] How can I compile a module into the kernel?
Date: Sun, 21 Oct 2018 20:47:05 +0300	[thread overview]
Message-ID: <87in1v8a5i.fsf@tkos.co.il> (raw)
In-Reply-To: <20181021193349.41779f48@windsurf>

Hi Thomas, Patrick,

Thomas Petazzoni writes:
> On Sun, 21 Oct 2018 13:20:58 -0400, Patrick Doyle wrote:
>> Is it possible to permanently disable loadable modules from user space
>> at runtime?  Or to only load signed modules?  Or do I need to look
>> more carefully at selinux?
>
> Yes, you can lock to only load signed modules, and I think you can also
> lock to no longer load any modules, i.e you can load a few modules at
> boot time, and then ask the kernel to no longer load any other module.

See the 'modules_disabled' sysctl. It's documented in
Documentation/sysctl/kernel.txt.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

  reply	other threads:[~2018-10-21 17:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-20 23:27 [Buildroot] How can I compile a module into the kernel? Patrick Doyle
2018-10-21  7:55 ` Thomas Petazzoni
2018-10-21 17:20   ` Patrick Doyle
2018-10-21 17:33     ` Thomas Petazzoni
2018-10-21 17:47       ` Baruch Siach [this message]
2018-10-22  0:56         ` Patrick Doyle

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=87in1v8a5i.fsf@tkos.co.il \
    --to=baruch@tkos.co.il \
    --cc=buildroot@busybox.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox