[LTP] [PATCH v2 3/3] llistxattr/llistxattr03.c: add new testcase

Cyril Hrubis chrubis@suse.cz
Thu Feb 25 14:52:45 CET 2016


Hi!
> +	ev_rdonly = SAFE_MMAP(NULL, NULL, page_size, PROT_READ | PROT_WRITE,
> +		MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
> +

...

> +	if (mprotect(ev_rdonly, page_size, PROT_READ)) {
> +		tst_brkm(TBROK | TERRNO, cleanup,
> +			"failed to set memory area read-only");
> +	}

I've removed the PROT_WRITE from the mmap() flags and the mprotect() and
pushed, thanks.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the Ltp mailing list