From: Vivek Goyal <vgoyal@redhat.com>
To: zohar@linux.vnet.ibm.com, linux-security-module@vger.kernel.org
Cc: vgoyal@redhat.com, linux-kernel@vger.kernel.org
Subject: [RFC PATCH 0/2][v2] ima: Support a mode to appraise signed files only
Date: Tue, 12 Feb 2013 10:10:58 -0500 [thread overview]
Message-ID: <1360681860-29045-1-git-send-email-vgoyal@redhat.com> (raw)
Hi.
Currently ima appraises all the files as specified by the rule. So
if one wants to create a system where only few executables are
signed, that system will not work with IMA.
With secureboot, one needs to disable kexec so that unsigned kernels
can't be booted. To avoid this problem, it was proposed that sign
/sbin/kexec binary and if signatures are verified successfully, give
an special capability to the /sbin/kexec process. And in secureboot
mode processes with that special capability can invoke sys_kexec()
system call.
So there is a need for IMA to allow appraising only signed binaries.
Unsigned binaries will pass the appraisal too, but will not get the
special capability. (Capability patches for that are yet to be written).
This patch series adds new option, appraise_type=imasig_optional to allow
appraisal to pass even if no signatures are present on the file. If
signatures are present, then it has to be valid digital signature,
otherwise appraisal will fail.
v2: Changed patches based on Mimi's feedback.
Thanks
Vivek
Vivek Goyal (2):
ima: detect security xattrs not enabled
ima: Allow appraisal of digitally signed files only
Documentation/ABI/testing/ima_policy | 2 +-
security/integrity/ima/ima_appraise.c | 27 +++++++++++++++++++++++----
security/integrity/ima/ima_policy.c | 2 ++
security/integrity/integrity.h | 1 +
4 files changed, 27 insertions(+), 5 deletions(-)
--
1.7.7.6
next reply other threads:[~2013-02-12 15:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-12 15:10 Vivek Goyal [this message]
2013-02-12 15:10 ` [PATCH 1/2] ima: detect security xattrs not enabled Vivek Goyal
2013-02-12 15:11 ` [PATCH 2/2] ima: Allow appraisal of digitally signed files only Vivek Goyal
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=1360681860-29045-1-git-send-email-vgoyal@redhat.com \
--to=vgoyal@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=zohar@linux.vnet.ibm.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
all inboxes | Powered by JetHome®