Skip to content

Commit

Permalink
shell: remove shell_svc_allowed from service callbacks
Browse files Browse the repository at this point in the history
Since shell services registered by flux_shell_service_register()
are now secure by default, remove redundant calls to shell_svc_allowed()
in message handlers in the input and output services.
  • Loading branch information
grondo authored and trws committed Mar 30, 2020
1 parent 475e57a commit d277817
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/shell/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,6 @@ static void shell_input_stdin_cb (flux_t *h,
bool eof = false;
json_t *o;

if (shell_svc_allowed (in->shell->svc, msg) < 0)
goto error;
if (flux_request_unpack (msg, NULL, "o", &o) < 0)
goto error;
if (iodecode (o, NULL, NULL, NULL, NULL, &eof) < 0)
Expand Down
2 changes: 0 additions & 2 deletions src/shell/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,6 @@ static void shell_output_write_cb (flux_t *h,
json_t *o;
json_t *entry;

if (shell_svc_allowed (out->shell->svc, msg) < 0)
goto error;
if (flux_request_unpack (msg, NULL, "o", &o) < 0)
goto error;
if (iodecode (o, NULL, NULL, NULL, NULL, &eof) < 0)
Expand Down

0 comments on commit d277817

Please sign in to comment.