Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixups after new security wrapper #22806

Merged
merged 3 commits into from Feb 15, 2017

Conversation

bjornfor
Copy link
Contributor

Motivation for this change

Needed to unbreak NixOS master branch.

Things done

WARNING: Not fully tested yet. Still building...

  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@bjornfor bjornfor force-pushed the fixups-after-new-security-wrapper branch 2 times, most recently from ecd1c35 to c59cdba Compare February 14, 2017 22:14
Copy link
Contributor

@ixmatus ixmatus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @bjornfor!

@@ -32,6 +32,9 @@ with lib;

(mkRenamedOptionModule [ "services" "clamav" "updater" "config" ] [ "services" "clamav" "updater" "extraConfig" ])

(mkRemovedOptionModule [ "security" "setuidOwners" ] "Use security.wrappers instead")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I totally missed this, thanks!

@@ -1,7 +1,7 @@
{ config, lib, pkgs, ... }:
let

inherit (config.security) wrapperDir wrappers setuidPrograms;
inherit (config.security) wrapperDir wrappers;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

The option doesn't exist anymore.
The new option takes an attrset, not a list.
Let users know about the option rename / change during nixos-rebuild
with a useful message instead of an error (with no way forward).
@bjornfor bjornfor force-pushed the fixups-after-new-security-wrapper branch from c59cdba to b1bfe9d Compare February 15, 2017 06:27
@bjornfor bjornfor merged commit b1bfe9d into NixOS:master Feb 15, 2017
@bjornfor bjornfor deleted the fixups-after-new-security-wrapper branch February 15, 2017 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants