Change the privilege checked from PRIV_SCHED_SET (set thread scheduler)
to PRIV_SCHED_SETPOLICY (set scheduling policy). This reflects what the
system call actually does, and allows users with realtime privilege (see
mac_priority(4)) to set scheduler policy through sched_setscheduler(2),
same as for other POSIX system calls (e.g. pthread_setschedparam(3)).
PR: 276962
Reported by: Jan Beich