mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
dd82c26f87
Add `pvsecret` a tool to create, add, list, and delete Ultravisor secrets. `pvsecret` uses the functionality from the pv-crate to provide an command line tool to manage the secrets. Add a new target group PV_TARGETS in rust/Makefile that additionally requires openssl and libcurl as pv with the feature "request" uses openssl and libcurl fearures. Acked-by: Jan Höppner <hoeppner@linux.ibm.com> Acked-by: Marc Hartmayer <mhartmay@linux.ibm.com> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com> [hoeppner@linux.ibm.com: Adapt man pages and help output] Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
15 lines
301 B
Rust
15 lines
301 B
Rust
// SPDX-License-Identifier: MIT
|
|
//
|
|
// Copyright IBM Corp. 2023
|
|
|
|
use anyhow::Result;
|
|
use log::warn;
|
|
use pv::uv::{LockCmd, UvDevice};
|
|
|
|
/// Do a Lock Secret Store UVC
|
|
pub fn lock() -> Result<()> {
|
|
UvDevice::open()?.send_cmd(&mut LockCmd)?;
|
|
warn!("Successfully locked secret store");
|
|
Ok(())
|
|
}
|