Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
0d4b988b
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
0d4b988b
编写于
3月 07, 2018
作者:
J
Ján Tomko
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Merge WITH_POLKIT1 and WITH_POLKIT
There is just one polkit now. Signed-off-by:
N
Ján Tomko
<
jtomko@redhat.com
>
上级
ab20f505
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
10 addition
and
16 deletion
+10
-16
m4/virt-polkit.m4
m4/virt-polkit.m4
+0
-6
src/access/Makefile.inc.am
src/access/Makefile.inc.am
+3
-3
src/access/viraccessmanager.c
src/access/viraccessmanager.c
+2
-2
src/util/virpolkit.c
src/util/virpolkit.c
+3
-3
tests/Makefile.am
tests/Makefile.am
+2
-2
未找到文件。
m4/virt-polkit.m4
浏览文件 @
0d4b988b
...
...
@@ -27,8 +27,6 @@ AC_DEFUN([LIBVIRT_CHECK_POLKIT], [
PKCHECK_PATH=
with_polkit1=no
if test "x$with_polkit" = "xyes" || test "x$with_polkit" = "xcheck"; then
dnl Check for new polkit first. We directly talk over DBus
dnl but we use existence of pkcheck binary as a sign that
...
...
@@ -40,10 +38,7 @@ AC_DEFUN([LIBVIRT_CHECK_POLKIT], [
if test "x$with_dbus" = "xyes" ; then
AC_DEFINE_UNQUOTED([WITH_POLKIT], 1,
[use PolicyKit for UNIX socket access checks])
AC_DEFINE_UNQUOTED([WITH_POLKIT1], 1,
[use PolicyKit for UNIX socket access checks])
with_polkit="yes"
with_polkit1="yes"
else
if test "x$with_polkit" = "xcheck" ; then
with_polkit=no
...
...
@@ -56,7 +51,6 @@ AC_DEFUN([LIBVIRT_CHECK_POLKIT], [
fi
AM_CONDITIONAL([WITH_POLKIT], [test "x$with_polkit" = "xyes"])
AM_CONDITIONAL([WITH_POLKIT1], [test "x$with_polkit1" = "xyes"])
])
AC_DEFUN([LIBVIRT_RESULT_POLKIT], [
...
...
src/access/Makefile.inc.am
浏览文件 @
0d4b988b
...
...
@@ -64,7 +64,7 @@ $(ACCESS_DRIVER_POLKIT_POLICY): $(srcdir)/access/viraccessperm.h \
$(srcdir)/access/genpolkit.pl Makefile.am
$(AM_V_GEN)$(PERL)
$(srcdir)
/access/genpolkit.pl <
$<
>
$@
||
rm
-f
$@
if
WITH_POLKIT
1
if
WITH_POLKIT
libvirt_driver_access_la_SOURCES
+=
$(ACCESS_DRIVER_POLKIT_SOURCES)
polkitactiondir
=
$(datadir)
/polkit-1/actions
...
...
@@ -74,9 +74,9 @@ endif WITH_LIBVIRTD
CLEANFILES
+=
$(ACCESS_DRIVER_POLKIT_POLICY)
BUILT_SOURCES
+=
$(ACCESS_DRIVER_POLKIT_POLICY)
else
!
WITH_POLKIT
1
else
!
WITH_POLKIT
EXTRA_DIST
+=
$(ACCESS_DRIVER_POLKIT_SOURCES)
endif
!
WITH_POLKIT
1
endif
!
WITH_POLKIT
BUILT_SOURCES
+=
\
...
...
src/access/viraccessmanager.c
浏览文件 @
0d4b988b
...
...
@@ -23,7 +23,7 @@
#include "viraccessmanager.h"
#include "viraccessdrivernop.h"
#include "viraccessdriverstack.h"
#if WITH_POLKIT
1
#if WITH_POLKIT
# include "viraccessdriverpolkit.h"
#endif
#include "viralloc.h"
...
...
@@ -112,7 +112,7 @@ static virAccessManagerPtr virAccessManagerNewDriver(virAccessDriverPtr drv)
static
virAccessDriverPtr
accessDrivers
[]
=
{
&
accessDriverNop
,
#if WITH_POLKIT
1
#if WITH_POLKIT
&
accessDriverPolkit
,
#endif
};
...
...
src/util/virpolkit.c
浏览文件 @
0d4b988b
...
...
@@ -35,7 +35,7 @@
VIR_LOG_INIT
(
"util.polkit"
);
#if WITH_POLKIT
1
#if WITH_POLKIT
struct
_virPolkitAgent
{
virCommandPtr
cmd
;
...
...
@@ -206,7 +206,7 @@ virPolkitAgentCreate(void)
}
#else
/* ! WITH_POLKIT
1
*/
#else
/* ! WITH_POLKIT */
int
virPolkitCheckAuth
(
const
char
*
actionid
ATTRIBUTE_UNUSED
,
pid_t
pid
ATTRIBUTE_UNUSED
,
...
...
@@ -236,4 +236,4 @@ virPolkitAgentCreate(void)
_
(
"polkit text authentication agent unavailable"
));
return
NULL
;
}
#endif
/* WITH_POLKIT
1
*/
#endif
/* WITH_POLKIT */
tests/Makefile.am
浏览文件 @
0d4b988b
...
...
@@ -251,9 +251,9 @@ test_programs += virdbustest \
virsystemdtest
\
$(NULL)
test_libraries
+=
virdbusmock.la
if
WITH_POLKIT
1
if
WITH_POLKIT
test_programs
+=
virpolkittest
endif
WITH_POLKIT
1
endif
WITH_POLKIT
endif
WITH_DBUS
if
WITH_SECDRIVER_SELINUX
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录