github / github/copilot-cli

Use unshare by default in linux to protect access

Aperta
#1,163 1 commento 3 reazioni 0 assegnatari Vedi su GitHub
area:platform-linux
Lingua principale
Shell
Stelle
11.2k
Fork
1.9k
Merge medio
14h 16m
PR unite (30g)
6

Descrizione

### Describe the feature or problem you'd like to solve

The tool should never have any kind of write access to places the users have not ack'ed for

### Proposed solution

I'm currently running copilot using bubblewrap to ensure it only works where I want via:

```sh
bwrap --ro-bind / / \
--bind "$PWD" "$PWD" \
--bind /tmp /tmp \
--bind "$HOME/.copilot" "$HOME/.copilot" \
--dev /dev \
--proc /proc \
--unshare-all \
copilot
```

This is something that the tool should do by default

### Example prompts or workflows

_No response_

### Additional context

_No response_

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.