mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 09:34:36 +00:00
less: introduce withSecure flag
`--with-secure` is a hardening compile flag to disable potentially dangerous commands within less(1). References: * https://man7.org/linux/man-pages/man1/less.1.html#SECURITY * https://seclists.org/fulldisclosure/2014/Nov/74
This commit is contained in:
parent
2ab53fad62
commit
39cb4bd48b
@ -4,6 +4,7 @@
|
|||||||
, fetchpatch
|
, fetchpatch
|
||||||
, ncurses
|
, ncurses
|
||||||
, pcre2
|
, pcre2
|
||||||
|
, withSecure ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
@ -37,7 +38,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
# Look for 'sysless' in /etc.
|
# Look for 'sysless' in /etc.
|
||||||
"--sysconfdir=/etc"
|
"--sysconfdir=/etc"
|
||||||
"--with-regex=pcre2"
|
"--with-regex=pcre2"
|
||||||
];
|
] ++ lib.optional withSecure "--with-secure";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://www.greenwoodsoftware.com/less/";
|
homepage = "https://www.greenwoodsoftware.com/less/";
|
||||||
|
Loading…
Reference in New Issue
Block a user