linux-integrity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Spec needed for ima-modsig template
@ 2020-01-02 20:10 Ken Goldman
  2020-01-02 20:25 ` Mimi Zohar
  0 siblings, 1 reply; 17+ messages in thread
From: Ken Goldman @ 2020-01-02 20:10 UTC (permalink / raw)
  To: Linux Integrity, Ken Goldman

I'm trying to document the ima-modsig template and then write aparser. 
Can anyone help me complete it?

1 - What the implementation does today is interesting.  Even betterwould 
be what the implementation is permitted to do so that theparser will 
handle future changes.

2 - My understanding so far:

     ima-modsig        is        d-ng | n-ng | sig | d-modsig |modsig

     where (both have a prepended uint32_t length)

     d-modsig            is    d-ng, filedata hash, omitting the 
appended modsig signature
     modsig                is     pkcs7DER, appended signature

My immediate issue is that the d-modsig should be a length + 
hashalgorithm + file data hash.  However, the length in my sample log 
issometimes zero, which I did not expect.

I.e., it it legal for an ima-modsig template to contain an emptyd-modsig 
item?

Can the modsig item also be empty?

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

end of thread, other threads:[~2020-01-07 17:53 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-02 20:10 Spec needed for ima-modsig template Ken Goldman
2020-01-02 20:25 ` Mimi Zohar
2020-01-02 22:24   ` Ken Goldman
2020-01-02 23:22     ` Mimi Zohar
2020-01-03 18:27       ` Ken Goldman
2020-01-03 18:57         ` Spec needed for ima-buf template Ken Goldman
2020-01-03 19:25           ` Spec needed for ima-buf template - missing hash algorithm Ken Goldman
2020-01-04 23:32         ` Spec needed for ima-modsig template Mimi Zohar
2020-01-06 14:27           ` Ken Goldman
2020-01-06 17:18             ` Mimi Zohar
2020-01-06 14:36           ` Ken Goldman
2020-01-06 15:50             ` Mimi Zohar
2020-01-06 16:01               ` Ken Goldman
2020-01-06 16:55                 ` Mimi Zohar
2020-01-07  8:53                 ` Roberto Sassu
2020-01-07 15:40                   ` Ken Goldman
2020-01-07 17:53                     ` Roberto Sassu

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