Skip to content

Commit

Permalink
fixup: const-ify selinux policy path for FHS systems
Browse files Browse the repository at this point in the history
  • Loading branch information
cole-h committed Oct 28, 2024
1 parent 9d36cb0 commit 60a7c30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/planner/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ use crate::{
Action, BuiltinPlanner,
};

pub const FHS_SELINUX_POLICY_PATH: &str = "/usr/share/selinux/packages/nix.pp";

/// A planner for traditional, mutable Linux systems like Debian, RHEL, or Arch
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[cfg_attr(feature = "cli", derive(clap::Parser))]
Expand Down Expand Up @@ -92,7 +94,7 @@ impl Planner for Linux {
if has_selinux {
plan.push(
ProvisionSelinux::plan(
"/usr/share/selinux/packages/nix.pp".into(),
FHS_SELINUX_POLICY_PATH.into(),
if self.settings.determinate_nix {
DETERMINATE_SELINUX_POLICY_PP_CONTENT
} else {
Expand Down

0 comments on commit 60a7c30

Please sign in to comment.