diff options
author | Daniel De Graaf <dgdegra@tycho.nsa.gov> | 2012-02-09 18:33:36 +0000 |
---|---|---|
committer | Daniel De Graaf <dgdegra@tycho.nsa.gov> | 2012-02-09 18:33:36 +0000 |
commit | 062c8ffe82563c0bbb3f5b52dcad0a72d22bf670 (patch) | |
tree | 9b240c3f842f8703ff0ff8974337b0cd7d11a812 /tools/xenstore/xenstored_core.c | |
parent | d0b276ee3bd33e42e03d8150c80146f893bb7f71 (diff) | |
download | xen-062c8ffe82563c0bbb3f5b52dcad0a72d22bf670.tar.gz xen-062c8ffe82563c0bbb3f5b52dcad0a72d22bf670.tar.bz2 xen-062c8ffe82563c0bbb3f5b52dcad0a72d22bf670.zip |
xenstored: add --priv-domid parameter
This parameter identifies an alternative service domain which has
superuser access to the xenstore database, which is currently required
to set up a new domain's xenstore entries.
Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Diffstat (limited to 'tools/xenstore/xenstored_core.c')
-rw-r--r-- | tools/xenstore/xenstored_core.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/xenstore/xenstored_core.c b/tools/xenstore/xenstored_core.c index 66584f51d2..a42f55291d 100644 --- a/tools/xenstore/xenstored_core.c +++ b/tools/xenstore/xenstored_core.c @@ -1752,6 +1752,7 @@ static struct option options[] = { { "event", 1, NULL, 'e' }, { "help", 0, NULL, 'H' }, { "no-fork", 0, NULL, 'N' }, + { "priv-domid", 1, NULL, 'p' }, { "output-pid", 0, NULL, 'P' }, { "entry-size", 1, NULL, 'S' }, { "trace-file", 1, NULL, 'T' }, @@ -1765,6 +1766,7 @@ static struct option options[] = { extern void dump_conn(struct connection *conn); int dom0_event = 0; +int priv_domid = 0; int main(int argc, char *argv[]) { @@ -1825,6 +1827,9 @@ int main(int argc, char *argv[]) case 'e': dom0_event = strtol(optarg, NULL, 10); break; + case 'p': + priv_domid = strtol(optarg, NULL, 10); + break; } } if (optind != argc) |