From: Mimi Zohar <zohar@linux.vnet.ibm.com>
To: "Bruno E. O. Meneguele" <brdeoliv@redhat.com>
Cc: linux-integrity@vger.kernel.org, lwang@redhat.com
Subject: Re: IMA appraisal against xz-compressed modules
Date: Thu, 19 Oct 2017 16:13:47 -0400 [thread overview]
Message-ID: <1508444027.3268.53.camel@linux.vnet.ibm.com> (raw)
In-Reply-To: <20171019193101.GA2583@glitch>
On Thu, 2017-10-19 at 17:31 -0200, Bruno E. O. Meneguele wrote:
> On 19-10, Mimi Zohar wrote:
> > > Right, but it's also possible to note that CONFIG_MODULE_SIG_FORCE is
> > > handled on kernel/module.c and has a kernel cmdline param,
> > > module.sig_enforce, that is read in case CONFIG_MODULE_SIG_FORCE is not
> > > set. Wouldn't be better ima_read_file depend on this cmdline param
> > > instead directly on the CONFIG? That way kernels compiled without
> > > CONFIG_MODULE_SIG_FORCE set as default would have the option to enable
> > > the kernel param and use their normal policy (MODULE_CHECK).
> > >
> > > What do you think?
> >
> > I wasn't aware of the module_param. Thank you for pointing it out.
> > "sig_enforce" is currently defined as static. Should it be defined
> > as __initdata?
> >
>
> Well, at first I thought it could stay as it is and just create a
> "getter" function, like "is_module_sig_enforced()", and use it on
> ima_main.c through module.h, since this code would be called to every
> module loaded in runtime.
>
> If it's ok to you I can try to write a patch against integrity-next and
> see how it behaves.
Thanks!
next prev parent reply other threads:[~2017-10-19 20:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-12 14:55 IMA appraisal against xz-compressed modules Bruno E. O. Meneguele
2017-10-15 3:11 ` Mimi Zohar
2017-10-18 19:49 ` Bruno E. O. Meneguele
2017-10-19 14:20 ` Mimi Zohar
2017-10-19 19:31 ` Bruno E. O. Meneguele
2017-10-19 20:13 ` Mimi Zohar [this message]
2017-10-20 19:36 ` Bruno E. O. Meneguele
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=1508444027.3268.53.camel@linux.vnet.ibm.com \
--to=zohar@linux.vnet.ibm.com \
--cc=brdeoliv@redhat.com \
--cc=linux-integrity@vger.kernel.org \
--cc=lwang@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).