libvirt/src/util
Eric Garver d5ae0cd178 util: virFirewallDGetPolicies: gracefully handle older firewalld
If the running firewalld doesn't support getPolicies() then we fallback
to the "libvirt" zone. Throwing an error log is excessive since we
gracefully fallback.

Avoids these logs:

error : virGDBusCallMethod:242 : error from service: \
GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod

Fixes: ab56f84976 ("util: add virFirewallDGetPolicies()")
Signed-off-by: Eric Garver <eric@garver.life>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2022-11-16 12:52:02 +01:00
..
glibcompat.c glibcompat: Provide proper override for 'g_hash_table_steal_extended' 2022-06-01 12:27:10 +02:00
glibcompat.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
iohelper.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
meson.build meson: Replace meson.source_root() with meson.project_source_root() 2022-10-10 15:06:09 +02:00
viralloc.c lib: Use g_clear_pointer() more 2022-02-08 08:42:07 +01:00
viralloc.h util: fix various ATTRIBUTE_NONNULL calls 2021-11-23 09:59:00 +01:00
virarch.c util: canonicalize 'arm64' arch to 'aarch64' 2021-11-30 10:51:33 +00:00
virarch.h util: add ARCH_IS_MIPS helper macro 2022-02-02 10:07:15 +01:00
virarptable.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virarptable.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
viraudit.c lib: Drop intermediary return variables 2021-10-25 12:48:46 +02:00
viraudit.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
virauth.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virauth.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
virauthconfig.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virauthconfig.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
virbitmap.c util: bitmap: Unify parsing of bitmaps 2021-12-10 16:36:25 +01:00
virbitmap.h virBitmapSetBitExpand: Remove return value 2021-12-10 16:36:25 +01:00
virbpf.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virbpf.h
virbuffer.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virbuffer.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
virccw.c util: add virCCWDeviceAddressFromString to virccw 2022-05-23 16:31:59 +02:00
virccw.h util: add virCCWDeviceAddressFromString to virccw 2022-05-23 16:31:59 +02:00
vircgroup.c Revert "cgroup/LXC: Do not condition availability of v2 by controllers" 2022-10-25 13:51:45 +02:00
vircgroup.h vircgroup: introduce virCgroupGetInode function 2021-08-17 12:35:45 +02:00
vircgroupbackend.c vircgroupbackend: Extend error messages in VIR_CGROUP_BACKEND_CALL() 2021-04-19 11:21:40 +02:00
vircgroupbackend.h vircgroupbackend: Extend error messages in VIR_CGROUP_BACKEND_CALL() 2021-04-19 11:21:40 +02:00
vircgrouppriv.h vircgroup: Fix virCgroupKillRecursive() wrt nested controllers 2021-04-19 11:21:40 +02:00
vircgroupv1.c vircgroupv1: fix null string specifier argument in virCgroupV1ValidatePlacement 2022-05-26 10:14:49 +02:00
vircgroupv1.h
vircgroupv2.c Revert "cgroup/LXC: Do not condition availability of v2 by controllers" 2022-10-25 13:51:45 +02:00
vircgroupv2.h
vircgroupv2devices.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
vircgroupv2devices.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
vircommand.c virCommand: Introduce APIs for core scheduling 2022-10-20 08:51:50 +02:00
vircommand.h virCommand: Introduce APIs for core scheduling 2022-10-20 08:51:50 +02:00
vircommandpriv.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
virconf.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virconf.h virconf: Make virConfSetValue() clear consumed pointer 2022-01-17 09:53:45 +01:00
vircrypto.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
vircrypto.h util: Remove use of virCryptoHaveCipher(VIR_CRYPTO_CIPHER_AES256CBC) 2021-09-22 14:53:55 +02:00
virdaemon.c util: fix prototype of virDaemonSetupLogging 2022-01-05 16:32:28 +01:00
virdaemon.h Exit on errors from virDaemonSetupLogging 2022-01-05 14:08:39 +01:00
virdevmapper.c virDevMapperGetTargets: Fix non-linux implementation 2021-09-21 14:30:19 +02:00
virdevmapper.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
virdnsmasq.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virdnsmasq.h virdnsmasq: Drop dnsmasqCapsNewFromBuffer() 2022-01-18 16:18:57 +01:00
virebtables.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virebtables.h
virendian.h
virenum.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virenum.h util: enum: Add helpers for converting virTristate* to a plain bool 2021-12-01 13:39:47 +01:00
virerror.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virerror.h util: virerror: Remove VIR_ERROR_MAX_LENGTH macro 2021-03-05 15:01:29 +01:00
virerrorpriv.h
virevent.c docstring: remove 'v' from since metadata 2022-05-04 18:11:06 +02:00
virevent.h
vireventglib.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
vireventglib.h
vireventglibwatch.c
vireventglibwatch.h
vireventthread.c util: do not unref event thread after joining it 2020-09-23 17:06:36 +02:00
vireventthread.h
virfcp.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virfcp.h
virfdstream.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virfdstream.h
virfile.c util: virFileIsSharedFSType: Simplify shared fs type declarations 2022-09-05 17:32:14 +02:00
virfile.h util: virfile: Don't use VIR_FILE_SHFS_GFS2 for glusterfs 2022-09-05 17:32:14 +02:00
virfilecache.c util: remove virObjectUnref() adapters 2022-07-15 16:44:39 -05:00
virfilecache.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
virfirewall.c util: don't use virFirewallRuleToString() to log the rule being applied 2022-08-24 12:22:47 -04:00
virfirewall.h util: make virFirewallRuleToString() global 2022-08-24 12:22:47 -04:00
virfirewalld.c util: virFirewallDGetPolicies: gracefully handle older firewalld 2022-11-16 12:52:02 +01:00
virfirewalld.h util: add virFirewallDPolicyExists() 2022-11-05 14:34:42 -04:00
virfirewalldpriv.h
virfirmware.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virfirmware.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
virgdbus.c lib: Use g_clear_pointer() more 2022-02-08 08:42:07 +01:00
virgdbus.h virgdbus: add DBus reply format check 2020-09-23 12:53:31 +02:00
virgettext.c
virgettext.h
virgic.c
virgic.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
virglibutil.c util: Add helpers for auto-freeing GSList filled with strings 2021-02-11 17:05:32 +01:00
virglibutil.h util: Add helpers for auto-freeing GSList filled with strings 2021-02-11 17:05:32 +01:00
virhash.c glibcompat: Provide proper override for 'g_hash_table_steal_extended' 2022-06-01 12:27:10 +02:00
virhash.h util: virhash: Replace 'virHashDataFree' by 'GDestroyNotify' 2021-12-01 13:53:12 +01:00
virhashcode.c
virhashcode.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
virhook.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virhook.h
virhostcpu.c virhostcpu: Fix build with clang and newest kernel headers 2022-08-25 10:52:58 +02:00
virhostcpu.h capabilities: Report number of host CPU physical address bits 2022-08-04 09:04:12 +02:00
virhostcpupriv.h
virhostmem.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virhostmem.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
virhostuptime.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virhostuptime.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
viridentity.c util: Remove return value from virTypedParamsCopy 2022-11-15 11:04:31 +01:00
viridentity.h virIdentityGetParameters: Return 'virTypedParamList' 2022-05-18 13:46:30 +02:00
viridentitypriv.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
virinitctl.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virinitctl.h
viriptables.c util: replace g_snprintf with g_autofreed g_strdup_printf in viriptables.c 2022-08-24 12:22:47 -04:00
viriptables.h network: eliminate code that uses default iptables chains 2021-12-13 13:37:31 -05:00
viriscsi.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
viriscsi.h
virjson.c virjson: Change virJSONValueObjectHasKey() signature 2022-08-01 10:24:34 +02:00
virjson.h virjson: Change virJSONValueObjectHasKey() signature 2022-08-01 10:24:34 +02:00
virkeycode.c
virkeycode.h
virkmod.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virkmod.h
virlease.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virlease.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
virlockspace.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virlockspace.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
virlog.c util: set facility when opening syslog channel 2022-01-19 15:32:54 +00:00
virlog.h util: Check for errors in virLogSetFromEnv 2022-01-05 14:08:40 +01:00
virmacaddr.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virmacaddr.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
virmacmap.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virmacmap.h conf: add cleanup func for virMacMap 2021-09-09 18:06:13 +02:00
virmdev.c nodedev: support 'mtty' device for testing 2022-08-10 11:19:03 -05:00
virmdev.h nodedev: support 'mtty' device for testing 2022-08-10 11:19:03 -05:00
virmodule.c
virmodule.h
virnetdev.c util: netdev: Dynamically allocate 'struct nlattr' in virNetDevSwitchdevFeature 2022-09-09 16:11:06 +02:00
virnetdev.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
virnetdevbandwidth.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virnetdevbandwidth.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
virnetdevbridge.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virnetdevbridge.h
virnetdevip.c lib: Use $PROG instead of $PROG_PATH 2021-09-21 14:09:44 +02:00
virnetdevip.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
virnetdevmacvlan.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virnetdevmacvlan.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
virnetdevmidonet.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virnetdevmidonet.h
virnetdevopenvswitch.c virNetDevOpenvswitchUpdateVlan: Use space for indentation 2022-02-10 13:10:35 +01:00
virnetdevopenvswitch.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
virnetdevpriv.h Allow VF vlanid to be passed as a pointer 2022-02-03 16:52:05 +01:00
virnetdevtap.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virnetdevtap.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
virnetdevveth.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virnetdevveth.h
virnetdevvlan.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virnetdevvlan.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
virnetdevvportprofile.c conf: Rewrite virNetDevVPortProfileCopy 2022-08-18 08:34:30 +02:00
virnetdevvportprofile.h conf: Rewrite virNetDevVPortProfileCopy 2022-08-18 08:34:30 +02:00
virnetlink.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virnetlink.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
virnodesuspend.c nodesuspend: Use automatic mutex management 2022-03-16 10:54:28 +01:00
virnodesuspend.h
virnuma.c src: Use g_steal_pointer() more 2022-02-01 19:01:49 +01:00
virnuma.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
virnvme.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virnvme.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
virobject.c util: remove virObjectUnref() adapters 2022-07-15 16:44:39 -05:00
virobject.h util: remove virObjectUnref() adapters 2022-07-15 16:44:39 -05:00
virpci.c vircpi: Add PCIe 5.0 and 6.0 link speeds 2022-07-12 09:07:45 +02:00
virpci.h vircpi: Add PCIe 5.0 and 6.0 link speeds 2022-07-12 09:07:45 +02:00
virpcivpd.c virpcivpd: reduce errors in log due to invalid VPD 2022-10-04 08:42:42 +02:00
virpcivpd.h Add a PCI/PCIe device VPD Parser 2021-10-21 17:34:04 +01:00
virpcivpdpriv.h Add a PCI/PCIe device VPD Parser 2021-10-21 17:34:04 +01:00
virperf.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virperf.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
virpidfile.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virpidfile.h virpidfile: Add virPidFileReadPathIfLocked func 2022-02-04 10:27:30 +01:00
virpolkit.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virpolkit.h util: Add virPolkitAgentAvailable 2021-11-23 12:51:09 +01:00
virportallocator.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virportallocator.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
virprobe.h
virprocess.c virprocess: Core Scheduling support 2022-10-20 08:51:50 +02:00
virprocess.h virprocess: Core Scheduling support 2022-10-20 08:51:50 +02:00
virqemu.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virqemu.h virQEMUBuildDriveCommandlineFromJSON: Open-code in callers 2021-10-12 10:26:00 +02:00
virrandom.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virrandom.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
virresctrl.c lib: Use g_clear_pointer() more 2022-02-08 08:42:07 +01:00
virresctrl.h util: Remove unused includes 2022-06-16 06:43:57 +02:00
virresctrlpriv.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
virrotatingfile.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virrotatingfile.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
virscsi.c virscsi: Drop @tmp from virSCSIDeviceListDel 2021-08-26 09:16:44 +02:00
virscsi.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
virscsihost.c util: quieten virSCSIHostGetUniqueId 2020-11-06 15:03:39 +01:00
virscsihost.h
virscsivhost.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virscsivhost.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
virseclabel.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virseclabel.h virSecurityLabelDef: Declare 'type' as 'virDomainSeclabelType' 2021-11-24 09:20:38 +01:00
virsecret.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virsecret.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
virsecureerase.c util: virsecureerase: Introduce virSecureEraseString 2021-02-03 13:07:13 +01:00
virsecureerase.h util: virsecureerase: Introduce virSecureEraseString 2021-02-03 13:07:13 +01:00
virsocket.c virsocket: Don't preserve errno in virSocketRecvFD() 2021-08-20 15:00:53 +02:00
virsocket.h
virsocketaddr.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virsocketaddr.h util: rename/move iptablesFormatNetwork to virSocketAddrFormatWithPrefix 2021-12-13 13:37:31 -05:00
virstoragefile.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virstoragefile.h Remove virStorageFileCanonicalizePath 2021-04-12 15:55:09 +02:00
virstring.c lib: Use g_clear_pointer() more 2022-02-08 08:42:07 +01:00
virstring.h virParseVersionString: rename to virStringParseVersion 2022-02-03 14:10:03 +01:00
virsysinfo.c lib: Use g_clear_pointer() more 2022-02-08 08:42:07 +01:00
virsysinfo.h conf: domain: Refactor cleanup in virSysinfoChassisParseXML 2022-11-02 09:22:56 +01:00
virsysinfopriv.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
virsystemd.c util: Fix machined servicename 2022-02-23 13:40:24 +01:00
virsystemd.h util: drop support for obsolete systemd in RHEL-7 2022-02-17 12:35:42 +00:00
virsystemdpriv.h
virthread.c virthread: Introduce virLockGuard 2022-02-01 17:19:23 +01:00
virthread.h virthread: Introduce VIR_WITH_MUTEX_LOCK_GUARD 2022-02-01 17:19:32 +01:00
virthreadjob.c
virthreadjob.h
virthreadpool.c virthreadpool: Cleanup 2022-02-11 11:03:44 +01:00
virthreadpool.h virthreadpool: Allow setting identity for workers 2021-10-27 17:11:29 +02:00
virtime.c util: o-z: use g_new0 2020-10-06 12:31:34 +02:00
virtime.h
virtpm.c util: Add parsing support for swtpm's cmdarg-migration capability 2022-11-09 12:26:22 +01:00
virtpm.h util: Add parsing support for swtpm's cmdarg-migration capability 2022-11-09 12:26:22 +01:00
virtypedparam-public.c docstring: remove 'v' from since metadata 2022-05-04 18:11:06 +02:00
virtypedparam.c util: Remove return value from virTypedParamsCopy 2022-11-15 11:04:31 +01:00
virtypedparam.h util: Remove return value from virTypedParamsCopy 2022-11-15 11:04:31 +01:00
viruri.c change return type of virURIParamAppend() to void type 2022-01-07 08:07:04 +01:00
viruri.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
virusb.c util: alloc: Reimplement VIR_APPEND_ELEMENT using virAppendElement 2021-08-06 08:53:25 +02:00
virusb.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
virutil.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virutil.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
viruuid.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
viruuid.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
virvhba.c virvhba.c: use g_autofree 2022-10-17 10:52:11 +02:00
virvhba.h
virvsock.c
virvsock.h
virxdrdefs.h
virxml.c util: xml: Refactor cleanup in virXMLValidateAgainstSchema 2022-11-02 09:26:03 +01:00
virxml.h util: xml: Remove unused virXPathULong* 2022-11-02 09:20:59 +01:00