systemd: Prevent privilege escalation via polkit

Cherry-picked from upstream.  Also applied a fix for the CPUShares
configuration option while I'm at it.

CVE-2013-4327
This commit is contained in:
Eelco Dolstra
2013-09-30 13:30:15 +02:00
parent 920b0d910c
commit e65ff3b72a
12 changed files with 122 additions and 18 deletions
@@ -25,6 +25,8 @@ stdenv.mkDerivation rec {
./0007-Ignore-IPv6-link-local-addresses.patch
./0008-Don-t-try-to-unmount-nix-or-nix-store.patch
./0009-Start-ctrl-alt-del.target-irreversibly.patch
./0010-Fix-CPUShares-configuration-option.patch
./0011-polkit-Avoid-race-condition-in-scraping-proc.patch
] ++ stdenv.lib.optional stdenv.isArm ./libc-bug-accept4-arm.patch;
buildInputs =