[PATCH 00/19] security_selinux: Refactor temporary variable cleanup

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

 



Some cleanups resutling from analyzing some selinux code.

Peter Krempa (19):
  security/security_driver.c/h: Fix function header formatting
  virSecuritySELinuxTransactionRun: Refactor cleanup
  virSecuritySELinuxMCSFind: Refactor variable clearing
  virSecuritySELinuxRestoreFileLabel: Refactor cleanup
  virSecuritySELinux(Set|Restore)TPMFileLabel: Automatically free
    'cancel_path'
  virSecuritySELinuxRestoreFileLabels: Refactor variable freeing
  virSecuritySELinux(Set|Restore)HostdevCapsLabel: Refactor cleanup
  virSecuritySELinux(Set|Restore)ChardevLabel: Refactor cleanup
  virSecuritySELinuxSet(Daemon)SocketLabel: Refactor cleanup
  virSecuritySELinuxSetTapFDLabel: Refactor cleanup
  security_selinux: Declare internal autoptr cleanup helper for
    'context_t'
  virSecuritySELinuxContextAddRange: Refactor cleanup of 'context_t'
  virSecuritySELinuxGenNewContext: Refactor cleanup
  virSecuritySELinuxReserveLabel: Refactor cleanup
  virSecuritySELinuxGetProcessLabel: Automatically free 'ctx' temp
    variable
  virSecuritySELinuxSetFilecon: Automatically free 'econ' temp variable
  virSecuritySELinuxRestoreInputLabel: Return values directly
  virSecuritySELinuxGenImageLabel: Refactor cleanup
  virSecuritySELinuxGetSecurityMountOptions: refactor printing

 src/security/security_driver.c  |   5 +-
 src/security/security_driver.h  |   5 +-
 src/security/security_selinux.c | 347 +++++++++++++-------------------
 3 files changed, 149 insertions(+), 208 deletions(-)

-- 
2.50.0




[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]

  Powered by Linux