[Libct] [PATCH 0/8] libct: add new abstraction for processes
Andrey Vagin
avagin at openvz.org
Wed Nov 5 01:40:17 PST 2014
Each process has own properties and we want to have a common mechanism to set
them for creating a new CT and entering in an existant CTs.
Andrey Vagin (8):
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
tests: check capabilities and process ids
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 | 57 +++++++++++++++++++++
test/ct_cgroup_basic.c | 4 +-
test/ct_cgroup_sub.c | 4 +-
test/ct_create.c | 15 +++++-
test/ct_create_exec.c | 4 +-
test/ct_enter.c | 6 ++-
test/ct_ext_mount.c | 4 +-
test/ct_kill_nons.c | 4 +-
test/ct_net_host.c | 4 +-
test/ct_net_veth.c | 4 +-
test/ct_pid_enter.c | 6 ++-
test/ct_private_subdir.c | 4 +-
test/ct_private_subdir_ns.c | 4 +-
test/ct_proc.c | 4 +-
test/ct_root.c | 4 +-
test/ct_root_enter.c | 6 ++-
test/ct_service.c | 4 +-
test/ct_userns.c | 4 +-
32 files changed, 455 insertions(+), 142 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