[PATCH 3/3] security_selinux: fix indentation

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

 



---
 src/security/security_selinux.c | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

diff --git a/src/security/security_selinux.c b/src/security/security_selinux.c
index ae2af0c..2f95f85 100644
--- a/src/security/security_selinux.c
+++ b/src/security/security_selinux.c
@@ -1119,7 +1119,7 @@ virSecuritySELinuxRestoreSecurityTPMFileLabelInt(virSecurityManagerPtr mgr,
 
         if ((cancel_path = virTPMCreateCancelPath(tpmdev)) != NULL) {
             if (virSecuritySELinuxRestoreSecurityFileLabel(mgr,
-                                  cancel_path) < 0)
+                                                           cancel_path) < 0)
                 rc = -1;
             VIR_FREE(cancel_path);
         }
@@ -1293,8 +1293,7 @@ virSecuritySELinuxSetDiskLabel(virSecurityManagerPtr mgr,
     virStorageSourcePtr next;
 
     for (next = disk->src; next; next = next->backingStore) {
-        if (virSecuritySELinuxSetImageLabelInternal(mgr, def, next,
-                                                            first) < 0)
+        if (virSecuritySELinuxSetImageLabelInternal(mgr, def, next, first) < 0)
             return -1;
 
         first = false;
@@ -1633,14 +1632,14 @@ virSecuritySELinuxRestoreSecurityHostdevSubsysLabel(virSecurityManagerPtr mgr,
                              scsihostsrc->target, scsihostsrc->unit,
                              dev->readonly, dev->shareable);
 
-            if (!scsi)
-                goto done;
+        if (!scsi)
+            goto done;
 
-            ret = virSCSIDeviceFileIterate(scsi, virSecuritySELinuxRestoreSecuritySCSILabel, mgr);
-            virSCSIDeviceFree(scsi);
+        ret = virSCSIDeviceFileIterate(scsi, virSecuritySELinuxRestoreSecuritySCSILabel, mgr);
+        virSCSIDeviceFree(scsi);
 
-            break;
-       }
+        break;
+    }
 
     default:
         ret = 0;
@@ -1958,7 +1957,7 @@ virSecuritySELinuxRestoreAllLabel(virSecurityManagerPtr mgr,
         virDomainDiskDefPtr disk = def->disks[i];
 
         if (virSecuritySELinuxRestoreImageLabelInt(mgr, def, disk->src,
-                                                           migrated) < 0)
+                                                   migrated) < 0)
             rc = -1;
     }
 
-- 
2.4.6

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