Skip to content

Commit

Permalink
Enable seccomp by default & add env WOB_DISABLE_PLEDGE
Browse files Browse the repository at this point in the history
  • Loading branch information
francma committed Mar 6, 2020
1 parent 971eaa2 commit 61f9633
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion meson_options.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
option('man-page', type: 'feature', value: 'auto', description: 'Generate and install man page')
option('seccomp', type: 'feature', value: 'disabled', description: 'Use seccomp on Linux')
option('seccomp', type: 'feature', value: 'auto', description: 'Use seccomp on Linux')
5 changes: 4 additions & 1 deletion wob.c
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,10 @@ main(int argc, char **argv)

wob_connect(&app);

wob_pledge();
char *disable_pledge_env = getenv("WOB_DISABLE_PLEDGE");
if (disable_pledge_env == NULL || strcmp(disable_pledge_env, "0") == 0) {
wob_pledge();
}

struct wob_colors colors = {
.background = BLACK,
Expand Down

0 comments on commit 61f9633

Please sign in to comment.