Is it possible to temporarily increase the niceness of a process (i.e. lower its scheduling priority), then later increase it again to the original value, from within the process?
Every approach I try seems to require `CAP_SYS_NICE` or a very loose `ulimit -e`, and given that I just want to make the process nicer for a bit, and then set it back to its previous niceness, this seems like too big a restriction.
What am I missing?
(I have tried setpriority(), nice() and sched_setparam())