[FFE] Simple client tool

Bug #1295227 reported by Serge Hallyn
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cgmanager (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Currently if logind has not set up the user's delegated cgroups, the user must do

      for d in $(grep -v ^# /proc/cgroups | awk '{print $1}'); do
                dbus-send --print-reply --address=unix:path=/sys/fs/cgroup/cgmanager/sock \
                        --type=method_call /org/linuxcontainers/cgmanager org.linuxcontainers.cgmanager0_0.Create \
                        string:$d string:$TUSER >/dev/null

                dbus-send --print-reply --address=unix:path=/sys/fs/cgroup/cgmanager/sock \
                        --type=method_call /org/linuxcontainers/cgmanager org.linuxcontainers.cgmanager0_0.Chown \
                        string:$d string:$TUSER int32:$(id -u $TUSER) int32:$(id -g $TUSER) >/dev/null

                dbus-send --print-reply --address=unix:path=/sys/fs/cgroup/cgmanager/sock \
                        --type=method_call /org/linuxcontainers/cgmanager org.linuxcontainers.cgmanager0_0.MovePid \
                        string:$d string:$TUSER int32:$$ >/dev/null
        done

Upstream cgmanager has a client script 'cgm' which allows this to be done with

sudo cgm create all $TUSER
sudo cgm chown all $TUSER $(id -u $TUSER) $(id -g $TUSER)
cgm movepid all $TUSER $$

It would be nice to get this program into the trusty package.

summary: - Simple client tool
+ [FFE] Simple client tool
Revision history for this message
Stéphane Graber (stgraber) wrote :

Seems like a worthy addition to me, go ahead.

Changed in cgmanager (Ubuntu):
status: New → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cgmanager - 0.23-0ubuntu1

---------------
cgmanager (0.23-0ubuntu1) trusty; urgency=medium

  * Pull upstream release v0.23
    - all patches are upstream, drop from debian/patches/
    - fix memory leak in scm handlers (LP: #1296804)
    - add a simple to use client tool (LP: #1295227)
  * debian/control: fix weak library dev dependency.
  * add cgmanager-utils package containing cgm client script
 -- Serge Hallyn <email address hidden> Mon, 24 Mar 2014 11:56:04 -0500

Changed in cgmanager (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.