Setuid wrapper should not be constrained to a specific linux kernel version
This commit is contained in:
parent
01e6b82f3f
commit
9de070e620
@ -92,13 +92,6 @@ in
|
|||||||
capabilities!! This may be too restrictive for cases in which
|
capabilities!! This may be too restrictive for cases in which
|
||||||
the real program needs cap_setpcap but it at least leans on
|
the real program needs cap_setpcap but it at least leans on
|
||||||
the side security paranoid vs. too relaxed.
|
the side security paranoid vs. too relaxed.
|
||||||
|
|
||||||
The attribute `setcap` defaults to false and it will create a
|
|
||||||
wrapper program but never set the capability set on it. This
|
|
||||||
is done so that you can remove a capability sent entirely from
|
|
||||||
a wrapper program without also needing to go change any
|
|
||||||
absolute paths that may be directly referencing the wrapper
|
|
||||||
program.
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -21,7 +21,6 @@ in
|
|||||||
# This is only useful for Linux platforms and a kernel version of
|
# This is only useful for Linux platforms and a kernel version of
|
||||||
# 4.3 or greater
|
# 4.3 or greater
|
||||||
assert pkgs.stdenv.isLinux;
|
assert pkgs.stdenv.isLinux;
|
||||||
assert lib.versionAtLeast (lib.getVersion config.boot.kernelPackages.kernel) "4.3";
|
|
||||||
|
|
||||||
pkgs.stdenv.mkDerivation {
|
pkgs.stdenv.mkDerivation {
|
||||||
name = "setuid-wrapper";
|
name = "setuid-wrapper";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user