unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#40871] [PATCH] file-systems: mount the PID cgroup filesystem.
@ 2020-04-26 15:58 Jakub Kądziołka
  2020-04-27  6:41 ` Mathieu Othacehe
  0 siblings, 1 reply; 3+ messages in thread
From: Jakub Kądziołka @ 2020-04-26 15:58 UTC (permalink / raw)
  To: 40871

* gnu/system/file-systems.scm (%control-groups): Add "pids".
* gnu/services/docker.scm (docker-shepherd-service): Resolve a TODO.

This has allowed me to make a specific configuration of nsjail work.
---
 gnu/services/docker.scm     | 3 ++-
 gnu/system/file-systems.scm | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/gnu/services/docker.scm b/gnu/services/docker.scm
index 04f9127346..d6dc792821 100644
--- a/gnu/services/docker.scm
+++ b/gnu/services/docker.scm
@@ -1,5 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2018 Danny Milosavljevic <dannym@scratchpost.org>
+;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -94,7 +95,7 @@ loop-back communications.")
                           file-system-/sys/fs/cgroup/cpuset
                           file-system-/sys/fs/cgroup/devices
                           file-system-/sys/fs/cgroup/memory
-                          ; TODO: file-system-/sys/fs/cgroup/pids
+                          file-system-/sys/fs/cgroup/pids
                           networking
                           udev))
            (start #~(make-forkexec-constructor
diff --git a/gnu/system/file-systems.scm b/gnu/system/file-systems.scm
index 3b599efa8e..b41f66e943 100644
--- a/gnu/system/file-systems.scm
+++ b/gnu/system/file-systems.scm
@@ -1,5 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -389,7 +390,7 @@ TARGET in the other system."
                    ;; parent directory.
                    (dependencies (list parent))))
                '("cpuset" "cpu" "cpuacct" "memory" "devices" "freezer"
-                 "blkio" "perf_event")))))
+                 "blkio" "perf_event" "pids")))))
 
 (define %elogind-file-systems
   ;; We don't use systemd, but these file systems are needed for elogind,
-- 
2.26.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#40871] [PATCH] file-systems: mount the PID cgroup filesystem.
  2020-04-26 15:58 [bug#40871] [PATCH] file-systems: mount the PID cgroup filesystem Jakub Kądziołka
@ 2020-04-27  6:41 ` Mathieu Othacehe
  2020-04-27 12:16   ` Jakub Kądziołka
  0 siblings, 1 reply; 3+ messages in thread
From: Mathieu Othacehe @ 2020-04-27  6:41 UTC (permalink / raw)
  To: Jakub Kądziołka; +Cc: 40871


Hello Jakub,

This looks good to me.

Thanks,

Mathieu

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [bug#40871] [PATCH] file-systems: mount the PID cgroup filesystem.
  2020-04-27  6:41 ` Mathieu Othacehe
@ 2020-04-27 12:16   ` Jakub Kądziołka
  0 siblings, 0 replies; 3+ messages in thread
From: Jakub Kądziołka @ 2020-04-27 12:16 UTC (permalink / raw)
  To: Mathieu Othacehe; +Cc: 40871

[-- Attachment #1: Type: text/plain, Size: 259 bytes --]

On Mon, Apr 27, 2020 at 08:41:50AM +0200, Mathieu Othacehe wrote:
> 
> Hello Jakub,
> 
> This looks good to me.
> 
> Thanks,
> 
> Mathieu

Thanks for taking a look! I pushed the patch as commit
2ef4d273d13faccbc9e11a74cfdbd0a9f4f1c898.

Cheers!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-27 12:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-26 15:58 [bug#40871] [PATCH] file-systems: mount the PID cgroup filesystem Jakub Kądziołka
2020-04-27  6:41 ` Mathieu Othacehe
2020-04-27 12:16   ` Jakub Kądziołka

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).