On Mon, Aug 06, 2018 at 10:15:21AM +0200, Miroslav Lichvar wrote:
> A much better approach would be to add an option for dropping root
> privileges to ptp4l. Start with root, open all PHCs, bind sockets, etc
> and then drop the privileges, keeping only the SYS_TIME and maybe the
> BIND_SERVICE capabilities.

I put together a quick patch that implements dropping of the root
privileges. There are few issues. One is that ptp4l is not able to
respond to pmc running under root. pmc would have to chmod() or
chown() it. Also, all sockets would probably have to be moved to a new
directory owned by the user under which ptp4l is running.

Would it make sense to support this in linuxptp?

-- 
Miroslav Lichvar

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to