libvirt/po/POTFILES.in
Pavel Hrdina 48423a0b5d vircgroup: introduce virCgroupV2DevicesAttachProg
This function loads the BPF prog with prepared map into kernel and
attaches it into guest cgroup.  It can be also used to replace existing
program in the cgroup if we need to resize BPF map to store more rules
for devices. The old program will be closed and removed from kernel.

There are two possible ways how to create BPF program:

    - One way is to write simple C-like code which can by compiled into
      BPF object file which can be loaded into kernel using elfutils.

    - The second way is to define macros which look like assembler
      instructions and can be used directly to create BPF program that
      can be directly loaded into kernel.

Since the program is not too complex we can use the second option.

If there is no program, all devices are allowed, if there is some
program it is executed and based on the exit status the access is
denied for 0 and allowed for 1.

Our program will follow these rules:

    - first it will try to look for the specific key using major and
      minor to see if there is any rule for that specific device

    - if there is no specific rule it will try to look for any rule that
      matches only major of the device

    - if there is no match with major it will try the same but with
      minor of the device

    - as the last attempt it will try to look for rule for all devices
      and if there is no match it will return 0 to deny that access

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2019-11-15 12:58:05 +01:00

360 lines
12 KiB
Plaintext

@BUILDDIR@/src/access/viraccessapicheck.c
@BUILDDIR@/src/access/viraccessapichecklxc.c
@BUILDDIR@/src/access/viraccessapicheckqemu.c
@BUILDDIR@/src/admin/admin_client.h
@BUILDDIR@/src/admin/admin_server_dispatch_stubs.h
@BUILDDIR@/src/remote/remote_client_bodies.h
@BUILDDIR@/src/remote/remote_daemon_dispatch_stubs.h
@SRCDIR@/gnulib/lib/gai_strerror.c
@SRCDIR@/gnulib/lib/regcomp.c
@SRCDIR@/src/access/viraccessdriverpolkit.c
@SRCDIR@/src/access/viraccessmanager.c
@SRCDIR@/src/admin/admin_server.c
@SRCDIR@/src/admin/admin_server_dispatch.c
@SRCDIR@/src/admin/libvirt-admin.c
@SRCDIR@/src/bhyve/bhyve_capabilities.c
@SRCDIR@/src/bhyve/bhyve_command.c
@SRCDIR@/src/bhyve/bhyve_device.c
@SRCDIR@/src/bhyve/bhyve_domain.c
@SRCDIR@/src/bhyve/bhyve_driver.c
@SRCDIR@/src/bhyve/bhyve_monitor.c
@SRCDIR@/src/bhyve/bhyve_parse_command.c
@SRCDIR@/src/bhyve/bhyve_process.c
@SRCDIR@/src/conf/capabilities.c
@SRCDIR@/src/conf/checkpoint_conf.c
@SRCDIR@/src/conf/cpu_conf.c
@SRCDIR@/src/conf/device_conf.c
@SRCDIR@/src/conf/domain_addr.c
@SRCDIR@/src/conf/domain_capabilities.c
@SRCDIR@/src/conf/domain_conf.c
@SRCDIR@/src/conf/domain_event.c
@SRCDIR@/src/conf/interface_conf.c
@SRCDIR@/src/conf/netdev_bandwidth_conf.c
@SRCDIR@/src/conf/netdev_vlan_conf.c
@SRCDIR@/src/conf/netdev_vport_profile_conf.c
@SRCDIR@/src/conf/network_conf.c
@SRCDIR@/src/conf/networkcommon_conf.c
@SRCDIR@/src/conf/node_device_conf.c
@SRCDIR@/src/conf/node_device_util.c
@SRCDIR@/src/conf/numa_conf.c
@SRCDIR@/src/conf/nwfilter_conf.c
@SRCDIR@/src/conf/nwfilter_params.c
@SRCDIR@/src/conf/object_event.c
@SRCDIR@/src/conf/secret_conf.c
@SRCDIR@/src/conf/snapshot_conf.c
@SRCDIR@/src/conf/storage_adapter_conf.c
@SRCDIR@/src/conf/storage_conf.c
@SRCDIR@/src/conf/virchrdev.c
@SRCDIR@/src/conf/virdomainmomentobjlist.c
@SRCDIR@/src/conf/virdomainobjlist.c
@SRCDIR@/src/conf/virnetworkobj.c
@SRCDIR@/src/conf/virnetworkportdef.c
@SRCDIR@/src/conf/virnodedeviceobj.c
@SRCDIR@/src/conf/virnwfilterbindingdef.c
@SRCDIR@/src/conf/virnwfilterbindingobj.c
@SRCDIR@/src/conf/virnwfilterbindingobjlist.c
@SRCDIR@/src/conf/virnwfilterobj.c
@SRCDIR@/src/conf/virsavecookie.c
@SRCDIR@/src/conf/virsecretobj.c
@SRCDIR@/src/conf/virstorageobj.c
@SRCDIR@/src/cpu/cpu.c
@SRCDIR@/src/cpu/cpu_arm.c
@SRCDIR@/src/cpu/cpu_map.c
@SRCDIR@/src/cpu/cpu_ppc64.c
@SRCDIR@/src/cpu/cpu_s390.c
@SRCDIR@/src/cpu/cpu_x86.c
@SRCDIR@/src/datatypes.c
@SRCDIR@/src/driver.c
@SRCDIR@/src/esx/esx_driver.c
@SRCDIR@/src/esx/esx_network_driver.c
@SRCDIR@/src/esx/esx_storage_backend_iscsi.c
@SRCDIR@/src/esx/esx_storage_backend_vmfs.c
@SRCDIR@/src/esx/esx_storage_driver.c
@SRCDIR@/src/esx/esx_stream.c
@SRCDIR@/src/esx/esx_util.c
@SRCDIR@/src/esx/esx_util.h
@SRCDIR@/src/esx/esx_vi.c
@SRCDIR@/src/esx/esx_vi_methods.c
@SRCDIR@/src/esx/esx_vi_types.c
@SRCDIR@/src/hyperv/hyperv_driver.c
@SRCDIR@/src/hyperv/hyperv_util.c
@SRCDIR@/src/hyperv/hyperv_wmi.c
@SRCDIR@/src/interface/interface_backend_netcf.c
@SRCDIR@/src/interface/interface_backend_udev.c
@SRCDIR@/src/internal.h
@SRCDIR@/src/libvirt-domain-checkpoint.c
@SRCDIR@/src/libvirt-domain-snapshot.c
@SRCDIR@/src/libvirt-domain.c
@SRCDIR@/src/libvirt-host.c
@SRCDIR@/src/libvirt-lxc.c
@SRCDIR@/src/libvirt-network.c
@SRCDIR@/src/libvirt-nodedev.c
@SRCDIR@/src/libvirt-nwfilter.c
@SRCDIR@/src/libvirt-qemu.c
@SRCDIR@/src/libvirt-secret.c
@SRCDIR@/src/libvirt-storage.c
@SRCDIR@/src/libvirt-stream.c
@SRCDIR@/src/libvirt.c
@SRCDIR@/src/libxl/libxl_capabilities.c
@SRCDIR@/src/libxl/libxl_conf.c
@SRCDIR@/src/libxl/libxl_domain.c
@SRCDIR@/src/libxl/libxl_driver.c
@SRCDIR@/src/libxl/libxl_migration.c
@SRCDIR@/src/libxl/xen_common.c
@SRCDIR@/src/libxl/xen_xl.c
@SRCDIR@/src/libxl/xen_xm.c
@SRCDIR@/src/locking/lock_daemon.c
@SRCDIR@/src/locking/lock_daemon_dispatch.c
@SRCDIR@/src/locking/lock_driver_lockd.c
@SRCDIR@/src/locking/lock_driver_sanlock.c
@SRCDIR@/src/locking/lock_manager.c
@SRCDIR@/src/locking/sanlock_helper.c
@SRCDIR@/src/logging/log_daemon.c
@SRCDIR@/src/logging/log_daemon_dispatch.c
@SRCDIR@/src/logging/log_handler.c
@SRCDIR@/src/logging/log_manager.c
@SRCDIR@/src/lxc/lxc_cgroup.c
@SRCDIR@/src/lxc/lxc_conf.c
@SRCDIR@/src/lxc/lxc_container.c
@SRCDIR@/src/lxc/lxc_controller.c
@SRCDIR@/src/lxc/lxc_domain.c
@SRCDIR@/src/lxc/lxc_driver.c
@SRCDIR@/src/lxc/lxc_fuse.c
@SRCDIR@/src/lxc/lxc_hostdev.c
@SRCDIR@/src/lxc/lxc_native.c
@SRCDIR@/src/lxc/lxc_process.c
@SRCDIR@/src/network/bridge_driver.c
@SRCDIR@/src/network/bridge_driver_linux.c
@SRCDIR@/src/network/leaseshelper.c
@SRCDIR@/src/node_device/node_device_driver.c
@SRCDIR@/src/node_device/node_device_hal.c
@SRCDIR@/src/node_device/node_device_udev.c
@SRCDIR@/src/nwfilter/nwfilter_dhcpsnoop.c
@SRCDIR@/src/nwfilter/nwfilter_driver.c
@SRCDIR@/src/nwfilter/nwfilter_ebiptables_driver.c
@SRCDIR@/src/nwfilter/nwfilter_gentech_driver.c
@SRCDIR@/src/nwfilter/nwfilter_learnipaddr.c
@SRCDIR@/src/openvz/openvz_conf.c
@SRCDIR@/src/openvz/openvz_driver.c
@SRCDIR@/src/openvz/openvz_util.c
@SRCDIR@/src/phyp/phyp_driver.c
@SRCDIR@/src/qemu/qemu_agent.c
@SRCDIR@/src/qemu/qemu_alias.c
@SRCDIR@/src/qemu/qemu_block.c
@SRCDIR@/src/qemu/qemu_blockjob.c
@SRCDIR@/src/qemu/qemu_capabilities.c
@SRCDIR@/src/qemu/qemu_cgroup.c
@SRCDIR@/src/qemu/qemu_checkpoint.c
@SRCDIR@/src/qemu/qemu_command.c
@SRCDIR@/src/qemu/qemu_conf.c
@SRCDIR@/src/qemu/qemu_dbus.c
@SRCDIR@/src/qemu/qemu_domain.c
@SRCDIR@/src/qemu/qemu_domain_address.c
@SRCDIR@/src/qemu/qemu_driver.c
@SRCDIR@/src/qemu/qemu_extdevice.c
@SRCDIR@/src/qemu/qemu_firmware.c
@SRCDIR@/src/qemu/qemu_hostdev.c
@SRCDIR@/src/qemu/qemu_hotplug.c
@SRCDIR@/src/qemu/qemu_interface.c
@SRCDIR@/src/qemu/qemu_interop_config.c
@SRCDIR@/src/qemu/qemu_migration.c
@SRCDIR@/src/qemu/qemu_migration_cookie.c
@SRCDIR@/src/qemu/qemu_migration_params.c
@SRCDIR@/src/qemu/qemu_monitor.c
@SRCDIR@/src/qemu/qemu_monitor_json.c
@SRCDIR@/src/qemu/qemu_monitor_text.c
@SRCDIR@/src/qemu/qemu_process.c
@SRCDIR@/src/qemu/qemu_qapi.c
@SRCDIR@/src/qemu/qemu_slirp.c
@SRCDIR@/src/qemu/qemu_tpm.c
@SRCDIR@/src/qemu/qemu_vhost_user.c
@SRCDIR@/src/qemu/qemu_vhost_user_gpu.c
@SRCDIR@/src/remote/remote_daemon.c
@SRCDIR@/src/remote/remote_daemon_config.c
@SRCDIR@/src/remote/remote_daemon_dispatch.c
@SRCDIR@/src/remote/remote_daemon_stream.c
@SRCDIR@/src/remote/remote_driver.c
@SRCDIR@/src/rpc/virkeepalive.c
@SRCDIR@/src/rpc/virnetclient.c
@SRCDIR@/src/rpc/virnetclientprogram.c
@SRCDIR@/src/rpc/virnetclientstream.c
@SRCDIR@/src/rpc/virnetdaemon.c
@SRCDIR@/src/rpc/virnetlibsshsession.c
@SRCDIR@/src/rpc/virnetmessage.c
@SRCDIR@/src/rpc/virnetsaslcontext.c
@SRCDIR@/src/rpc/virnetserver.c
@SRCDIR@/src/rpc/virnetserverclient.c
@SRCDIR@/src/rpc/virnetserverprogram.c
@SRCDIR@/src/rpc/virnetserverservice.c
@SRCDIR@/src/rpc/virnetsocket.c
@SRCDIR@/src/rpc/virnetsshsession.c
@SRCDIR@/src/rpc/virnettlscontext.c
@SRCDIR@/src/secret/secret_driver.c
@SRCDIR@/src/secret/secret_util.c
@SRCDIR@/src/security/security_apparmor.c
@SRCDIR@/src/security/security_dac.c
@SRCDIR@/src/security/security_driver.c
@SRCDIR@/src/security/security_manager.c
@SRCDIR@/src/security/security_selinux.c
@SRCDIR@/src/security/security_util.c
@SRCDIR@/src/security/virt-aa-helper.c
@SRCDIR@/src/storage/parthelper.c
@SRCDIR@/src/storage/storage_backend.c
@SRCDIR@/src/storage/storage_backend_disk.c
@SRCDIR@/src/storage/storage_backend_fs.c
@SRCDIR@/src/storage/storage_backend_gluster.c
@SRCDIR@/src/storage/storage_backend_iscsi.c
@SRCDIR@/src/storage/storage_backend_iscsi_direct.c
@SRCDIR@/src/storage/storage_backend_logical.c
@SRCDIR@/src/storage/storage_backend_mpath.c
@SRCDIR@/src/storage/storage_backend_rbd.c
@SRCDIR@/src/storage/storage_backend_scsi.c
@SRCDIR@/src/storage/storage_backend_sheepdog.c
@SRCDIR@/src/storage/storage_backend_vstorage.c
@SRCDIR@/src/storage/storage_backend_zfs.c
@SRCDIR@/src/storage/storage_driver.c
@SRCDIR@/src/storage/storage_file_fs.c
@SRCDIR@/src/storage/storage_file_gluster.c
@SRCDIR@/src/storage/storage_util.c
@SRCDIR@/src/test/test_driver.c
@SRCDIR@/src/util/iohelper.c
@SRCDIR@/src/util/viralloc.c
@SRCDIR@/src/util/virarptable.c
@SRCDIR@/src/util/viraudit.c
@SRCDIR@/src/util/virauth.c
@SRCDIR@/src/util/virauthconfig.c
@SRCDIR@/src/util/virbitmap.c
@SRCDIR@/src/util/virbpf.c
@SRCDIR@/src/util/vircgroup.c
@SRCDIR@/src/util/vircgroupbackend.c
@SRCDIR@/src/util/vircgroupbackend.h
@SRCDIR@/src/util/vircgroupv1.c
@SRCDIR@/src/util/vircgroupv2.c
@SRCDIR@/src/util/vircgroupv2devices.c
@SRCDIR@/src/util/virclosecallbacks.c
@SRCDIR@/src/util/vircommand.c
@SRCDIR@/src/util/virconf.c
@SRCDIR@/src/util/vircrypto.c
@SRCDIR@/src/util/virdbus.c
@SRCDIR@/src/util/virdnsmasq.c
@SRCDIR@/src/util/virerror.c
@SRCDIR@/src/util/virerror.h
@SRCDIR@/src/util/vireventpoll.c
@SRCDIR@/src/util/virfcp.c
@SRCDIR@/src/util/virfdstream.c
@SRCDIR@/src/util/virfile.c
@SRCDIR@/src/util/virfilecache.c
@SRCDIR@/src/util/virfirewall.c
@SRCDIR@/src/util/virfirewalld.c
@SRCDIR@/src/util/virfirmware.c
@SRCDIR@/src/util/virhash.c
@SRCDIR@/src/util/virhook.c
@SRCDIR@/src/util/virhostcpu.c
@SRCDIR@/src/util/virhostdev.c
@SRCDIR@/src/util/virhostmem.c
@SRCDIR@/src/util/virhostuptime.c
@SRCDIR@/src/util/viridentity.c
@SRCDIR@/src/util/virinitctl.c
@SRCDIR@/src/util/viriptables.c
@SRCDIR@/src/util/viriscsi.c
@SRCDIR@/src/util/virjson.c
@SRCDIR@/src/util/virkeyfile.c
@SRCDIR@/src/util/virlease.c
@SRCDIR@/src/util/virlockspace.c
@SRCDIR@/src/util/virlog.c
@SRCDIR@/src/util/virmacmap.c
@SRCDIR@/src/util/virmdev.c
@SRCDIR@/src/util/virmodule.c
@SRCDIR@/src/util/virnetdev.c
@SRCDIR@/src/util/virnetdevbandwidth.c
@SRCDIR@/src/util/virnetdevbridge.c
@SRCDIR@/src/util/virnetdevip.c
@SRCDIR@/src/util/virnetdevmacvlan.c
@SRCDIR@/src/util/virnetdevmidonet.c
@SRCDIR@/src/util/virnetdevopenvswitch.c
@SRCDIR@/src/util/virnetdevtap.c
@SRCDIR@/src/util/virnetdevveth.c
@SRCDIR@/src/util/virnetdevvportprofile.c
@SRCDIR@/src/util/virnetlink.c
@SRCDIR@/src/util/virnodesuspend.c
@SRCDIR@/src/util/virnuma.c
@SRCDIR@/src/util/virobject.c
@SRCDIR@/src/util/virpci.c
@SRCDIR@/src/util/virperf.c
@SRCDIR@/src/util/virpidfile.c
@SRCDIR@/src/util/virpolkit.c
@SRCDIR@/src/util/virportallocator.c
@SRCDIR@/src/util/virprocess.c
@SRCDIR@/src/util/virqemu.c
@SRCDIR@/src/util/virrandom.c
@SRCDIR@/src/util/virresctrl.c
@SRCDIR@/src/util/virrotatingfile.c
@SRCDIR@/src/util/virscsi.c
@SRCDIR@/src/util/virscsihost.c
@SRCDIR@/src/util/virscsivhost.c
@SRCDIR@/src/util/virsecret.c
@SRCDIR@/src/util/virsocketaddr.c
@SRCDIR@/src/util/virstorageencryption.c
@SRCDIR@/src/util/virstoragefile.c
@SRCDIR@/src/util/virstoragefilebackend.c
@SRCDIR@/src/util/virstring.c
@SRCDIR@/src/util/virsysinfo.c
@SRCDIR@/src/util/virsystemd.c
@SRCDIR@/src/util/virthreadjob.c
@SRCDIR@/src/util/virthreadpool.c
@SRCDIR@/src/util/virtime.c
@SRCDIR@/src/util/virtpm.c
@SRCDIR@/src/util/virtypedparam-public.c
@SRCDIR@/src/util/virtypedparam.c
@SRCDIR@/src/util/viruri.c
@SRCDIR@/src/util/virusb.c
@SRCDIR@/src/util/virutil.c
@SRCDIR@/src/util/virvhba.c
@SRCDIR@/src/util/virvsock.c
@SRCDIR@/src/util/virxml.c
@SRCDIR@/src/vbox/vbox_MSCOMGlue.c
@SRCDIR@/src/vbox/vbox_XPCOMCGlue.c
@SRCDIR@/src/vbox/vbox_common.c
@SRCDIR@/src/vbox/vbox_driver.c
@SRCDIR@/src/vbox/vbox_network.c
@SRCDIR@/src/vbox/vbox_snapshot_conf.c
@SRCDIR@/src/vbox/vbox_storage.c
@SRCDIR@/src/vbox/vbox_tmpl.c
@SRCDIR@/src/vmware/vmware_conf.c
@SRCDIR@/src/vmware/vmware_driver.c
@SRCDIR@/src/vmx/vmx.c
@SRCDIR@/src/vz/vz_driver.c
@SRCDIR@/src/vz/vz_sdk.c
@SRCDIR@/src/vz/vz_utils.c
@SRCDIR@/src/vz/vz_utils.h
@SRCDIR@/tests/virpolkittest.c
@SRCDIR@/tools/libvirt-guests.sh.in
@SRCDIR@/tools/virsh-checkpoint.c
@SRCDIR@/tools/virsh-completer-host.c
@SRCDIR@/tools/virsh-console.c
@SRCDIR@/tools/virsh-domain-monitor.c
@SRCDIR@/tools/virsh-domain.c
@SRCDIR@/tools/virsh-edit.c
@SRCDIR@/tools/virsh-host.c
@SRCDIR@/tools/virsh-interface.c
@SRCDIR@/tools/virsh-network.c
@SRCDIR@/tools/virsh-nodedev.c
@SRCDIR@/tools/virsh-nwfilter.c
@SRCDIR@/tools/virsh-pool.c
@SRCDIR@/tools/virsh-secret.c
@SRCDIR@/tools/virsh-snapshot.c
@SRCDIR@/tools/virsh-util.c
@SRCDIR@/tools/virsh-volume.c
@SRCDIR@/tools/virsh.c
@SRCDIR@/tools/virsh.h
@SRCDIR@/tools/virt-admin.c
@SRCDIR@/tools/virt-host-validate-bhyve.c
@SRCDIR@/tools/virt-host-validate-common.c
@SRCDIR@/tools/virt-host-validate-lxc.c
@SRCDIR@/tools/virt-host-validate-qemu.c
@SRCDIR@/tools/virt-host-validate.c
@SRCDIR@/tools/virt-login-shell-helper.c
@SRCDIR@/tools/vsh-table.c
@SRCDIR@/tools/vsh.c
@SRCDIR@/tools/vsh.h