[CRIU] [PATCH 10/11] files, pipes: Add dump and restore of file owners

Cyrill Gorcunov gorcunov at openvz.org
Wed Mar 28 09:36:40 EDT 2012


While fcntl provides almost all data file
owner handler might have, a missing piece reminds
uid and euid of owner.

For this sake a kernel patch is needed, which means
the crtools will refuse to work on old kernels (before
crtools-v3.3).

This patch brings dump/show/restore procedure of
file owners. Noticable detail of the patch -- the
image format is extended, again ;)

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 cr-dump.c       |   39 ++++++++++++++++++++++++++++++++++++++-
 cr-restore.c    |    6 ++++++
 cr-show.c       |    9 +++++++++
 files.c         |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 include/files.h |    1 +
 include/image.h |   11 +++++++++++
 6 files changed, 111 insertions(+), 1 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0010-files-pipes-Add-dump-and-restore-of-file-owners.patch
Type: text/x-patch
Size: 5596 bytes
Desc: not available
Url : http://openvz.org/pipermail/criu/attachments/20120328/93566ab1/0010-files-pipes-Add-dump-and-restore-of-file-owners.bin


More information about the CRIU mailing list