mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
security: Fix name for _virSecurityDACChardevCallbackData
It was clearly copied over from the SELinux driver without updating its name in the process. 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
24914690c7
commit
931990b7c2
@ -1671,7 +1671,7 @@ virSecurityDACRestoreChardevLabel(virSecurityManager *mgr,
|
||||
}
|
||||
|
||||
|
||||
struct _virSecuritySELinuxChardevCallbackData {
|
||||
struct _virSecurityDACChardevCallbackData {
|
||||
virSecurityManager *mgr;
|
||||
bool chardevStdioLogd;
|
||||
};
|
||||
@ -1682,7 +1682,7 @@ virSecurityDACRestoreChardevCallback(virDomainDef *def,
|
||||
virDomainChrDef *dev G_GNUC_UNUSED,
|
||||
void *opaque)
|
||||
{
|
||||
struct _virSecuritySELinuxChardevCallbackData *data = opaque;
|
||||
struct _virSecurityDACChardevCallbackData *data = opaque;
|
||||
|
||||
return virSecurityDACRestoreChardevLabel(data->mgr, def, dev->source,
|
||||
data->chardevStdioLogd);
|
||||
@ -1916,7 +1916,7 @@ virSecurityDACRestoreAllLabel(virSecurityManager *mgr,
|
||||
size_t i;
|
||||
int rc = 0;
|
||||
|
||||
struct _virSecuritySELinuxChardevCallbackData chardevData = {
|
||||
struct _virSecurityDACChardevCallbackData chardevData = {
|
||||
.mgr = mgr,
|
||||
.chardevStdioLogd = chardevStdioLogd,
|
||||
};
|
||||
@ -2018,7 +2018,7 @@ virSecurityDACSetChardevCallback(virDomainDef *def,
|
||||
virDomainChrDef *dev G_GNUC_UNUSED,
|
||||
void *opaque)
|
||||
{
|
||||
struct _virSecuritySELinuxChardevCallbackData *data = opaque;
|
||||
struct _virSecurityDACChardevCallbackData *data = opaque;
|
||||
|
||||
return virSecurityDACSetChardevLabel(data->mgr, def, dev->source,
|
||||
data->chardevStdioLogd);
|
||||
@ -2141,7 +2141,7 @@ virSecurityDACSetAllLabel(virSecurityManager *mgr,
|
||||
uid_t user;
|
||||
gid_t group;
|
||||
|
||||
struct _virSecuritySELinuxChardevCallbackData chardevData = {
|
||||
struct _virSecurityDACChardevCallbackData chardevData = {
|
||||
.mgr = mgr,
|
||||
.chardevStdioLogd = chardevStdioLogd,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user