From 6215b581672727de1d8d5d6f1c6ff6cda1ae7c5b Mon Sep 17 00:00:00 2001 From: Bruce Leidl Date: Wed, 30 Jan 2019 14:06:18 -0500 Subject: [PATCH] realmfs-owner is name of realm that can write to unsealed realm --- libcitadel/src/header.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libcitadel/src/header.rs b/libcitadel/src/header.rs index e8d7935..9075c06 100644 --- a/libcitadel/src/header.rs +++ b/libcitadel/src/header.rs @@ -310,6 +310,9 @@ struct MetaInfoToml { #[serde(rename = "realmfs-name")] realmfs_name: Option, + #[serde(rename = "realmfs-owner")] + realmfs_owner: Option, + #[serde(default)] version: u32, @@ -365,6 +368,7 @@ impl MetaInfo { pub fn kernel_id(&self) -> Option<&str> { self.toml().kernel_id.as_ref().map(|s| s.as_str()) } pub fn realmfs_name(&self) -> Option<&str> { self.toml().realmfs_name.as_ref().map(|s| s.as_str()) } + pub fn realmfs_owner(&self) -> Option<&str> { self.toml().realmfs_owner.as_ref().map(|s| s.as_str()) } pub fn version(&self) -> u32 { self.toml().version