diff options
| author | Jakub Kicinski <kuba@kernel.org> | 2025-09-16 17:09:32 -0700 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2025-09-18 12:32:06 +0200 |
| commit | 117f02a49b7719b210d154a0d0e728001bf4af06 (patch) | |
| tree | b5dd5c8e2ef3033a224b63e4149d4b4622a8c647 /include/net/psp | |
| parent | 659a2899a57da59f433182eba571881884d6323e (diff) | |
| download | linux-117f02a49b7719b210d154a0d0e728001bf4af06.tar.gz linux-117f02a49b7719b210d154a0d0e728001bf4af06.tar.bz2 linux-117f02a49b7719b210d154a0d0e728001bf4af06.zip | |
psp: add op for rotation of device key
Rotating the device key is a key part of the PSP protocol design.
Some external daemon needs to do it once a day, or so.
Add a netlink op to perform this operation.
Add a notification group for informing users that key has been
rotated and they should rekey (next rotation will cut them off).
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Daniel Zahka <daniel.zahka@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250917000954.859376-6-daniel.zahka@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/net/psp')
| -rw-r--r-- | include/net/psp/types.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/psp/types.h b/include/net/psp/types.h index 4922fc8d42fd..66327fa80c92 100644 --- a/include/net/psp/types.h +++ b/include/net/psp/types.h @@ -102,6 +102,11 @@ struct psp_dev_ops { */ int (*set_config)(struct psp_dev *psd, struct psp_dev_config *conf, struct netlink_ext_ack *extack); + + /** + * @key_rotate: rotate the device key + */ + int (*key_rotate)(struct psp_dev *psd, struct netlink_ext_ack *extack); }; #endif /* __NET_PSP_H */ |
