I thought it might be because the setpriority() call was tried after
permissions were dropped but running as UID 0 doesn't change the
"niceness" as seen in ps output


$ (ps alx | head -1) ; (ps alx | grep ntpd) | grep -v grep
F   UID   PID  PPID PRI  NI    VSZ   RSS WCHAN  STAT TTY        TIME COMMAND
5     0 14085     1  20   0  32404  1976 poll_s Ss   ?          0:00 
/usr/sbin/ntpd -p /var/run/ntpd.pid -g -N -c /var/lib/ntp/ntp.conf.dhcp

UID = 0, PRI = 20, NI = 0

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to ntp in Ubuntu.
https://bugs.launchpad.net/bugs/229632

Title:
  ntpd should run niced

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ntp/+bug/229632/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to