title: Apache Custom Module permission issue with calling Libipset
body: <p>I'm working on an apache module that can check the libipset API to test if an IP is in a list. This is being used as a backup firewall for proxied connections.</p>
  <p>I've managed to get everything working up until the C script calls <code>type = ipset_type_get(session, cmd);</code>. After testing, I believe the main problem is that libipset requires higher permissions. I'm not getting a permission error, just a null value. However, when I run the C script directly using apache as the user, I can get it to work when I grant sudo privileges to apache for the script.</p>
  <p>I've tried 1 and 2 in the answers <a href="https://stackoverflow.com/questions/36389138/how-to-run-apache-module-with-superuser-privileges">here</a> and they've both failed. Is there any other way to force root for the ipset API call?</p>