提交 a791bc16 编写于 作者: Y YiLin.Li 提交者: jia zhang

runectl && sgx-tools: rename runectl as sgx-tools.

Signed-off-by: NYilin Li <YiLin.Li@linux.alibaba.com>
上级 27cef44a
.PHONY: all install clean uninstall rpm .PHONY: all install clean uninstall rpm
export INCLAVARE_CONTAINERS_VERSION := $(shell cat ./VERSION) export INCLAVARE_CONTAINERS_VERSION := $(shell cat ./VERSION)
components := rune shim runectl components := rune shim sgx-tools
rpm_release_components := rune shim rpm_release_components := rune shim
all: all:
......
...@@ -40,8 +40,8 @@ One typical class of enclave runtime implementations is based on library OSes. C ...@@ -40,8 +40,8 @@ One typical class of enclave runtime implementations is based on library OSes. C
In addition, you can write your own enclave runtime with any programming language and SDK (e.g, [Intel SGX SDK](https://github.com/intel/linux-sgx)) you prefer as long as it implements Enclave Runtime PAL API. In addition, you can write your own enclave runtime with any programming language and SDK (e.g, [Intel SGX SDK](https://github.com/intel/linux-sgx)) you prefer as long as it implements Enclave Runtime PAL API.
### runectl ### sgx-tools
`runectl` is a commandline tool, used to interact Intel SGX aesm service to retrieve various materials such as launch token, Quoting Enclave's target information and enclave quote. Refer to [this guide](https://github.com/alibaba/inclavare-containers/blob/master/runectl/README.md) for the details about its usage. `sgx-tools` is a commandline tool, used to interact Intel SGX aesm service to retrieve various materials such as launch token, Quoting Enclave's target information and enclave quote. Refer to [this guide](https://github.com/alibaba/inclavare-containers/blob/master/sgx-tools/README.md) for the details about its usage.
--- ---
......
...@@ -35,7 +35,7 @@ $(OUTPUT)/encl.ss: $(OUTPUT)/encl.bin $(OUTPUT)/signing_key.pem ...@@ -35,7 +35,7 @@ $(OUTPUT)/encl.ss: $(OUTPUT)/encl.bin $(OUTPUT)/signing_key.pem
$(OUTPUT)/sgxsign signing_key.pem $(OUTPUT)/encl.bin $(OUTPUT)/encl.ss $(OUTPUT)/sgxsign signing_key.pem $(OUTPUT)/encl.bin $(OUTPUT)/encl.ss
$(OUTPUT)/encl.token: $(OUTPUT)/encl.ss $(OUTPUT)/encl.token: $(OUTPUT)/encl.ss
runectl gen-token --signature encl.ss --token $@ sgx-tools gen-token --signature encl.ss --token $@
$(OUTPUT)/sgxsign: sgxsign.c $(OUTPUT)/sgxsign: sgxsign.c
$(CC) -I../include -o $@ $< -lcrypto $(CC) -I../include -o $@ $< -lcrypto
......
...@@ -2,8 +2,8 @@ The files in this directory are used to implement a skeleton enclave runtime in ...@@ -2,8 +2,8 @@ The files in this directory are used to implement a skeleton enclave runtime in
--- ---
# Install runectl # Install sgx-tools
Refer to [this guide](https://github.com/alibaba/inclavare-containers/tree/master/runectl). Refer to [this guide](https://github.com/alibaba/inclavare-containers/tree/master/sgx-tools/README.md).
--- ---
......
*.pb.go *.pb.go
runectl sgx-tools
*.token *.token
...@@ -3,7 +3,7 @@ EXTRA_FLAGS ?= ...@@ -3,7 +3,7 @@ EXTRA_FLAGS ?=
EXTRA_LDFLAGS ?= EXTRA_LDFLAGS ?=
DESTDIR ?= DESTDIR ?=
APP := runectl APP := sgx-tools
.DEFAULT: $(APP) .DEFAULT: $(APP)
.PHONY: clean test lint install uninstall .PHONY: clean test lint install uninstall
......
# runectl # sgx-tools
## Introduction ## Introduction
`runectl` is a command line tool for inclavare-containers. `sgx-tools` is a command line tool for inclavare-containers.
- Given the signature file of an Enclave, `runectl gen-token` command can generate the corresponding token file from aesmd service. - Given the signature file of an Enclave, `sgx-tools gen-token` command can generate the corresponding token file from aesmd service.
- `runectl gen-qe-target-info` command can generate Quoting Enclave's target information file from aesm service. - `sgx-tools gen-qe-target-info` command can generate Quoting Enclave's target information file from aesm service.
- Given the report file of an Enclave, `runectl gen-quote` command can generate quote file from aesm service. - Given the report file of an Enclave, `sgx-tools gen-quote` command can generate quote file from aesm service.
## Install Intel `aesmd` service ## Install Intel `aesmd` service
### Hardware requirements ### Hardware requirements
...@@ -33,7 +33,7 @@ $ sudo make uninstall ...@@ -33,7 +33,7 @@ $ sudo make uninstall
``` ```
## Test ## Test
### `runectl gen-token` test ### `sgx-tools gen-token` test
``` ```
$ make test $ make test
``` ```
......
package main // import "github.com/inclavare-containers/runectl" package main // import "github.com/inclavare-containers/sgx-tools"
import ( import (
"github.com/opencontainers/runc/libenclave/intelsgx" "github.com/opencontainers/runc/libenclave/intelsgx"
...@@ -15,7 +15,7 @@ var generateQeTargetInfoCommand = cli.Command{ ...@@ -15,7 +15,7 @@ var generateQeTargetInfoCommand = cli.Command{
EXAMPLE: EXAMPLE:
For example, save the target information file about Quoting Enclave retrieved from aesmd: For example, save the target information file about Quoting Enclave retrieved from aesmd:
# runectl gen-qe-target-info --targetinfo foo`, # sgx-tools gen-qe-target-info --targetinfo foo`,
Flags: []cli.Flag{ Flags: []cli.Flag{
cli.StringFlag{ cli.StringFlag{
Name: "targetinfo", Name: "targetinfo",
......
package main // import "github.com/inclavare-containers/runectl" package main // import "github.com/inclavare-containers/sgx-tools"
import ( import (
"fmt" "fmt"
...@@ -18,7 +18,7 @@ var generateQuoteCommand = cli.Command{ ...@@ -18,7 +18,7 @@ var generateQuoteCommand = cli.Command{
EXAMPLE: EXAMPLE:
For example, generate the quote file according to the given local report file: For example, generate the quote file according to the given local report file:
# runectl gen-quote --report foo.rep`, # sgx-tools gen-quote --report foo.rep`,
Flags: []cli.Flag{ Flags: []cli.Flag{
cli.StringFlag{ cli.StringFlag{
Name: "report", Name: "report",
......
package main // import "github.com/inclavare-containers/runectl" package main // import "github.com/inclavare-containers/sgx-tools"
import ( import (
"fmt" "fmt"
...@@ -20,7 +20,7 @@ var generateTokenCommand = cli.Command{ ...@@ -20,7 +20,7 @@ var generateTokenCommand = cli.Command{
EXAMPLE: EXAMPLE:
For example, generate the token file according to the given signature file: For example, generate the token file according to the given signature file:
# runectl gen-token --signature foo.sig`, # sgx-tools gen-token --signature foo.sig`,
Flags: []cli.Flag{ Flags: []cli.Flag{
cli.StringFlag{ cli.StringFlag{
Name: "signature", Name: "signature",
......
module github.com/inclavare-containers/runectl module github.com/inclavare-containers/sgx-tools
go 1.14 go 1.14
......
package main // import "github.com/inclavare-containers/runectl" package main // import "github.com/inclavare-containers/sgx-tools"
import ( import (
"fmt" "fmt"
...@@ -17,12 +17,12 @@ var version = "" ...@@ -17,12 +17,12 @@ var version = ""
// and will be populated by the Makefile // and will be populated by the Makefile
var gitCommit = "" var gitCommit = ""
const usage = `runectl command line tool const usage = `sgx-tools command line tool
` `
func main() { func main() {
app := cli.NewApp() app := cli.NewApp()
app.Name = "runectl" app.Name = "sgx-tools"
app.Usage = usage app.Usage = usage
var ver []string var ver []string
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册