Whamcloud - gitweb
LU-18581 sec: add hsm_ops rbac role 26/57526/6
authorSebastien Buisson <sbuisson@ddn.com>
Thu, 19 Dec 2024 14:08:11 +0000 (15:08 +0100)
committerOleg Drokin <green@whamcloud.com>
Sun, 2 Feb 2025 06:28:22 +0000 (06:28 +0000)
commit745486da697fc577cb6b927bcfbca9cf587666e4
treeb51162b4bc584eea37bfc658e32b3fe0165f2be1
parent478dd88f38b77d3cd63c0f931d11b57a03c50928
LU-18581 sec: add hsm_ops rbac role

The purpose of the new hsm_ops rbac role is to control whether
clients can carry out HSM actions. When set, clients can call any
HSM primitive. When not set, clients get -EACCES when they try one of
the following:
- archive
- restore
- remove
- release
- set
- clear
- ct_register
- ct_unregister

sanity-hsm test_411 is added to exercise the new hsm_ops rbac role.

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I234f4e8e37ec359ac9f790e29bf0b91725f2ef16
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57526
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Marc Vef <mvef@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
15 files changed:
lustre/doc/lctl-nodemap-modify.8
lustre/include/lustre_nodemap.h
lustre/include/md_object.h
lustre/include/uapi/linux/lustre/lustre_idl.h
lustre/mdt/mdt_coordinator.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_hsm.c
lustre/mdt/mdt_lib.c
lustre/mdt/mdt_open.c
lustre/mdt/mdt_restripe.c
lustre/obdecho/echo_client.c
lustre/ptlrpc/wiretest.c
lustre/tests/sanity-hsm.sh
lustre/utils/wirecheck.c
lustre/utils/wiretest.c