1. 05 6月, 2020 1 次提交
  2. 04 6月, 2020 7 次提交
  3. 20 4月, 2020 1 次提交
  4. 14 4月, 2020 1 次提交
  5. 03 4月, 2020 1 次提交
  6. 27 3月, 2020 1 次提交
  7. 24 3月, 2020 2 次提交
  8. 23 3月, 2020 1 次提交
  9. 11 3月, 2020 2 次提交
  10. 04 3月, 2020 1 次提交
  11. 24 2月, 2020 2 次提交
  12. 23 2月, 2020 2 次提交
  13. 07 2月, 2020 1 次提交
  14. 29 1月, 2020 1 次提交
    • D
      bootstrap: remove 18 more gnulib modules · 3d63a187
      Daniel P. Berrangé 提交于
      * chown: use is conditionally compiled
      * configmake: functionality imported to Makefile.am
      * getaddrinfo: we have no portability problems
        with Windows impl
      * getpass: simplified impl is imported
      * mgetgroups: getgrouplist is used directly
      * net_if: header includes are conditionalized
      * netdb: header includes are conditionalized
      * passfd: simplified impl is imported
      * posix-shell: functionality was unused & removed
      * sigaction: usage is conditionalized
      * sigpipe: usage is conditionalized
      * stat-time: struct stat is used directly
      * strchrnul: usage is eliminated
      * strtok_r: usage is not a portability problem
      * sys_stat: usage is conditionalized
      * uname: rewritten to use native Win32 function to
        get host arch
      * waitpid: usage is conditionalized
      * wcwidth: rewritten using g_unichar APIs
      Reviewed-by: NPavel Hrdina <phrdina@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      3d63a187
  15. 17 1月, 2020 1 次提交
  16. 08 1月, 2020 1 次提交
  17. 07 1月, 2020 1 次提交
  18. 21 12月, 2019 1 次提交
  19. 18 12月, 2019 1 次提交
  20. 17 12月, 2019 2 次提交
  21. 10 12月, 2019 3 次提交
  22. 20 11月, 2019 1 次提交
  23. 15 11月, 2019 2 次提交
    • P
      vircgroup: introduce virCgroupV2DevicesAttachProg · 48423a0b
      Pavel Hrdina 提交于
      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: NPavel Hrdina <phrdina@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      48423a0b
    • P
      util: introduce virbpf helpers · 07946d6e
      Pavel Hrdina 提交于
      In order to implement devices controller with cgroup v2 we need to
      add support for BPF programs, cgroup v2 doesn't have devices controller.
      
      This introduces required helpers wrapping linux syscalls.
      Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      07946d6e
  24. 14 11月, 2019 1 次提交
  25. 09 11月, 2019 2 次提交