Commits

Bryan O'Sullivan  committed d4c29cf

Check sender of netlink packet.

  • Participants
  • Parent commits c9881ee
  • Tags v1.2.4

Comments (0)

Files changed (1)

             exit(1);
         }
 
+        if (addr.nl_pid != 0) {
+            do_log(LOG_ERR, "Netlink packet came from pid %d, not from kernel",
+                   addr.nl_pid);
+            return 0;
+        }
+
         struct nlmsghdr *hdr;
 
         for (hdr = (struct nlmsghdr*)buf; status >= sizeof(*hdr); ) {