]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
c/r: fcntl: add F_GETOWNER_UIDS option
authorCyrill Gorcunov <gorcunov@openvz.org>
Sat, 21 Jul 2012 00:55:16 +0000 (10:55 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Jul 2012 03:53:30 +0000 (13:53 +1000)
commitd7c2b4a4cf6bc4b0d4c1259ae982b31be82373b6
tree8f31609e3d203f30b0d805f1abdaa2fe4cb4e163
parent22402851bd2c4af0801879be8ee1532f72399533
c/r: fcntl: add F_GETOWNER_UIDS option

When we restore file descriptors we would like them to look exactly as
they were at dumping time.

With help of fcntl it's almost possible, the missing snippet is file
owners UIDs.

To be able to read their values the F_GETOWNER_UIDS is introduced.

This option is valid iif CONFIG_CHECKPOINT_RESTORE is turned on, otherwise
returning -EINVAL.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: "Serge E. Hallyn" <serge@hallyn.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/fcntl.c
include/asm-generic/fcntl.h
security/selinux/hooks.c