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:
Andrea Bolognani 2023-11-21 17:36:56 +01:00
parent 24914690c7
commit 931990b7c2

View File

@ -1671,7 +1671,7 @@ virSecurityDACRestoreChardevLabel(virSecurityManager *mgr,
} }
struct _virSecuritySELinuxChardevCallbackData { struct _virSecurityDACChardevCallbackData {
virSecurityManager *mgr; virSecurityManager *mgr;
bool chardevStdioLogd; bool chardevStdioLogd;
}; };
@ -1682,7 +1682,7 @@ virSecurityDACRestoreChardevCallback(virDomainDef *def,
virDomainChrDef *dev G_GNUC_UNUSED, virDomainChrDef *dev G_GNUC_UNUSED,
void *opaque) void *opaque)
{ {
struct _virSecuritySELinuxChardevCallbackData *data = opaque; struct _virSecurityDACChardevCallbackData *data = opaque;
return virSecurityDACRestoreChardevLabel(data->mgr, def, dev->source, return virSecurityDACRestoreChardevLabel(data->mgr, def, dev->source,
data->chardevStdioLogd); data->chardevStdioLogd);
@ -1916,7 +1916,7 @@ virSecurityDACRestoreAllLabel(virSecurityManager *mgr,
size_t i; size_t i;
int rc = 0; int rc = 0;
struct _virSecuritySELinuxChardevCallbackData chardevData = { struct _virSecurityDACChardevCallbackData chardevData = {
.mgr = mgr, .mgr = mgr,
.chardevStdioLogd = chardevStdioLogd, .chardevStdioLogd = chardevStdioLogd,
}; };
@ -2018,7 +2018,7 @@ virSecurityDACSetChardevCallback(virDomainDef *def,
virDomainChrDef *dev G_GNUC_UNUSED, virDomainChrDef *dev G_GNUC_UNUSED,
void *opaque) void *opaque)
{ {
struct _virSecuritySELinuxChardevCallbackData *data = opaque; struct _virSecurityDACChardevCallbackData *data = opaque;
return virSecurityDACSetChardevLabel(data->mgr, def, dev->source, return virSecurityDACSetChardevLabel(data->mgr, def, dev->source,
data->chardevStdioLogd); data->chardevStdioLogd);
@ -2141,7 +2141,7 @@ virSecurityDACSetAllLabel(virSecurityManager *mgr,
uid_t user; uid_t user;
gid_t group; gid_t group;
struct _virSecuritySELinuxChardevCallbackData chardevData = { struct _virSecurityDACChardevCallbackData chardevData = {
.mgr = mgr, .mgr = mgr,
.chardevStdioLogd = chardevStdioLogd, .chardevStdioLogd = chardevStdioLogd,
}; };