ospf6d: add verifying user's privileges
diff --git a/ospf6d/ospf6_main.c b/ospf6d/ospf6_main.c
index c4b9124..d40bd97 100644
--- a/ospf6d/ospf6_main.c
+++ b/ospf6d/ospf6_main.c
@@ -291,6 +291,13 @@
         }
     }
 
+  if (geteuid () != 0)
+    {
+      errno = EPERM;
+      perror (progname);
+      exit (1);
+    }
+
   /* thread master */
   master = thread_master_create ();