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