提交 eaa2a064 编写于 作者: M Michal Privoznik

security_selinux: Drop virSecuritySELinuxSetFileconHelper

This function is no longer needed because after previous commits
it's just an alias to virSecuritySELinuxSetFilecon.
Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
Reviewed-by: NMartin Kletzander <mkletzan@redhat.com>
上级 b71d54f4
...@@ -226,10 +226,10 @@ virSecuritySELinuxRecallLabel(const char *path, ...@@ -226,10 +226,10 @@ 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);
static int virSecuritySELinuxRestoreFileLabel(virSecurityManagerPtr mgr, static int virSecuritySELinuxRestoreFileLabel(virSecurityManagerPtr mgr,
...@@ -281,10 +281,10 @@ virSecuritySELinuxTransactionRun(pid_t pid ATTRIBUTE_UNUSED, ...@@ -281,10 +281,10 @@ 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);
} else { } else {
rv = virSecuritySELinuxRestoreFileLabel(list->manager, rv = virSecuritySELinuxRestoreFileLabel(list->manager,
item->path, item->path,
...@@ -1332,10 +1332,10 @@ virSecuritySELinuxSetFileconImpl(const char *path, ...@@ -1332,10 +1332,10 @@ 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)
{ {
bool privileged = virSecurityManagerGetPrivileged(mgr); bool privileged = virSecurityManagerGetPrivileged(mgr);
security_context_t econ = NULL; security_context_t econ = NULL;
...@@ -1411,15 +1411,6 @@ virSecuritySELinuxSetFileconHelper(virSecurityManagerPtr mgr, ...@@ -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)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册