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: 338c4939185a
Choose a base ref
...
head repository: NixOS/nixpkgs
compare: 3ea5b15c20df
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Jul 1, 2018

  1. nixos/security.sudo: describe extraRules order

    The order of sudoers entries is significant. The man page for sudoers(5)
    notes:
    
      Where there are multiple matches, the last match is used (which is not
      necessarily the most specific match).
    
    This module adds a rule for group "wheel" matching all commands. If you
    wanted to add a more specific rule allowing members of the "wheel" group
    to run command `foo` without a password, you'd need to use mkAfter to
    ensure your rule comes after the more general rule.
    
      extraRules = lib.mkAfter [
        {
          groups = [ "wheel" ];
          commands = [
            {
              command = "${pkgs.foo}/bin/foo";
              options = [ "NOPASSWD" "SETENV" ];
            }
          ]
        }
      ];
    
    Otherwise, when configuration options are merged, if the general rule
    ends up after the specific rule, it will dictate the behavior even when
    running the `foo` command.
    ivanbrennan committed Jul 1, 2018
    Configuration menu
    Copy the full SHA
    d08967a View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2018

  1. Merge pull request #42845 from ivanbrennan/nixos-sudo-describe-rules-…

    …precedence
    
    nixos/security.sudo: Document ordering of extraRules
    joachifm committed Jul 2, 2018
    Configuration menu
    Copy the full SHA
    3ea5b15 View commit details
    Browse the repository at this point in the history