[PATCH v2 0/2] extend virGetUserID and virGetGroupID

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch series moves the logic for parsing users and groups in a
similar way to coreutils' chown from security_dac.c to util.c, as
suggested by Eric Blake.

This change has two majors side effects:

 1. Some error messages that were issued when security_dac.c tried to
    parse an ID as a name are no longer issued.
 2. The keys `user` and `group` in qemu.conf can now be defined in the
    same way that in DAC security labels.

Peter Krempa's fix for correctly handling errors returned by getpwnam_r and
getgrnam_r is squashed into this patch series.

Marcelo Cerri (2):
  util: extend virGetUserID and virGetGroupID to support names and IDs
  security: update user and group parsing in security_dac.c

 src/security/security_dac.c |  45 +++-----------
 src/util/util.c             | 143 ++++++++++++++++++++++++++++++++------------
 2 files changed, 112 insertions(+), 76 deletions(-)

-- 
1.7.12

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]