Skip to content

Commit

Permalink
Add selinux context to inspect manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
Norbert Fabritius authored and flxo committed Apr 27, 2022
1 parent 87b82be commit 9815fa7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions examples/inspect/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ rlimits:
soft: 10000
hard: 20000
suppl_groups: [src, inet]
selinux:
context: unconfined_u:object_r:user_home_t:s0
4 changes: 2 additions & 2 deletions northstar/src/npk/manifest/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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
)));
}
Expand Down

0 comments on commit 9815fa7

Please sign in to comment.