Skip to content

Commit

Permalink
systemd: Disable ImportCredentials when privileged on 254+
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
  • Loading branch information
stgraber committed Aug 3, 2023
1 parent 940f3e6 commit 9aa51ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions distrobuilder/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@ fix_systemd_override_unit() {
[ "${systemd_version}" -ge 244 ] && echo "ProtectKernelLogs=no";
[ "${systemd_version}" -ge 232 ] && echo "ProtectKernelModules=no";
[ "${systemd_version}" -ge 231 ] && echo "ReadWritePaths=";
[ "${systemd_version}" -ge 254 ] && echo "ImportCredential=";
fi
} > "${dropin_dir}/zzz-lxc-service.conf"
}
Expand Down

0 comments on commit 9aa51ca

Please sign in to comment.