diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-02-06 17:33:09 +0100 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-02-06 17:39:20 +0100 |
commit | c313cafbae5655f0c401049f294a558a03a2ad6d (patch) | |
tree | e54b0ecdb18d946c15f4b52194388d35b00ebfcc /completion | |
parent | 0abf45b01b72e625e58ec4cf73f3d694cfadf34c (diff) | |
download | xdg-app-c313cafbae5655f0c401049f294a558a03a2ad6d.tar.gz |
Add a --forbid option to run
This allows to restrict the access that the app gets out of
the sandbox. We allow an access if the app requests it (in its
metadata) and the user doesn't forbid it (with this option).
Diffstat (limited to 'completion')
-rwxr-xr-x | completion/xdg-app | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/completion/xdg-app b/completion/xdg-app index 1d924cd..c8b0561 100755 --- a/completion/xdg-app +++ b/completion/xdg-app @@ -28,12 +28,12 @@ _xdg-app() { [LIST_REMOTES]='--show-urls' [REPO_CONTENTS]='--show-details --runtimes --apps --update' [UNINSTALL]='--keep-ref' - [RUN]='--command --branch --devel' + [RUN]='--command --branch --devel --forbid' [BUILD_INIT]='--arch --var' [BUILD]='--runtime --network --x11' [BUILD_FINISH]='--command --allow' [BUILD_EXPORT]='--subject --body' - [ARG]='--arch --command --branch --var --allow --subject --body' + [ARG]='--arch --command --branch --var --allow --forbid --subject --body' ) if __contains_word "--user" ${COMP_WORDS[*]}; then @@ -53,7 +53,7 @@ _xdg-app() { --var) comps=$(xdg-app $mode list-runtimes) ;; - --allow) + --allow|--forbid) comps='x11 wayland ipc pulseaudio system-dbus session-dbus network host-fs homedir' ;; --branch|--subject|--body) |