提交 c3501d47 编写于 作者: D Daniel P. Berrange

Don't force Xen connections to readonly when non-root

上级 028e4a61
Tue Mar 11 10:21:53 EDT 2008 Daniel P. Berrange <berrange@redhat.com>
* src/virsh.c: Don't force connection to readonly as non-root
since with auth support we can have full connections.
Tue Mar 11 10:17:53 EDT 2008 Daniel P. Berrange <berrange@redhat.com> Tue Mar 11 10:17:53 EDT 2008 Daniel P. Berrange <berrange@redhat.com>
* qemud/qemud.c: Don't run cleanup code when parent process is * qemud/qemud.c: Don't run cleanup code when parent process is
......
...@@ -6045,13 +6045,6 @@ vshInit(vshControl * ctl) ...@@ -6045,13 +6045,6 @@ vshInit(vshControl * ctl)
/* set up the library error handler */ /* set up the library error handler */
virSetErrorFunc(NULL, virshErrorHandler); virSetErrorFunc(NULL, virshErrorHandler);
#ifndef __MINGW32__
/* Force a non-root, Xen connection to readonly */
if ((ctl->name == NULL ||
!strcasecmp(ctl->name, "xen")) && ctl->uid != 0)
ctl->readonly = 1;
#endif
ctl->conn = virConnectOpenAuth(ctl->name, ctl->conn = virConnectOpenAuth(ctl->name,
virConnectAuthPtrDefault, virConnectAuthPtrDefault,
ctl->readonly ? VIR_CONNECT_RO : 0); ctl->readonly ? VIR_CONNECT_RO : 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册