mirror of
https://github.com/pnx/dotfiles
synced 2026-11-25 23:26:48 +01:00
add nono
This commit is contained in:
parent
6f4d275fb4
commit
0ce304c82a
11 changed files with 453 additions and 0 deletions
61
nono/profiles/git-ssh.json
Normal file
61
nono/profiles/git-ssh.json
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
{
|
||||
"extends": "default",
|
||||
"meta": {
|
||||
"name": "git-ssh",
|
||||
"description": "Allow Git to invoke SSH without granting the agent direct SSH access"
|
||||
},
|
||||
"command_policies": {
|
||||
"commands": {
|
||||
"git": {
|
||||
"can_use": ["ssh"],
|
||||
"sandbox": {
|
||||
"fs_read": [
|
||||
"."
|
||||
],
|
||||
"fs_write": [
|
||||
".",
|
||||
"@git:common-dir"
|
||||
],
|
||||
"fs_read_file": [
|
||||
"@git:config-files"
|
||||
],
|
||||
"environment": {
|
||||
"allow_vars": [
|
||||
"PATH",
|
||||
"HOME",
|
||||
"USER",
|
||||
"LOGNAME",
|
||||
"LANG",
|
||||
"LC_*"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"ssh": {
|
||||
"from": {
|
||||
"git": {
|
||||
"sandbox": {
|
||||
"fs_read": [
|
||||
"."
|
||||
],
|
||||
"network": {
|
||||
"tcp_connect_ports": [22]
|
||||
},
|
||||
"environment": {
|
||||
"allow_vars": [
|
||||
"PATH",
|
||||
"HOME",
|
||||
"USER",
|
||||
"LOGNAME",
|
||||
"LANG",
|
||||
"LC_*"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"session": "deny"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue