clone: use kernel_ulong_t as type of flags parameter of unshare call

Kernel declares flags parameter as long and looks like x32 and n32
implement no compat for this call.

* clone.c (SYS_FUNC(unshare)): Use getarg_ull and printflags64 for
obtaining and parsing flags parameter.
This commit is contained in:
Eugene Syromyatnikov 2016-10-19 21:12:51 +03:00
parent 951f1b1163
commit 0cffca31df

View File

@ -153,7 +153,7 @@ SYS_FUNC(setns)
SYS_FUNC(unshare)
{
printflags_long(unshare_flags, tcp->u_arg[0], "CLONE_???");
printflags64(unshare_flags, getarg_ull(tcp, 0), "CLONE_???");
return RVAL_DECODED;
}