Merge pull request #31157 from sorki/lxcfs_pam_related
[wip] lxcfs,pam: disable cgmanager, enable pam_cgfs, lxcfs 2.0.7 -> 2.0.8
This commit is contained in:
commit
0bbf671b5a
@ -351,6 +351,8 @@ let
|
|||||||
${optionalString (cfg.enableKwallet)
|
${optionalString (cfg.enableKwallet)
|
||||||
("session optional ${pkgs.plasma5.kwallet-pam}/lib/security/pam_kwallet5.so" +
|
("session optional ${pkgs.plasma5.kwallet-pam}/lib/security/pam_kwallet5.so" +
|
||||||
" kwalletd=${pkgs.libsForQt5.kwallet.bin}/bin/kwalletd5")}
|
" kwalletd=${pkgs.libsForQt5.kwallet.bin}/bin/kwalletd5")}
|
||||||
|
${optionalString (config.virtualisation.lxc.lxcfs.enable)
|
||||||
|
"session optional ${pkgs.lxcfs}/lib/security/pam_cgfs.so -c freezer,memory,name=systemd,unified,cpuset"}
|
||||||
'');
|
'');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -28,13 +28,9 @@ in {
|
|||||||
|
|
||||||
###### implementation
|
###### implementation
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
services.cgmanager.enable = true;
|
|
||||||
|
|
||||||
systemd.services.lxcfs = {
|
systemd.services.lxcfs = {
|
||||||
description = "FUSE filesystem for LXC";
|
description = "FUSE filesystem for LXC";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
requires = [ "cgmanager.service" ];
|
|
||||||
after = [ "cgmanager.service" ];
|
|
||||||
before = [ "lxc.service" ];
|
before = [ "lxc.service" ];
|
||||||
restartIfChanged = false;
|
restartIfChanged = false;
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
@ -1,19 +1,24 @@
|
|||||||
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, help2man, fuse, pam }:
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, help2man, fuse, pam
|
||||||
|
, enableDebugBuild ? false }:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "lxcfs-2.0.7";
|
name = "lxcfs-2.0.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "lxc";
|
owner = "lxc";
|
||||||
repo = "lxcfs";
|
repo = "lxcfs";
|
||||||
rev = name;
|
rev = name;
|
||||||
sha256 = "1z6d52dc12rcplgc9jdgi3lbxm6ahlsjgs1k8v8kvn261xsq1m0a";
|
sha256 = "04dzn6snqgw0znf7a7qdm64400jirip6q8amcx5fmz4705qdqahc";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig help2man autoreconfHook ];
|
nativeBuildInputs = [ pkgconfig help2man autoreconfHook ];
|
||||||
buildInputs = [ fuse pam ];
|
buildInputs = [ fuse pam ];
|
||||||
|
|
||||||
|
preConfigure = stdenv.lib.optionalString enableDebugBuild ''
|
||||||
|
sed -i 's,#AM_CFLAGS += -DDEBUG,AM_CFLAGS += -DDEBUG,' Makefile.am
|
||||||
|
'';
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-init-script=systemd"
|
"--with-init-script=systemd"
|
||||||
"--sysconfdir=/etc"
|
"--sysconfdir=/etc"
|
||||||
|
@ -3289,7 +3289,9 @@ with pkgs;
|
|||||||
ltris = callPackage ../games/ltris { };
|
ltris = callPackage ../games/ltris { };
|
||||||
|
|
||||||
lxc = callPackage ../os-specific/linux/lxc { };
|
lxc = callPackage ../os-specific/linux/lxc { };
|
||||||
lxcfs = callPackage ../os-specific/linux/lxcfs { };
|
lxcfs = callPackage ../os-specific/linux/lxcfs {
|
||||||
|
enableDebugBuild = config.lxcfs.enableDebugBuild or false;
|
||||||
|
};
|
||||||
lxd = callPackage ../tools/admin/lxd { };
|
lxd = callPackage ../tools/admin/lxd { };
|
||||||
|
|
||||||
lzfse = callPackage ../tools/compression/lzfse { };
|
lzfse = callPackage ../tools/compression/lzfse { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user