about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/security/systemd-confinement.nix9
1 files changed, 2 insertions, 7 deletions
diff --git a/nixos/modules/security/systemd-confinement.nix b/nixos/modules/security/systemd-confinement.nix
index 49fde2dcc6d5..31b07b1b03d2 100644
--- a/nixos/modules/security/systemd-confinement.nix
+++ b/nixos/modules/security/systemd-confinement.nix
@@ -52,11 +52,7 @@ in {
           dependencies of this systemd unit, you can use
           <option>confinement.fullUnit</option>.
 
-          <note><para><emphasis role="strong">Only</emphasis> the latter
-          (${mkScOption "ExecStart"}) will be used if
-          ${mkScOption "RootDirectoryStartOnly"} is enabled.</para></note>
-
-          <note><para>Also, the store paths listed in <option>path</option> are
+          <note><para>The store paths listed in <option>path</option> are
           <emphasis role="strong">not</emphasis> included in the closure as
           well as paths from other options except those listed
           above.</para></note>
@@ -133,8 +129,7 @@ in {
           ProtectKernelTunables = wantsAPIVFS;
         };
         confinement.packages = let
-          startOnly = config.serviceConfig.RootDirectoryStartOnly or false;
-          execOpts = if startOnly then [ "ExecStart" ] else [
+          execOpts = [
             "ExecReload" "ExecStart" "ExecStartPost" "ExecStartPre" "ExecStop"
             "ExecStopPost"
           ];