Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
base: 07e16bcf9868
Choose a base ref
...
head repository: NixOS/nixpkgs
compare: 4da5ac196674
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Oct 14, 2020

  1. confinement: fix assert for serviceConfig.ProtectSystem

    serviceConfig.ProtectSystem is usually a string so if set, the assert
    itself would error out leaving no useable trace:
    
      # nixos-rebuild switch --show-trace
      building Nix...
      building the system configuration...
      error: while evaluating the attribute 'config.system.build.toplevel' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/top-level.nix:293:5:
      while evaluating 'foldr' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:52:20, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/top-level.nix:128:12:
      while evaluating 'fold'' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:55:15, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:59:8:
      while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/top-level.nix:121:50, called from undefined position:
      while evaluating the attribute 'assertion' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/security/systemd-confinement.nix:163:7:
      value is a string while a Boolean was expected
    
    Fix the check to give a sensible assert message instead; the attribute
    should either be not set or false bool to pass.
    
    Closes: #99000
    (cherry picked from commit f8d78b9)
    martinetd authored and aszlig committed Oct 14, 2020
    Copy the full SHA
    4da5ac1 View commit details
    Browse the repository at this point in the history