Hi Martin,
> +static void setup(void)
> +{
> +	int real_uid = getuid();
> +	int real_gid = getgid();
Don't we want to add here taint check (you had it in v1)?
tst_taint_init(TST_TAINT_W | TST_TAINT_D);
Otherwise whole patchset LGTM.
Kind regards,
Petr