]> xenbits.xensource.com Git - libvirt.git/commit
Avoid warnings from nwfilter driver when run non-root
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 10 Feb 2011 10:46:21 +0000 (10:46 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 10 Feb 2011 14:29:57 +0000 (14:29 +0000)
commit525434dd6015c551131fd358324cf756f388f751
treee3d22933645bfbdcddbd49256e4305fe81adba94
parent10713b1b98268a6eb05ba0912c1f4643c25f2564
Avoid warnings from nwfilter driver when run non-root

When run non-root the nwfilter driver logs error messages about
being unable to find iptables/ebtables commands (they are in
/sbin which isn't in $PATH). The nwfilter driver can't ever work
as non-root, so simply skip it entirely thus avoiding the error
messages

* src/conf/nwfilter_conf.h, src/nwfilter/nwfilter_driver.c,
  src/nwfilter/nwfilter_gentech_driver.c,
  src/nwfilter/nwfilter_gentech_driver.h: Pass 'bool privileged'
  flag down to final driver impl
* src/nwfilter/nwfilter_ebiptables_driver.c: Skip initialization
  if not privileged
src/conf/nwfilter_conf.h
src/nwfilter/nwfilter_driver.c
src/nwfilter/nwfilter_ebiptables_driver.c
src/nwfilter/nwfilter_gentech_driver.c
src/nwfilter/nwfilter_gentech_driver.h