All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP v4 0/5] IMA: verify measurement of certificate imported into a keyring
@ 2020-08-20  9:08 ` Petr Vorel
  0 siblings, 0 replies; 49+ messages in thread
From: Petr Vorel @ 2020-08-20  9:08 UTC (permalink / raw)
  To: ltp; +Cc: Petr Vorel, Lakshmi Ramasubramanian, Mimi Zohar, linux-integrity

Hi Mimi, Lakshmi,

changes v3->v4:
* Add new commit to add another policy dependency (template=ima-buf) and
and fix missing '.' in grep pattern
* Add cleanup function for test2: remove key with keyctl clear ID
instead of running keyctl new_session > /dev/null which was reported
as problematic (and still affects other tests which are run after this one)
* Update check_keys_policy() and checking the policy in general
* Remove new line when working policy to find keyrings and templates
* Replace tr with sed

I still kept keyctl new_session > /dev/null. Should I remove it?
Works for me without it, but that would probably require a cleanup.

Kind regards,
Petr

Lachlan Sneff (1):
  IMA: Add a test to verify measurement of certificate imported into a
    keyring

Petr Vorel (4):
  IMA/ima_keys.sh: Fix policy content check usage
  IMA/ima_keys.sh: Require template=ima-buf, fix grep pattern
  IMA: Refactor datafiles directory
  IMA/ima_keys.sh: Enhance policy checks

 .../kernel/security/integrity/ima/README.md   |  12 +-
 .../security/integrity/ima/datafiles/Makefile |  10 +-
 .../ima/datafiles/ima_kexec/Makefile          |  11 ++
 .../datafiles/{ => ima_kexec}/kexec.policy    |   0
 .../integrity/ima/datafiles/ima_keys/Makefile |  11 ++
 .../datafiles/{ => ima_keys}/keycheck.policy  |   2 +-
 .../ima/datafiles/ima_keys/x509_ima.der       | Bin 0 -> 650 bytes
 .../ima/datafiles/ima_policy/Makefile         |  11 ++
 .../datafiles/{ => ima_policy}/measure.policy |   0
 .../{ => ima_policy}/measure.policy-invalid   |   0
 .../security/integrity/ima/tests/ima_keys.sh  | 115 +++++++++++++++---
 11 files changed, 142 insertions(+), 30 deletions(-)
 create mode 100644 testcases/kernel/security/integrity/ima/datafiles/ima_kexec/Makefile
 rename testcases/kernel/security/integrity/ima/datafiles/{ => ima_kexec}/kexec.policy (100%)
 create mode 100644 testcases/kernel/security/integrity/ima/datafiles/ima_keys/Makefile
 rename testcases/kernel/security/integrity/ima/datafiles/{ => ima_keys}/keycheck.policy (59%)
 create mode 100644 testcases/kernel/security/integrity/ima/datafiles/ima_keys/x509_ima.der
 create mode 100644 testcases/kernel/security/integrity/ima/datafiles/ima_policy/Makefile
 rename testcases/kernel/security/integrity/ima/datafiles/{ => ima_policy}/measure.policy (100%)
 rename testcases/kernel/security/integrity/ima/datafiles/{ => ima_policy}/measure.policy-invalid (100%)

-- 
2.28.0


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

end of thread, other threads:[~2020-08-31 10:29 UTC | newest]

Thread overview: 49+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-20  9:08 [LTP v4 0/5] IMA: verify measurement of certificate imported into a keyring Petr Vorel
2020-08-20  9:08 ` [LTP] " Petr Vorel
2020-08-20  9:08 ` [LTP v4 1/5] IMA/ima_keys.sh: Fix policy content check usage Petr Vorel
2020-08-20  9:08   ` [LTP] " Petr Vorel
2020-08-24 17:19   ` Petr Vorel
2020-08-24 17:19     ` [LTP] " Petr Vorel
2020-08-24 17:24     ` Lakshmi Ramasubramanian
2020-08-24 17:24       ` [LTP] " Lakshmi Ramasubramanian
2020-08-20  9:08 ` [LTP v4 2/5] IMA/ima_keys.sh: Require template=ima-buf, fix grep pattern Petr Vorel
2020-08-20  9:08   ` [LTP] " Petr Vorel
2020-08-20  9:08 ` [LTP v4 3/5] IMA: Refactor datafiles directory Petr Vorel
2020-08-20  9:08   ` [LTP] " Petr Vorel
2020-08-28 13:18   ` Petr Vorel
2020-08-28 13:28     ` Petr Vorel
2020-08-28 16:32       ` Mimi Zohar
2020-08-31  7:39         ` Petr Vorel
2020-08-30 16:31       ` Petr Vorel
2020-08-20  9:08 ` [LTP v4 4/5] IMA: Add a test to verify measurement of certificate imported into a keyring Petr Vorel
2020-08-20  9:08   ` [LTP] " Petr Vorel
2020-08-26 22:15   ` Mimi Zohar
2020-08-26 22:15     ` [LTP] " Mimi Zohar
2020-08-27 13:23     ` Petr Vorel
2020-08-27 13:23       ` [LTP] " Petr Vorel
2020-08-27 13:55       ` Petr Vorel
2020-08-27 13:55         ` [LTP] " Petr Vorel
2020-08-27 21:34         ` Mimi Zohar
2020-08-27 21:34           ` [LTP] " Mimi Zohar
2020-08-27 22:54           ` Petr Vorel
2020-08-27 22:54             ` [LTP] " Petr Vorel
2020-08-27 23:37             ` Mimi Zohar
2020-08-27 23:37               ` [LTP] " Mimi Zohar
2020-08-28  6:05               ` Petr Vorel
2020-08-28  6:05                 ` [LTP] " Petr Vorel
2020-08-28 11:00                 ` Mimi Zohar
2020-08-28 11:00                   ` [LTP] " Mimi Zohar
2020-08-28 12:40                   ` Petr Vorel
2020-08-28 12:40                     ` [LTP] " Petr Vorel
2020-08-28 11:19                 ` Mimi Zohar
2020-08-28 11:19                   ` [LTP] " Mimi Zohar
2020-08-28 12:49                   ` Petr Vorel
2020-08-28 12:49                     ` [LTP] " Petr Vorel
2020-08-28 15:21                     ` Mimi Zohar
2020-08-28 15:21                       ` [LTP] " Mimi Zohar
2020-08-31 10:29                       ` Petr Vorel
2020-08-31 10:29                         ` [LTP] " Petr Vorel
2020-08-28 10:59   ` Mimi Zohar
2020-08-28 10:59     ` [LTP] " Mimi Zohar
2020-08-20  9:08 ` [LTP v4 5/5] IMA/ima_keys.sh: Enhance policy checks Petr Vorel
2020-08-20  9:08   ` [LTP] " Petr Vorel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.