1
0

102-iptables-disable-modprobe.patch 409 B

123456789101112131415161718
  1. --- a/libxtables/xtables.c
  2. +++ b/libxtables/xtables.c
  3. @@ -360,6 +360,7 @@ static char *get_modprobe(void)
  4. int xtables_insmod(const char *modname, const char *modprobe, bool quiet)
  5. {
  6. +#if 0
  7. char *buf = NULL;
  8. char *argv[4];
  9. int status;
  10. @@ -394,6 +395,7 @@ int xtables_insmod(const char *modname,
  11. free(buf);
  12. if (WIFEXITED(status) && WEXITSTATUS(status) == 0)
  13. return 0;
  14. +#endif
  15. return -1;
  16. }