DescriptionLinux, Android: fix call to setpriority(2).
setpriority(), when used with PRIO_PROCESS, should affect the whole
process (i.e. thread group). On Linux the system call only affects one
thread (this bug is documented in
http://man7.org/linux/man-pages/man2/getpriority.2.html) and thus lets
the caller specify a tid.
This CL changes the call to setpriority(PRIO_PROCESS, tid, ...) to
setpriority(PRIO_PROCESS, 0, ...), which is strictly equivalent, albeit
slightly more correct.
This makes filtering system calls in our sandbox easier, as the current thread
id is not known to the BPF filter.
BUG=399473
R=mdempsky@chromium.org, willchan@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=286964
Patch Set 1 #
Total comments: 2
Patch Set 2 : Only substitute the thread id with 0 when appropriate. #
Messages
Total messages: 7 (0 generated)
|