sudo: add withInsults flag (disabled by default)
The feature Nix neither needs nor deserves. Requires the "insults" to be explicitly enabled in sudoers. This adds 1.6 MB to your sudo as some kind of cruel meta-joke.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{ stdenv, fetchurl, coreutils, pam, groff
|
||||
, sendmailPath ? "/var/setuid-wrappers/sendmail"
|
||||
, withInsults ? false
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@@ -20,6 +21,9 @@ stdenv.mkDerivation rec {
|
||||
"--with-vardir=/var/db/sudo"
|
||||
"--with-logpath=/var/log/sudo.log"
|
||||
"--with-sendmail=${sendmailPath}"
|
||||
] ++ stdenv.lib.optional withInsults [
|
||||
"--with-insults"
|
||||
"--with-all-insults"
|
||||
];
|
||||
|
||||
configureFlagsArray = [
|
||||
|
||||
Reference in New Issue
Block a user