/dev/gps0 permission denied
I am trying to set up my GPS to sync ntpd.
I know my GPS works as I can see the 4800 baud data on the serial port using gtkterm.
I set my ntp.conf:
server 127.127.20.0 mode 1 version 4 prefer
fudge 127.127.20.0 refid PPS flag2 1 flag3 time1 0.000 stratum 1
Okay I then made a symlink for /dev/gps0 to /dev/ttyS0
Its got full permissions
When I restart ntpd I get this error in the logs:
/dev/gps0 permission denied
It then freezes ntpd. I have to remove the symlink of /dev/gps0 and restart ntpd, I then get a plain it can't find /dev/gps0 and ntpd starts up.
I read somewhere someone said it is selinux. If it is what option do I need to modify in selinux to get ntpd and gps working?
Thanks!
|