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)
|
||||
("session optional ${pkgs.plasma5.kwallet-pam}/lib/security/pam_kwallet5.so" +
|
||||
" 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
|
||||
config = mkIf cfg.enable {
|
||||
services.cgmanager.enable = true;
|
||||
|
||||
systemd.services.lxcfs = {
|
||||
description = "FUSE filesystem for LXC";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
requires = [ "cgmanager.service" ];
|
||||
after = [ "cgmanager.service" ];
|
||||
before = [ "lxc.service" ];
|
||||
restartIfChanged = false;
|
||||
serviceConfig = {
|
||||
|
@ -1,19 +1,24 @@
|
||||
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, help2man, fuse, pam }:
|
||||
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, help2man, fuse, pam
|
||||
, enableDebugBuild ? false }:
|
||||
|
||||
with stdenv.lib;
|
||||
stdenv.mkDerivation rec {
|
||||
name = "lxcfs-2.0.7";
|
||||
name = "lxcfs-2.0.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lxc";
|
||||
repo = "lxcfs";
|
||||
rev = name;
|
||||
sha256 = "1z6d52dc12rcplgc9jdgi3lbxm6ahlsjgs1k8v8kvn261xsq1m0a";
|
||||
sha256 = "04dzn6snqgw0znf7a7qdm64400jirip6q8amcx5fmz4705qdqahc";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig help2man autoreconfHook ];
|
||||
buildInputs = [ fuse pam ];
|
||||
|
||||
preConfigure = stdenv.lib.optionalString enableDebugBuild ''
|
||||
sed -i 's,#AM_CFLAGS += -DDEBUG,AM_CFLAGS += -DDEBUG,' Makefile.am
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
"--with-init-script=systemd"
|
||||
"--sysconfdir=/etc"
|
||||
|
@ -3289,7 +3289,9 @@ with pkgs;
|
||||
ltris = callPackage ../games/ltris { };
|
||||
|
||||
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 { };
|
||||
|
||||
lzfse = callPackage ../tools/compression/lzfse { };
|
||||
|
Loading…
Reference in New Issue
Block a user