mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 00:54:46 +00:00
0f0d5c0c49
Enabling the profile can lead to hard-to-debug issues, which should be warned about in addition to the cost in features and performance. See https://github.com/NixOS/nixpkgs/issues/108262 for an example.
33 lines
1.3 KiB
XML
33 lines
1.3 KiB
XML
<section xmlns="http://docbook.org/ns/docbook"
|
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
version="5.0"
|
|
xml:id="sec-profile-hardened">
|
|
<title>Hardened</title>
|
|
|
|
<para>
|
|
A profile with most (vanilla) hardening options enabled by default,
|
|
potentially at the cost of stability, features and performance.
|
|
</para>
|
|
|
|
<para>
|
|
This includes a hardened kernel, and limiting the system information
|
|
available to processes through the <filename>/sys</filename> and
|
|
<filename>/proc</filename> filesystems. It also disables the User Namespaces
|
|
feature of the kernel, which stops Nix from being able to build anything
|
|
(this particular setting can be overriden via
|
|
<xref linkend="opt-security.allowUserNamespaces"/>). See the
|
|
<literal
|
|
xlink:href="https://github.com/nixos/nixpkgs/tree/master/nixos/modules/profiles/hardened.nix">
|
|
profile source</literal> for further detail on which settings are altered.
|
|
</para>
|
|
<warning>
|
|
<para>
|
|
This profile enables options that are known to affect system
|
|
stability. If you experience any stability issues when using the
|
|
profile, try disabling it. If you report an issue and use this
|
|
profile, always mention that you do.
|
|
</para>
|
|
</warning>
|
|
</section>
|