Skip to content

Commit

Permalink
etc: add allow-ssh.inc
Browse files Browse the repository at this point in the history
And move the scattered `noblacklist ${HOME}/.ssh` entries into it.

Command used to find the relevant files:

    $ grep -Fnr 'noblacklist ${HOME}/.ssh' etc

Also, add it to profile.template, as reminded by @rusty-snake at
netblue30#3885 (review)
  • Loading branch information
kmk3 committed Jan 27, 2021
1 parent e607096 commit 83ac023
Show file tree
Hide file tree
Showing 17 changed files with 53 additions and 15 deletions.
5 changes: 5 additions & 0 deletions etc/inc/allow-ssh.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This file is overwritten during software install.
# Persistent customizations should go in a .local file.
include allow-ssh.local

noblacklist ${HOME}/.ssh
4 changes: 3 additions & 1 deletion etc/profile-a-l/android-studio.profile
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ noblacklist ${HOME}/.android
noblacklist ${HOME}/.jack-server
noblacklist ${HOME}/.jack-settings
noblacklist ${HOME}/.local/share/JetBrains
noblacklist ${HOME}/.ssh
noblacklist ${HOME}/.tooling

# Allows files commonly used by IDEs
include allow-common-devel.inc

# Allow ssh (blacklisted by disable-common.inc)
include allow-ssh.inc

include disable-common.inc
include disable-passwdmgr.inc
include disable-programs.inc
Expand Down
4 changes: 3 additions & 1 deletion etc/profile-a-l/aosp.profile
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ noblacklist ${HOME}/.jack-server
noblacklist ${HOME}/.jack-settings
noblacklist ${HOME}/.repo_.gitconfig.json
noblacklist ${HOME}/.repoconfig
noblacklist ${HOME}/.ssh
noblacklist ${HOME}/.tooling

# Allows files commonly used by IDEs
include allow-common-devel.inc

# Allow ssh (blacklisted by disable-common.inc)
include allow-ssh.inc

include disable-common.inc
include disable-passwdmgr.inc
include disable-programs.inc
Expand Down
4 changes: 3 additions & 1 deletion etc/profile-a-l/clion.profile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ noblacklist ${HOME}/.gitconfig
noblacklist ${HOME}/.git-credentials
noblacklist ${HOME}/.java
noblacklist ${HOME}/.local/share/JetBrains
noblacklist ${HOME}/.ssh
noblacklist ${HOME}/.tooling

# Allow ssh (blacklisted by disable-common.inc)
include allow-ssh.inc

include disable-common.inc
include disable-passwdmgr.inc
include disable-programs.inc
Expand Down
4 changes: 3 additions & 1 deletion etc/profile-a-l/filezilla.profile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ include globals.local

noblacklist ${HOME}/.config/filezilla
noblacklist ${HOME}/.filezilla
noblacklist ${HOME}/.ssh

# Allow python (blacklisted by disable-interpreters.inc)
include allow-python2.inc
include allow-python3.inc

# Allow ssh (blacklisted by disable-common.inc)
include allow-ssh.inc

include disable-common.inc
include disable-devel.inc
include disable-interpreters.inc
Expand Down
4 changes: 3 additions & 1 deletion etc/profile-a-l/git-cola.profile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ ignore noexec ${HOME}
noblacklist ${HOME}/.gitconfig
noblacklist ${HOME}/.git-credentials
noblacklist ${HOME}/.gnupg
noblacklist ${HOME}/.ssh
noblacklist ${HOME}/.subversion
noblacklist ${HOME}/.config/git
noblacklist ${HOME}/.config/git-cola
Expand All @@ -22,6 +21,9 @@ noblacklist ${HOME}/.config/git-cola
include allow-python2.inc
include allow-python3.inc

# Allow ssh (blacklisted by disable-common.inc)
include allow-ssh.inc

include disable-common.inc
include disable-devel.inc
include disable-exec.inc
Expand Down
4 changes: 3 additions & 1 deletion etc/profile-a-l/git.profile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ noblacklist ${HOME}/.gitconfig
noblacklist ${HOME}/.git-credentials
noblacklist ${HOME}/.gnupg
noblacklist ${HOME}/.nanorc
noblacklist ${HOME}/.ssh
noblacklist ${HOME}/.vim
noblacklist ${HOME}/.viminfo

# Allow ssh (blacklisted by disable-common.inc)
include allow-ssh.inc

blacklist /tmp/.X11-unix
blacklist ${RUNUSER}/wayland-*

Expand Down
4 changes: 3 additions & 1 deletion etc/profile-a-l/gitg.profile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ noblacklist ${HOME}/.config/git
noblacklist ${HOME}/.gitconfig
noblacklist ${HOME}/.git-credentials
noblacklist ${HOME}/.local/share/gitg
noblacklist ${HOME}/.ssh

# Allow ssh (blacklisted by disable-common.inc)
include allow-ssh.inc

