[CRIU] [PATCH 0/2] zdtm: test if mlocked area restores without cred

Pavel Emelyanov xemul at parallels.com
Fri Sep 19 06:44:33 PDT 2014


On 09/12/2014 02:39 PM, Pavel Tikhomirov wrote:
> This is needed for example if c/r-ed task started as root, first
> mlocked > 16 pages(which is a limit for task without permission), then
> changes its user ID and thus may not have CAP_IPC_LOCK, when c/r 
> happen.
> 
> Pavel Tikhomirov (2):
>   zdtm: move get_smaps_bits to separate file for reuse
>   zdtm: test for mlocked area restores if programm have no credentials
> 
>  test/zdtm.sh                           |   2 +
>  test/zdtm/lib/zdtmtst.h                |   1 +
>  test/zdtm/live/static/Makefile         |   5 +-
>  test/zdtm/live/static/get_smaps_bits.c | 127 +++++++++++++++++++++++++++++++
>  test/zdtm/live/static/maps02.c         | 134 ---------------------------------
>  test/zdtm/live/static/mlock_setuid.c   |  55 ++++++++++++++
>  6 files changed, 189 insertions(+), 135 deletions(-)
>  create mode 100644 test/zdtm/live/static/get_smaps_bits.c
>  create mode 100644 test/zdtm/live/static/mlock_setuid.c
> 
applied


More information about the CRIU mailing list