These patches add support for the prctl options PR_GET_NAME
and PR_SET_NAME. In particular, perl 5.14 will use PR_SET_NAME
if you change the value of $0, which means that adduser will
fail if run under qemu with a sufficiently modern perl.

Patch one is just indentation cleanup, the meat is patch 2.

The only other prctl options which take pointer arguments are
all architecture specific, so there didn't seem much point in
adding them (they all work like PR_GET_PDEATHSIG in that they
pass an int* to be filled in); we'd have to actually emulate them
if we cared about them.

Peter Maydell (2):
  linux-user/syscall.c: Fix indentation in prctl handling
  linux-user: Add support for prctl PR_GET_NAME and PR_SET_NAME

 linux-user/syscall.c |   53 ++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 39 insertions(+), 14 deletions(-)


Reply via email to