提交 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,7 +226,7 @@ virSecuritySELinuxRecallLabel(const char *path, ...@@ -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, ...@@ -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, ...@@ -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, ...@@ -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.
先完成此消息的编辑!
想要评论请 注册