linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Module xattr signatures
@ 2012-10-05  1:47 Rusty Russell
  2012-10-05 14:42 ` Kasatkin, Dmitry
  0 siblings, 1 reply; 4+ messages in thread
From: Rusty Russell @ 2012-10-05  1:47 UTC (permalink / raw)
  To: Kasatkin, Dmitry; +Cc: Kees Cook, David Howells, LKML, Mimi Zohar

Hi all,

        Had a talk with Mimi, and IMA still wants xattr signatures on
modules like they have for other files with EVM.  With Kees' patches now
merged into my modules-wip branch (warning, rebases frequently), this
should be pretty simple.  Dmitry?

        The question of whether this falls back to appended signatures
if there's no xattr support, or whether we fix cpio depends on whether
someone is prepared to do the latter.  As Mimi points out, AIX, bsd,
solaris all have versions of cpio that support extended attributes, as
does the bsdcpio Debian package, for example.

Thanks,
Rusty.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Module xattr signatures
  2012-10-05  1:47 Module xattr signatures Rusty Russell
@ 2012-10-05 14:42 ` Kasatkin, Dmitry
  2012-10-05 17:10   ` Mimi Zohar
  0 siblings, 1 reply; 4+ messages in thread
From: Kasatkin, Dmitry @ 2012-10-05 14:42 UTC (permalink / raw)
  To: Rusty Russell; +Cc: Kasatkin, Kees Cook, David Howells, LKML, Mimi Zohar

Hello,

On Fri, Oct 5, 2012 at 4:47 AM, Rusty Russell <rusty@rustcorp.com.au> wrote:
>
> Hi all,
>
>         Had a talk with Mimi, and IMA still wants xattr signatures on
> modules like they have for other files with EVM.  With Kees' patches now
> merged into my modules-wip branch (warning, rebases frequently), this
> should be pretty simple.  Dmitry?
>

Yes, there is no difference for IMA/EVM what type of file has a
signature to verify.
It just reads the signature from the xattr. With the module hook it
will just do the same
for modules as well. It is independent of appended signature verification.
The format of signatures is different at the moment.

>         The question of whether this falls back to appended signatures
> if there's no xattr support, or whether we fix cpio depends on whether
> someone is prepared to do the latter.  As Mimi points out, AIX, bsd,
> solaris all have versions of cpio that support extended attributes, as
> does the bsdcpio Debian package, for example.
>

As I already said in one of my early mails, I am not sure at all if
IMA really needs to verify a signature,
if primary mechanism is to use appended signature.

- Dmitry

> Thanks,
> Rusty.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Module xattr signatures
  2012-10-05 14:42 ` Kasatkin, Dmitry
@ 2012-10-05 17:10   ` Mimi Zohar
  2012-10-07 23:33     ` Rusty Russell
  0 siblings, 1 reply; 4+ messages in thread
From: Mimi Zohar @ 2012-10-05 17:10 UTC (permalink / raw)
  To: Kasatkin, Dmitry; +Cc: Rusty Russell, Kasatkin, Kees Cook, David Howells, LKML

On Fri, 2012-10-05 at 17:42 +0300, Kasatkin, Dmitry wrote:
> Hello,
> 
> On Fri, Oct 5, 2012 at 4:47 AM, Rusty Russell <rusty@rustcorp.com.au> wrote:
> >
> > Hi all,
> >
> >         Had a talk with Mimi, and IMA still wants xattr signatures on
> > modules like they have for other files with EVM.  With Kees' patches now
> > merged into my modules-wip branch (warning, rebases frequently), this
> > should be pretty simple.  Dmitry?
> >
> 
> Yes, there is no difference for IMA/EVM what type of file has a
> signature to verify.
> It just reads the signature from the xattr. With the module hook it
> will just do the same
> for modules as well. It is independent of appended signature verification.
> The format of signatures is different at the moment.

