[Libct] [PATCH 0/7] Add ability to set process properties

Andrey Vagin avagin at openvz.org
Thu Oct 30 01:55:07 PDT 2014


When we are starting a process in CT, we need to set uid, gid, groups,
cwd, caps, etc. These patches adds a new abstraction which is called
process descriptor.

Andrey Vagin (7):
  libct: add new abstraction for processes
  process: add a function to create a process descriptor
  ct: all function to execute smth in CT take a process descriptor
  ct: use propertios from a process descriptor
  libct: remove old stuff
  tests: update tests accoding with new changes of API
  go: add support of process descriptors

 go/libct.go              |  25 +++++++---
 go/libct_test.go         |   7 ++-
 src/Makefile             |   1 +
 src/ct.c                 |  54 ++++++---------------
 src/include/ct.h         |  21 ++-------
 src/include/process.h    |  44 +++++++++++++++++
 src/include/security.h   |   4 +-
 src/include/session.h    |   1 +
 src/include/uapi/libct.h |  44 ++++++++++-------
 src/libct.c              |  92 +++++++++++++++++++++++-------------
 src/process.c            | 120 +++++++++++++++++++++++++++++++++++++++++++++++
 src/security.c           |  19 +++++---
 src/session.c            |  20 ++++++++
 test/Makefile            |   3 +-
 test/ct_caps.c           |  54 +++++++++++++++++++++
 test/ct_create.c         |  15 +++++-
 test/ct_userns.c         |   4 +-
 17 files changed, 404 insertions(+), 124 deletions(-)
 create mode 100644 src/include/process.h
 create mode 100644 src/process.c
 create mode 100644 test/ct_caps.c

-- 
1.9.1



More information about the Libct mailing list