Skip to content

Commit

Permalink
fix: ProtectKernelLogs=true denies syslog
Browse files Browse the repository at this point in the history
  • Loading branch information
desbma committed Jan 31, 2025
1 parent 2df9689 commit 39e2aa4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/systemd/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,7 @@ pub(crate) fn build_options(
possible_values: vec![OptionValueDescription {
value: OptionValue::Boolean(true),
desc: OptionEffect::Simple(OptionValueEffect::Multiple(vec![
// https://github.com/systemd/systemd/blob/v254/src/core/namespace.c#L140
// https://github.com/systemd/systemd/blob/v254/src/core/namespace.c#L148
OptionValueEffect::Hide(PathDescription::Base {
base: "/proc/kmsg".into(),
exceptions: vec![],
Expand All @@ -1201,6 +1201,7 @@ pub(crate) fn build_options(
base: "/dev/kmsg".into(),
exceptions: vec![],
}),
OptionValueEffect::DenySyscalls(DenySyscalls::Single("syslog")),
])),
}],
updater: None,
Expand Down

0 comments on commit 39e2aa4

Please sign in to comment.