security_selinux: Drop virSecuritySELinuxSetFileconHelper

This function is no longer needed because after previous commits
it's just an alias to virSecuritySELinuxSetFilecon.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
Michal Privoznik 2019-08-22 10:25:24 +02:00
parent b71d54f447
commit eaa2a064fa

View File

@ -226,7 +226,7 @@ virSecuritySELinuxRecallLabel(const char *path,
} }
static int virSecuritySELinuxSetFileconHelper(virSecurityManagerPtr mgr, static int virSecuritySELinuxSetFilecon(virSecurityManagerPtr mgr,
const char *path, const char *path,
const char *tcon, const char *tcon,
bool remember); bool remember);
@ -281,7 +281,7 @@ virSecuritySELinuxTransactionRun(pid_t pid ATTRIBUTE_UNUSED,
const bool remember = item->remember && list->lock; const bool remember = item->remember && list->lock;
if (!item->restore) { if (!item->restore) {
rv = virSecuritySELinuxSetFileconHelper(list->manager, rv = virSecuritySELinuxSetFilecon(list->manager,
item->path, item->path,
item->tcon, item->tcon,
remember); remember);
@ -1332,7 +1332,7 @@ virSecuritySELinuxSetFileconImpl(const char *path,
static int static int
virSecuritySELinuxSetFileconHelper(virSecurityManagerPtr mgr, virSecuritySELinuxSetFilecon(virSecurityManagerPtr mgr,
const char *path, const char *path,
const char *tcon, const char *tcon,
bool remember) bool remember)
@ -1411,15 +1411,6 @@ virSecuritySELinuxSetFileconHelper(virSecurityManagerPtr mgr,
} }
static int
virSecuritySELinuxSetFilecon(virSecurityManagerPtr mgr,
const char *path,
const char *tcon,
bool remember)
{
return virSecuritySELinuxSetFileconHelper(mgr, path, tcon, remember);
}
static int static int
virSecuritySELinuxFSetFilecon(int fd, char *tcon) virSecuritySELinuxFSetFilecon(int fd, char *tcon)
{ {