include disable-common.inc
include disable-devel.inc
Expand Down
4 changes: 3 additions & 1 deletion etc/profile-a-l/idea.sh.profile
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ noblacklist ${HOME}/.android
noblacklist ${HOME}/.jack-server
noblacklist ${HOME}/.jack-settings
noblacklist ${HOME}/.local/share/JetBrains
noblacklist ${HOME}/.ssh
noblacklist ${HOME}/.tooling

# Allows files commonly used by IDEs
include allow-common-devel.inc

# Allow ssh (blacklisted by disable-common.inc)
include allow-ssh.inc

include disable-common.inc
include disable-passwdmgr.inc
include disable-programs.inc
Expand Down
4 changes: 3 additions & 1 deletion etc/profile-m-z/meld.profile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ noblacklist ${HOME}/.config/git
noblacklist ${HOME}/.gitconfig
noblacklist ${HOME}/.git-credentials
noblacklist ${HOME}/.local/share/meld
noblacklist ${HOME}/.ssh
noblacklist ${HOME}/.subversion

# Allow python (blacklisted by disable-interpreters.inc)
Expand All @@ -27,6 +26,9 @@ include allow-python3.inc
# Python 2 is EOL (see #3164). Uncomment the next line (or put it into your meld.local) if you understand the risks but want python 2 support for older meld versions.
#include allow-python2.inc

# Allow ssh (blacklisted by disable-common.inc)
include allow-ssh.inc

# Uncomment the next line (or put it into your meld.local) if you don't need to compare files in disable-common.inc.
#include disable-common.inc
include disable-devel.inc
Expand Down
4 changes: 3 additions & 1 deletion etc/profile-m-z/remmina.profile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ include globals.local
noblacklist ${HOME}/.remmina
noblacklist ${HOME}/.config/remmina
noblacklist ${HOME}/.local/share/remmina
noblacklist ${HOME}/.ssh

# Allow ssh (blacklisted by disable-common.inc)
include allow-ssh.inc

include disable-common.inc
include disable-devel.inc
Expand Down
4 changes: 3 additions & 1 deletion etc/profile-m-z/seahorse.profile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ include globals.local
blacklist /tmp/.X11-unix

noblacklist ${HOME}/.gnupg
noblacklist ${HOME}/.ssh
noblacklist /tmp/ssh-*

# Allow ssh (blacklisted by disable-common.inc)
include allow-ssh.inc

include disable-common.inc
include disable-devel.inc
include disable-exec.inc
Expand Down
4 changes: 3 additions & 1 deletion etc/profile-m-z/ssh-agent.profile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ include globals.local

noblacklist /etc/ssh
noblacklist /tmp/ssh-*
noblacklist ${HOME}/.ssh

# Allow ssh (blacklisted by disable-common.inc)
include allow-ssh.inc

blacklist /tmp/.X11-unix
blacklist ${RUNUSER}/wayland-*
Expand Down
4 changes: 3 additions & 1 deletion etc/profile-m-z/ssh.profile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ include globals.local

noblacklist /etc/ssh
noblacklist /tmp/ssh-*
noblacklist ${HOME}/.ssh
# nc can be used as ProxyCommand, e.g. when using tor
noblacklist ${PATH}/nc
noblacklist ${PATH}/ncat

# Allow ssh (blacklisted by disable-common.inc)
include allow-ssh.inc

include disable-common.inc
include disable-exec.inc
include disable-passwdmgr.inc
Expand Down
4 changes: 3 additions & 1 deletion etc/profile-m-z/webstorm.profile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ include globals.local
noblacklist ${HOME}/.WebStorm*
noblacklist ${HOME}/.android
noblacklist ${HOME}/.local/share/JetBrains
noblacklist ${HOME}/.ssh
noblacklist ${HOME}/.tooling

# Allows files commonly used by IDEs
include allow-common-devel.inc

# Allow ssh (blacklisted by disable-common.inc)
include allow-ssh.inc

noblacklist ${PATH}/node
noblacklist ${HOME}/.nvm

Expand Down
4 changes: 3 additions & 1 deletion etc/profile-m-z/x2goclient.profile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ include x2goclient.local
# Persistent global definitions
include globals.local

noblacklist ${HOME}/.ssh
noblacklist ${HOME}/.x2go
noblacklist ${HOME}/.x2goclient

# Allow ssh (blacklisted by disable-common.inc)
include allow-ssh.inc

include disable-common.inc
include disable-devel.inc
include disable-exec.inc
Expand Down
3 changes: 3 additions & 0 deletions etc/templates/profile.template
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ include globals.local
# Allows files commonly used by IDEs
#include allow-common-devel.inc

# Allow ssh (blacklisted by disable-common.inc)
#include allow-ssh.inc

#include disable-common.inc
#include disable-devel.inc
#include disable-exec.inc
Expand Down

0 comments on commit 83ac023

Please sign in to comment.