libvirt/src/security
Andrea Bolognani 6c0d0210cb src: Make virStr*cpy*() functions return an int
Currently, the functions return a pointer to the
destination buffer on success or NULL on failure.

Not only does this kind of error handling look quite
alien in the context of libvirt, where most functions
return zero on success and a negative int on failure,
but it's also somewhat pointless because unless there's
been a failure the returned pointer will be the same
one passed in by the user, thus offering no additional
value.

Change the functions so that they return an int
instead.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
2018-07-23 14:27:30 +02:00
..
Makefile.inc.am make: split security driver build rules into security/Makefile.inc.am 2018-03-05 17:12:01 +00:00
security_apparmor.c src: Make virStr*cpy*() functions return an int 2018-07-23 14:27:30 +02:00
security_apparmor.h
security_dac.c security: Add DAC and SELinux security for tpm-emulator 2018-06-06 10:48:41 -04:00
security_dac.h
security_driver.c
security_driver.h security: Label the external swtpm with SELinux labels 2018-06-06 10:48:41 -04:00
security_manager.c security: Remove VIR_SECURITY_MANAGER_ALLOW_DISK_PROBE 2018-06-08 09:26:37 +02:00
security_manager.h security: Remove VIR_SECURITY_MANAGER_ALLOW_DISK_PROBE 2018-06-08 09:26:37 +02:00
security_nop.c
security_nop.h
security_selinux.c security: Label the external swtpm with SELinux labels 2018-06-06 10:48:41 -04:00
security_selinux.h
security_stack.c security: Label the external swtpm with SELinux labels 2018-06-06 10:48:41 -04:00
security_stack.h
virt-aa-helper.c src: Make virStr*cpy*() functions return an int 2018-07-23 14:27:30 +02:00