[LTP] [PATCH v2 4/4] syscalls/setpriority01: Use new user id to avoid messing system environment

Cyril Hrubis chrubis@suse.cz
Wed Jan 4 13:13:33 CET 2017


Hi!
> setpriority(PRIO_USER, root_proc, prio) sets the priorities of
> all the root processes to the specified value, though this is
> kind of expected for the test, it impacts the system environment.
> 
> Create a new user and set it privileged, then test with the temp
> user id to ensure the test safety.

I've dropped all the capability stuff from the patch since the call to
setpriority() is now done in the main test process that runs under the
root. The child is create just so that we have a process whoose priority
will be changed.

Pushed with that change, thanks.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list