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

Pavel Tikhomirov ptikhomirov at parallels.com
Fri Sep 12 03:39:24 PDT 2014


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

-- 
1.9.3



More information about the CRIU mailing list