[cgmanager-devel] [cgmanager/cgmanager] c02454: cgmanager_chown: pass a valid pid

GitHub noreply at github.com
Tue Jan 28 17:28:07 UTC 2014

  Branch: refs/heads/master
  Home:   https://github.com/cgmanager/cgmanager
  Commit: c0245477433116bf1f6a09bb90347bc94d0f8550
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2014-01-28 (Tue, 28 Jan 2014)

  Changed paths:
    M frontend.c

  Log Message:
  cgmanager_chown: pass a valid pid

The cgmanager ignores the victim pid passed to it, but the proxy has to
pass it along to the manager in an scm cred.  If proxy tries to pass an
scm_cred with pid 0, the kernel will refuse as the pid is not valid.  So
just send our own pid.

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>

More information about the cgmanager-devel mailing list