qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/3] Add secret_keyring object
@ 2020-05-25 11:16 Alexey Krasikov
  2020-05-25 11:16 ` [PATCH v4 1/3] crypto/secret: move main logic from 'secret' to 'secret_common' Alexey Krasikov
  0 siblings, 1 reply; 3+ messages in thread
From: Alexey Krasikov @ 2020-05-25 11:16 UTC (permalink / raw)
  To: berrange, qemu-devel; +Cc: yc-core

Add the ability to store encryption keys in the Linux keyring
facility.

For that, factor out common parts from secret to a new abstract class
secret_common, and introduce new user-creatable secret_keyring class
inheriting from it.
Use '--enable-keyring/--disable-keyring' configuration parameters
to provide this feature.

Example:

$QEMU -object secret_keyring,id=sec0,serial=0x15968230

v4 changes:
 - removed all extra white space aligment;
 - removed last NULL parameter from 'object_class_property_add_*' functions;
 - removed the word "support" from configure output summary.
 - removed the 'linux/keyctl.h' include from configure keyutils test;
 - temporary added 'g_test_skip()' at start of the metod
'test_secret_keyring_bad_key_access_right()'.

Alexey Krasikov (3):
  crypto/secret: move main logic from 'secret' to 'secret_common'.
  crypto/linux_keyring: add 'secret_keyring' secret object.
  test-crypto-secret: add 'secret_keyring' object tests.

 configure                       |  62 +++++
 crypto/Makefile.objs            |   2 +
 crypto/secret.c                 | 347 +--------------------------
 crypto/secret_common.c          | 403 ++++++++++++++++++++++++++++++++
 crypto/secret_keyring.c         | 148 ++++++++++++
 include/crypto/secret.h         |  20 +-
 include/crypto/secret_common.h  |  68 ++++++
 include/crypto/secret_keyring.h |  52 +++++
 tests/Makefile.include          |   4 +
 tests/test-crypto-secret.c      | 158 +++++++++++++
 10 files changed, 907 insertions(+), 357 deletions(-)
 create mode 100644 crypto/secret_common.c
 create mode 100644 crypto/secret_keyring.c
 create mode 100644 include/crypto/secret_common.h
 create mode 100644 include/crypto/secret_keyring.h

-- 
2.17.1



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

end of thread, other threads:[~2020-05-27  9:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-25 11:16 [PATCH v4 0/3] Add secret_keyring object Alexey Krasikov
2020-05-25 11:16 ` [PATCH v4 1/3] crypto/secret: move main logic from 'secret' to 'secret_common' Alexey Krasikov
2020-05-27  9:44   ` Daniel P. Berrangé

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