mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
security: Fix alignment
Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
parent
bd58ce0ce3
commit
24914690c7
@ -412,9 +412,9 @@ virSecurityManagerGetPrivileged(virSecurityManager *mgr)
|
||||
*/
|
||||
int
|
||||
virSecurityManagerRestoreImageLabel(virSecurityManager *mgr,
|
||||
virDomainDef *vm,
|
||||
virStorageSource *src,
|
||||
virSecurityDomainImageLabelFlags flags)
|
||||
virDomainDef *vm,
|
||||
virStorageSource *src,
|
||||
virSecurityDomainImageLabelFlags flags)
|
||||
{
|
||||
VIR_LOCK_GUARD lock = virObjectLockGuard(mgr);
|
||||
|
||||
@ -1082,8 +1082,8 @@ virSecurityManagerDomainRestorePathLabel(virSecurityManager *mgr,
|
||||
*/
|
||||
int
|
||||
virSecurityManagerSetMemoryLabel(virSecurityManager *mgr,
|
||||
virDomainDef *vm,
|
||||
virDomainMemoryDef *mem)
|
||||
virDomainDef *vm,
|
||||
virDomainMemoryDef *mem)
|
||||
{
|
||||
VIR_LOCK_GUARD lock = virObjectLockGuard(mgr);
|
||||
|
||||
@ -1108,8 +1108,8 @@ virSecurityManagerSetMemoryLabel(virSecurityManager *mgr,
|
||||
*/
|
||||
int
|
||||
virSecurityManagerRestoreMemoryLabel(virSecurityManager *mgr,
|
||||
virDomainDef *vm,
|
||||
virDomainMemoryDef *mem)
|
||||
virDomainDef *vm,
|
||||
virDomainMemoryDef *mem)
|
||||
{
|
||||
VIR_LOCK_GUARD lock = virObjectLockGuard(mgr);
|
||||
|
||||
|
@ -43,8 +43,8 @@ typedef enum {
|
||||
VIR_SECURITY_MANAGER_PRIVILEGED)
|
||||
|
||||
virSecurityManager *virSecurityManagerNew(const char *name,
|
||||
const char *virtDriver,
|
||||
unsigned int flags);
|
||||
const char *virtDriver,
|
||||
unsigned int flags);
|
||||
|
||||
virSecurityManager *virSecurityManagerNewStack(virSecurityManager *primary);
|
||||
int virSecurityManagerStackAddNested(virSecurityManager *stack,
|
||||
@ -73,10 +73,10 @@ typedef int
|
||||
|
||||
|
||||
virSecurityManager *virSecurityManagerNewDAC(const char *virtDriver,
|
||||
uid_t user,
|
||||
gid_t group,
|
||||
unsigned int flags,
|
||||
virSecurityManagerDACChownCallback chownCallback);
|
||||
uid_t user,
|
||||
gid_t group,
|
||||
unsigned int flags,
|
||||
virSecurityManagerDACChownCallback chownCallback);
|
||||
|
||||
int virSecurityManagerPreFork(virSecurityManager *mgr);
|
||||
void virSecurityManagerPostFork(virSecurityManager *mgr);
|
||||
@ -184,8 +184,8 @@ int virSecurityManagerSetMemoryLabel(virSecurityManager *mgr,
|
||||
virDomainDef *vm,
|
||||
virDomainMemoryDef *mem);
|
||||
int virSecurityManagerRestoreMemoryLabel(virSecurityManager *mgr,
|
||||
virDomainDef *vm,
|
||||
virDomainMemoryDef *mem);
|
||||
virDomainDef *vm,
|
||||
virDomainMemoryDef *mem);
|
||||
|
||||
int virSecurityManagerSetInputLabel(virSecurityManager *mgr,
|
||||
virDomainDef *vm,
|
||||
|
Loading…
Reference in New Issue
Block a user