mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
security_dac: Fix const correctness
These two functions (virSecurityDACSetOwnership and virSecurityDACRestoreFileLabelInternal) do not really change @src. Make it const. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
8a5713e235
commit
ca010e9d76
@ -627,7 +627,7 @@ virSecurityDACSetOwnershipInternal(const virSecurityDACData *priv,
|
||||
|
||||
static int
|
||||
virSecurityDACSetOwnership(virSecurityManagerPtr mgr,
|
||||
virStorageSourcePtr src,
|
||||
const virStorageSource *src,
|
||||
const char *path,
|
||||
uid_t uid,
|
||||
gid_t gid)
|
||||
@ -655,7 +655,7 @@ virSecurityDACSetOwnership(virSecurityManagerPtr mgr,
|
||||
|
||||
static int
|
||||
virSecurityDACRestoreFileLabelInternal(virSecurityManagerPtr mgr,
|
||||
virStorageSourcePtr src,
|
||||
const virStorageSource *src,
|
||||
const char *path)
|
||||
{
|
||||
virSecurityDACDataPtr priv = virSecurityManagerGetPrivateData(mgr);
|
||||
|
Loading…
Reference in New Issue
Block a user