Skip to content

Commit d0bdc82

Browse files
fix: fix dlopen default and add mprotect
1 parent f916901 commit d0bdc82

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

.github/workflows/sconify.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
type: string
1717
required: true
1818
image-tag:
19-
description: "Tag of docker image to sconify "
19+
description: "Tag of docker image to sconify"
2020
type: string
2121
required: true
2222
scontain-username:
@@ -51,10 +51,14 @@ on:
5151
description: "Enclave heap size (default 1G)"
5252
type: string
5353
default: "1G"
54+
mprotect:
55+
description: "Scone mprotect mode (0:disable; 1:enable; default 0)"
56+
type: number
57+
default: 0
5458
dlopen:
55-
description: "Scoen dlopen mode (default 1)"
59+
description: "Scone dlopen mode (0:disable; 1:enable; default 0)"
5660
type: number
57-
default: 1
61+
default: 0
5862
sconify-debug:
5963
description: "Create Scone debug image (default true)"
6064
type: boolean
@@ -145,6 +149,8 @@ jobs:
145149
[[ -n '${{ inputs.heap }}' ]] && SCONIFY_CMD+=" --heap=${{ inputs.heap }}"
146150
# --dlopen option
147151
[[ -n '${{ inputs.dlopen }}' ]] && SCONIFY_CMD+=" --dlopen=${{ inputs.dlopen }}"
152+
# --mprotect option
153+
[[ -n '${{ inputs.mprotect }}' ]] && SCONIFY_CMD+=" --mprotect=${{ inputs.mprotect }}"
148154
# DEBUG
149155
# --verbose --no-color options
150156
SCONIFY_CMD+=" --verbose --no-color"

sconify/README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,12 @@ The workflow performs the following actions:
3636
| **fs-file** | [SCONE] Path of files to add to the binary file system (use multiline to add multiple files) | No | - |
3737
| **host-path** | [SCONE] Host path, served directly from the host file system (use multiline to add multiple path) | No | - |
3838
| **heap** | [SCONE] Enclave heap size | No | 1G |
39-
| **dlopen** | [SCONE] Scone dlopen mode (0:disable; 1:enable and require authentication; 2:debug only) | No | 1 |
40-
| **sconify-debug** | Create Scone debug image | No | true |
41-
| **sconify-prod** | Create Scone production image | No | true |
42-
| **runner** | Runner to use (overrides `runs-on`) ⚠️ the specified runner must feature Ubuntu OS and docker CE | No | ubuntu-latest |
39+
| **dlopen** | [SCONE] Scone dlopen mode (0:disable; 1:enable) | No | 0 |
40+
| **mprotect** | [SCONE] Scone mprotect mode (0:disable; 1:enable) | No | 0 |
41+
42+
| **sconify-debug** | Create Scone debug image | No | true |
43+
| **sconify-prod** | Create Scone production image | No | true |
44+
| **runner** | Runner to use (overrides `runs-on`) ⚠️ the specified runner must feature Ubuntu OS and docker CE | No | ubuntu-latest |
4345

4446
> ℹ️ for more details about [SCONE] options see [Scone's documentation](https://sconedocs.github.io/ee_sconify_image/#all-supported-options)
4547
@@ -109,6 +111,7 @@ jobs:
109111
fs-dir: /app
110112
heap: 1G
111113
dlopen: 1
114+
mprotect: 1
112115
docker-username: ${{ vars.DOCKER_USERNAME }}
113116
scontain-username: ${{ vars.SCONTAIN_USERNAME }}
114117
secrets:

0 commit comments

Comments
 (0)