feat(profile): simplify ssh home path.
This commit is contained in:
parent
3d329fdef8
commit
aafcd1c861
2 changed files with 5 additions and 7 deletions
|
|
@ -36,9 +36,7 @@ profile ssh @{exec_path} {
|
||||||
@{etc_ro}/ssh/sshd_config.d/{,*} r,
|
@{etc_ro}/ssh/sshd_config.d/{,*} r,
|
||||||
/etc/machine-id r,
|
/etc/machine-id r,
|
||||||
|
|
||||||
owner @{HOME}/@{XDG_SSH_DIR}/ r,
|
owner @{HOME}/@{XDG_SSH_DIR}/{,*} r,
|
||||||
owner @{HOME}/@{XDG_SSH_DIR}/*_*{,.pub} r,
|
|
||||||
owner @{HOME}/@{XDG_SSH_DIR}/config r,
|
|
||||||
owner @{HOME}/@{XDG_SSH_DIR}/known_hosts{,.*} rwl,
|
owner @{HOME}/@{XDG_SSH_DIR}/known_hosts{,.*} rwl,
|
||||||
owner @{HOME}/@{XDG_SSH_DIR}/ssh_control_*_*_* wl,
|
owner @{HOME}/@{XDG_SSH_DIR}/ssh_control_*_*_* wl,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,13 +15,13 @@ profile ssh-keygen @{exec_path} {
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
/etc/ssh/moduli rw,
|
||||||
/etc/ssh/ssh_host_*_key* rw,
|
/etc/ssh/ssh_host_*_key* rw,
|
||||||
|
|
||||||
owner @{HOME}/@{XDG_SSH_DIR}/ w,
|
owner @{HOME}/@{XDG_SSH_DIR}/{,*} rw,
|
||||||
owner @{HOME}/@{XDG_SSH_DIR}/*_*{,.pub} rw,
|
|
||||||
|
|
||||||
/tmp/snapd@{int}/*_*{,.pub} w,
|
owner /tmp/snapd@{int}/*_*{,.pub} w,
|
||||||
/tmp/snapd@{int}/*.key{,.pub} w,
|
owner /tmp/snapd@{int}/*.key{,.pub} w,
|
||||||
|
|
||||||
/dev/tty@{int} rw,
|
/dev/tty@{int} rw,
|
||||||
/dev/ttyS@{int} rw,
|
/dev/ttyS@{int} rw,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue