Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2017-01-18 Thread Juergen Gross
On 18/01/17 19:26, Stefano Stabellini wrote: > On Wed, 18 Jan 2017, Juergen Gross wrote: >> On 18/01/17 12:03, Wei Liu wrote: >>> On Mon, Jan 16, 2017 at 05:47:15PM +0100, Juergen Gross wrote: On 07/12/16 08:44, Juergen Gross wrote: > Hi, > > today the XS_RESTRICT wire command of X

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2017-01-18 Thread Stefano Stabellini
On Wed, 18 Jan 2017, Juergen Gross wrote: > On 18/01/17 12:03, Wei Liu wrote: > > On Mon, Jan 16, 2017 at 05:47:15PM +0100, Juergen Gross wrote: > >> On 07/12/16 08:44, Juergen Gross wrote: > >>> Hi, > >>> > >>> today the XS_RESTRICT wire command of Xenstore is supported by > >>> oxenstored only to

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2017-01-18 Thread Wei Liu
On Wed, Jan 18, 2017 at 01:42:01PM +0100, Juergen Gross wrote: > On 18/01/17 13:39, George Dunlap wrote: > > On 18/01/17 12:37, Andrew Cooper wrote: > >> On 18/01/17 12:08, Juergen Gross wrote: > >>> On 18/01/17 12:39, Wei Liu wrote: > On Wed, Jan 18, 2017 at 12:21:48PM +0100, Juergen Gross wr

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2017-01-18 Thread Juergen Gross
On 18/01/17 13:39, George Dunlap wrote: > On 18/01/17 12:37, Andrew Cooper wrote: >> On 18/01/17 12:08, Juergen Gross wrote: >>> On 18/01/17 12:39, Wei Liu wrote: On Wed, Jan 18, 2017 at 12:21:48PM +0100, Juergen Gross wrote: > On 18/01/17 12:03, Wei Liu wrote: >> On Mon, Jan 16, 2017

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2017-01-18 Thread George Dunlap
On 18/01/17 12:37, Andrew Cooper wrote: > On 18/01/17 12:08, Juergen Gross wrote: >> On 18/01/17 12:39, Wei Liu wrote: >>> On Wed, Jan 18, 2017 at 12:21:48PM +0100, Juergen Gross wrote: On 18/01/17 12:03, Wei Liu wrote: > On Mon, Jan 16, 2017 at 05:47:15PM +0100, Juergen Gross wrote: >

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2017-01-18 Thread Andrew Cooper
On 18/01/17 12:08, Juergen Gross wrote: > On 18/01/17 12:39, Wei Liu wrote: >> On Wed, Jan 18, 2017 at 12:21:48PM +0100, Juergen Gross wrote: >>> On 18/01/17 12:03, Wei Liu wrote: On Mon, Jan 16, 2017 at 05:47:15PM +0100, Juergen Gross wrote: > On 07/12/16 08:44, Juergen Gross wrote: >

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2017-01-18 Thread Juergen Gross
On 18/01/17 12:39, Wei Liu wrote: > On Wed, Jan 18, 2017 at 12:21:48PM +0100, Juergen Gross wrote: >> On 18/01/17 12:03, Wei Liu wrote: >>> On Mon, Jan 16, 2017 at 05:47:15PM +0100, Juergen Gross wrote: On 07/12/16 08:44, Juergen Gross wrote: > Hi, > > today the XS_RESTRICT wire co

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2017-01-18 Thread Wei Liu
On Wed, Jan 18, 2017 at 12:21:48PM +0100, Juergen Gross wrote: > On 18/01/17 12:03, Wei Liu wrote: > > On Mon, Jan 16, 2017 at 05:47:15PM +0100, Juergen Gross wrote: > >> On 07/12/16 08:44, Juergen Gross wrote: > >>> Hi, > >>> > >>> today the XS_RESTRICT wire command of Xenstore is supported by > >

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2017-01-18 Thread Juergen Gross
On 18/01/17 12:03, Wei Liu wrote: > On Mon, Jan 16, 2017 at 05:47:15PM +0100, Juergen Gross wrote: >> On 07/12/16 08:44, Juergen Gross wrote: >>> Hi, >>> >>> today the XS_RESTRICT wire command of Xenstore is supported by >>> oxenstored only to drop the privilege of a connection to that of the >>> d

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2017-01-18 Thread Wei Liu
On Mon, Jan 16, 2017 at 05:47:15PM +0100, Juergen Gross wrote: > On 07/12/16 08:44, Juergen Gross wrote: > > Hi, > > > > today the XS_RESTRICT wire command of Xenstore is supported by > > oxenstored only to drop the privilege of a connection to that of the > > domid given as a parameter to the com

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2017-01-16 Thread Juergen Gross
On 07/12/16 08:44, Juergen Gross wrote: > Hi, > > today the XS_RESTRICT wire command of Xenstore is supported by > oxenstored only to drop the privilege of a connection to that of the > domid given as a parameter to the command. > > Using this mechanism with Xenstore running in a stubdom will lea

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2017-01-04 Thread Juergen Gross
On 04/01/17 16:21, Wei Liu wrote: > On Wed, Jan 04, 2017 at 04:05:03PM +0100, Juergen Gross wrote: >> On 04/01/17 15:59, Wei Liu wrote: >>> On Wed, Dec 07, 2016 at 08:44:31AM +0100, Juergen Gross wrote: Hi, today the XS_RESTRICT wire command of Xenstore is supported by oxenstore

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2017-01-04 Thread Juergen Gross
On 04/01/17 17:54, Ian Jackson wrote: > Juergen Gross writes ("Re: Xenstore domains and XS_RESTRICT"): >> Rejecting XS_RESTRICT for a non-socket connection is mandatory to >> ensure a XS_RESTRICT user on an old kernel not knowing about it can't >> drop the privilege of all other user's on that syst

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2017-01-04 Thread Ian Jackson
Juergen Gross writes ("Re: Xenstore domains and XS_RESTRICT"): > Rejecting XS_RESTRICT for a non-socket connection is mandatory to > ensure a XS_RESTRICT user on an old kernel not knowing about it can't > drop the privilege of all other user's on that system, too. Kernels need to proxy all command

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2017-01-04 Thread Wei Liu
On Wed, Jan 04, 2017 at 04:05:03PM +0100, Juergen Gross wrote: > On 04/01/17 15:59, Wei Liu wrote: > > On Wed, Dec 07, 2016 at 08:44:31AM +0100, Juergen Gross wrote: > >> Hi, > >> > >> today the XS_RESTRICT wire command of Xenstore is supported by > >> oxenstored only to drop the privilege of a con

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2017-01-04 Thread Juergen Gross
On 04/01/17 15:59, Wei Liu wrote: > On Wed, Dec 07, 2016 at 08:44:31AM +0100, Juergen Gross wrote: >> Hi, >> >> today the XS_RESTRICT wire command of Xenstore is supported by >> oxenstored only to drop the privilege of a connection to that of the >> domid given as a parameter to the command. >> >>

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2017-01-04 Thread Wei Liu
On Wed, Dec 07, 2016 at 08:44:31AM +0100, Juergen Gross wrote: > Hi, > > today the XS_RESTRICT wire command of Xenstore is supported by > oxenstored only to drop the privilege of a connection to that of the > domid given as a parameter to the command. > > Using this mechanism with Xenstore runnin

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2017-01-01 Thread Juergen Gross
On 08/12/16 08:55, Juergen Gross wrote: > On 07/12/16 18:10, Ian Jackson wrote: >> Juergen Gross writes ("Xenstore domains and XS_RESTRICT"): >>> In order to solve the problem I suggest the following change to the >>> Xenstore wire protocol: >>> >>> struct xsd_sockmsg >>> { >>> -uint32_t type

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2016-12-07 Thread Juergen Gross
On 07/12/16 18:10, Ian Jackson wrote: > Juergen Gross writes ("Xenstore domains and XS_RESTRICT"): >> In order to solve the problem I suggest the following change to the >> Xenstore wire protocol: >> >> struct xsd_sockmsg >> { >> -uint32_t type; /* XS_??? */ >> +uint16_t type; /* XS_???

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2016-12-07 Thread Juergen Gross
On 07/12/16 18:00, Ian Jackson wrote: > Konrad Rzeszutek Wilk writes ("Re: Xenstore domains and XS_RESTRICT"): >> On Wed, Dec 07, 2016 at 03:26:38PM +0100, Juergen Gross wrote: >>> There is no socket connection to xenstore domain. >> >> Right but it creates its own XenStore ring. Can it send this x

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2016-12-07 Thread Ian Jackson
Juergen Gross writes ("Xenstore domains and XS_RESTRICT"): > In order to solve the problem I suggest the following change to the > Xenstore wire protocol: > > struct xsd_sockmsg > { > -uint32_t type; /* XS_??? */ > +uint16_t type; /* XS_??? */ > +uint16_t domid; /* Use privileges o

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2016-12-07 Thread Ian Jackson
Konrad Rzeszutek Wilk writes ("Re: Xenstore domains and XS_RESTRICT"): > On Wed, Dec 07, 2016 at 03:26:38PM +0100, Juergen Gross wrote: > > There is no socket connection to xenstore domain. > > Right but it creates its own XenStore ring. Can it send this xsd_sockmsg > with domid_id of zero? Or are

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2016-12-07 Thread Juergen Gross
On 07/12/16 16:40, Konrad Rzeszutek Wilk wrote: > On Wed, Dec 07, 2016 at 03:26:38PM +0100, Juergen Gross wrote: >> On 07/12/16 15:15, Konrad Rzeszutek Wilk wrote: >>> On Wed, Dec 07, 2016 at 08:44:31AM +0100, Juergen Gross wrote: Hi, today the XS_RESTRICT wire command of Xenstore is

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2016-12-07 Thread Konrad Rzeszutek Wilk
On Wed, Dec 07, 2016 at 03:26:38PM +0100, Juergen Gross wrote: > On 07/12/16 15:15, Konrad Rzeszutek Wilk wrote: > > On Wed, Dec 07, 2016 at 08:44:31AM +0100, Juergen Gross wrote: > >> Hi, > >> > >> today the XS_RESTRICT wire command of Xenstore is supported by > >> oxenstored only to drop the priv

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2016-12-07 Thread Juergen Gross
On 07/12/16 15:15, Konrad Rzeszutek Wilk wrote: > On Wed, Dec 07, 2016 at 08:44:31AM +0100, Juergen Gross wrote: >> Hi, >> >> today the XS_RESTRICT wire command of Xenstore is supported by >> oxenstored only to drop the privilege of a connection to that of the >> domid given as a parameter to the c

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2016-12-07 Thread Konrad Rzeszutek Wilk
On Wed, Dec 07, 2016 at 08:44:31AM +0100, Juergen Gross wrote: > Hi, > > today the XS_RESTRICT wire command of Xenstore is supported by > oxenstored only to drop the privilege of a connection to that of the > domid given as a parameter to the command. > > Using this mechanism with Xenstore runnin