> >         The question of whether this falls back to appended signatures
> > if there's no xattr support, or whether we fix cpio depends on whether
> > someone is prepared to do the latter.  As Mimi points out, AIX, bsd,
> > solaris all have versions of cpio that support extended attributes, as
> > does the bsdcpio Debian package, for example.
> >
> 
> As I already said in one of my early mails, I am not sure at all if
> IMA really needs to verify a signature,
> if primary mechanism is to use appended signature.

Which is the preferred method is exactly the point. That depends on your
use case.  For systems with IMA-appraisal already enabled, there would
not be any reason for the appended signature verification.

Now, with the MODULE_CHECK hook, systems could define an IMA-appraisal
policy to appraise just kernel modules.

The remaining issue is how to deal with filesystems that don't have
extended attribute support.  As we've already had this discussion, lets
summarize the different options:

- don't support them

Not very friendly.

- modify the new syscall to pass the signature and signature length

Kees nixed this idea.

- fall back to appended signature verification

In addition to David Howell's version of the appended signature
verification, I would like having the existing EVM/IMA-appraisal
signature format, based on Dmitry's proposed kernel module patches, as
another option.

thanks,

Mimi


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Module xattr signatures
  2012-10-05 17:10   ` Mimi Zohar
@ 2012-10-07 23:33     ` Rusty Russell
  0 siblings, 0 replies; 4+ messages in thread
From: Rusty Russell @ 2012-10-07 23:33 UTC (permalink / raw)
  To: Mimi Zohar, Kasatkin, Dmitry; +Cc: Kasatkin, Kees Cook, David Howells, LKML

Mimi Zohar <zohar@linux.vnet.ibm.com> writes:
> On Fri, 2012-10-05 at 17:42 +0300, Kasatkin, Dmitry wrote:
>> Hello,
>> 
>> On Fri, Oct 5, 2012 at 4:47 AM, Rusty Russell <rusty@rustcorp.com.au> wrote:
>> >
>> > Hi all,
>> >
>> >         Had a talk with Mimi, and IMA still wants xattr signatures on
>> > modules like they have for other files with EVM.  With Kees' patches now
>> > merged into my modules-wip branch (warning, rebases frequently), this
>> > should be pretty simple.  Dmitry?
>> >
>> 
>> Yes, there is no difference for IMA/EVM what type of file has a
>> signature to verify.
>> It just reads the signature from the xattr. With the module hook it
>> will just do the same
>> for modules as well. It is independent of appended signature verification.
>> The format of signatures is different at the moment.
>
>> >         The question of whether this falls back to appended signatures
>> > if there's no xattr support, or whether we fix cpio depends on whether
>> > someone is prepared to do the latter.  As Mimi points out, AIX, bsd,
>> > solaris all have versions of cpio that support extended attributes, as
>> > does the bsdcpio Debian package, for example.
>> >
>> 
>> As I already said in one of my early mails, I am not sure at all if
>> IMA really needs to verify a signature,
>> if primary mechanism is to use appended signature.
>
> Which is the preferred method is exactly the point. That depends on your
> use case.  For systems with IMA-appraisal already enabled, there would
> not be any reason for the appended signature verification.
>
> Now, with the MODULE_CHECK hook, systems could define an IMA-appraisal
> policy to appraise just kernel modules.
>
> The remaining issue is how to deal with filesystems that don't have
> extended attribute support.  As we've already had this discussion, lets
> summarize the different options:
>
> - don't support them
>
> Not very friendly.
>
> - modify the new syscall to pass the signature and signature length
>
> Kees nixed this idea.
>
> - fall back to appended signature verification
>
> In addition to David Howell's version of the appended signature
> verification, I would like having the existing EVM/IMA-appraisal
> signature format, based on Dmitry's proposed kernel module patches, as
> another option.

Or:

 - Reduce the set of filesystems which don't support xattrs to the empty
   set ;)

Which I prefer...
Cheers,
Rusty.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-10-08  2:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-05  1:47 Module xattr signatures Rusty Russell
2012-10-05 14:42 ` Kasatkin, Dmitry
2012-10-05 17:10   ` Mimi Zohar
2012-10-07 23:33     ` Rusty Russell

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).