[CRIU] [PATCH 0/2] rpc: add work_dir support
Ruslan Kuprieiev
kupruser at gmail.com
Tue Feb 4 00:10:24 PST 2014
Add work_dir_fd to RPC, so RPC is closer to CLI.
We also ban relative path in log_file field. There are two reasons for this.
First, process might be in different namespace, so it is right to give us fd
for work dir, just like we did with images dir. Second, as service might be ran
as root, it is unsafe to give an opportunity to fill any dir with trash.
If you wan't to put logs/stats somwhere else than images_dir, you could
set work_dir_fd.
Ruslan Kuprieiev (2):
rpc: add work_dir_fd
service: add work_dir_fd support
cr-service.c | 29 ++++++++++++++++++++++-------
protobuf/rpc.proto | 4 +++-
2 files changed, 25 insertions(+), 8 deletions(-)
--
1.8.3.2
More information about the CRIU
mailing list