From 9815fa71116f1e9f1cb5e74c97322bfb1abf4c37 Mon Sep 17 00:00:00 2001 From: Norbert Fabritius Date: Mon, 7 Mar 2022 15:56:48 +0100 Subject: [PATCH] Add selinux context to inspect manifest --- examples/inspect/manifest.yaml | 2 ++ northstar/src/npk/manifest/mod.rs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/inspect/manifest.yaml b/examples/inspect/manifest.yaml index 3307b025f..625e3d513 100644 --- a/examples/inspect/manifest.yaml +++ b/examples/inspect/manifest.yaml @@ -29,3 +29,5 @@ rlimits: soft: 10000 hard: 20000 suppl_groups: [src, inet] +selinux: + context: unconfined_u:object_r:user_home_t:s0 \ No newline at end of file diff --git a/northstar/src/npk/manifest/mod.rs b/northstar/src/npk/manifest/mod.rs index dcd6434ce..88418f826 100644 --- a/northstar/src/npk/manifest/mod.rs +++ b/northstar/src/npk/manifest/mod.rs @@ -23,7 +23,7 @@ mod cgroups; mod console; mod mount; -/// Environment varibables used by the runtime and not available to the user. +/// Environment variables used by the runtime and not available to the user. const RESERVED_ENV_VARIABLES: &[&str] = &[ "NORTHSTAR_NAME", "NORTHSTAR_VERSION", @@ -199,7 +199,7 @@ impl Manifest { if selinux.context.len() >= XATTR_SIZE_MAX { return Err(Error::Invalid(format!( - "Selinux context os too long. Maximum length in {}", + "Selinux context is too long. Maximum length is {}", XATTR_SIZE_MAX ))); }