feat: add the new shells variable to ensure support for all interactive shell.

Fix #269
This commit is contained in:
Alexandre Pujol 2024-01-25 13:16:40 +00:00
parent b376e9fade
commit a30c2e5e85
Failed to generate hash of commit
13 changed files with 17 additions and 26 deletions

View file

@ -34,8 +34,7 @@ profile gnome-control-center @{exec_path} flags=(attach_disconnected) {
@{exec_path} mr,
@{bin}/{,b,d,rb}ash rUx,
@{bin}/{c,k,tc,z}sh rUx,
@{bin}/@{shells} rUx,
@{bin}/gcm-viewer rix,
@{bin}/grep rix,

View file

@ -38,8 +38,7 @@ profile gnome-terminal-server @{exec_path} {
@{exec_path} mr,
# The shell is not confined on purpose.
@{bin}/{,b,d,rb}ash rUx,
@{bin}/{c,k,tc,z}sh rUx,
@{bin}/@{shells} rUx,
# Some CLI program can be launched directly from Gnome Shell
@{bin}/htop rPx,

View file

@ -26,8 +26,7 @@ profile kgx @{exec_path} {
@{exec_path} mr,
# The shell is not confined on purpose.
@{bin}/{,b,d,rb}ash rUx,
@{bin}/{c,k,tc,z}sh rUx,
@{bin}/@{shells} rUx,
# Some CLI program can be launched directly from Gnome Shell
@{bin}/htop rPx,

View file

@ -61,8 +61,7 @@ profile sshd @{exec_path} flags=(attach_disconnected) {
@{exec_path} mrix,
@{bin}/{,b,d,rb}ash rUx,
@{bin}/{c,k,tc,z}sh rUx,
@{bin}/@{shells} rUx,
@{bin}/false rix,
@{bin}/nologin rPx,
@{bin}/passwd rPx,

View file

@ -42,8 +42,7 @@ profile code flags=(attach_disconnected) {
@{open_path} rPx -> child-open,
# The shell is not confined on purpose.
@{bin}/{,b,d,rb}ash rUx,
@{bin}/{c,k,tc,z}sh rUx,
@{bin}/@{shells} rUx,
# Confine some common tools
@{lib}/code/extensions/git/dist/askpass.sh rPx,

View file

@ -37,7 +37,7 @@ profile login @{exec_path} flags=(attach_disconnected) {
@{exec_path} mr,
@{bin}/{,z,ba,da}sh rUx,
@{bin}/@{shells} rUx,
@{bin}/unix_chkpwd rPx,
@{etc_ro}/environment r,

View file

@ -21,8 +21,7 @@ profile newgrp @{exec_path} {
@{exec_path} mr,
@{bin}/{,b,d,rb}ash rUx,
@{bin}/{c,k,tc,z}sh rUx,
@{bin}/@{shells} rUx,
/etc/{passwd,group,shadow,gshadow} r,

View file

@ -41,8 +41,7 @@
capability setgid,
capability setuid,
@{bin}/{,b,d,rb}ash rPx -> confined_user,
@{bin}/{c,k,tc,z}sh rPx -> confined_user,
@{bin}/@{shells} rPx -> confined_user,
/etc/default/su r,
@{etc_ro}/environment r,
@ -63,8 +62,7 @@
capability setgid,
capability setuid,
@{bin}/{,b,d,rb}ash rUx,
@{bin}/{c,k,tc,z}sh rUx,
@{bin}/@{shells} rUx,
/etc/default/su r,
@{etc_ro}/environment r,

View file

@ -44,8 +44,7 @@ profile su @{exec_path} {
@{exec_path} mr,
@{bin}/{,b,d,rb}ash rUx,
@{bin}/{c,k,tc,z}sh rUx,
@{bin}/@{shells} rUx,
@{bin}/nologin rPx,

View file

@ -53,8 +53,7 @@ profile sudo @{exec_path} {
@{exec_path} mr,
@{lib}/sudo/** mr,
@{bin}/{,b,d,rb}ash rUx,
@{bin}/{c,k,tc,z}sh rUx,
@{bin}/@{shells} rUx,
@{lib}/** rPUx,
/opt/*/** rPUx,
/snap/snapd/@{int}@{bin}/snap rPUx,

View file

@ -16,8 +16,7 @@ profile sulogin @{exec_path} {
@{exec_path} mr,
# The shell is not confined on purpose.
@{bin}/{,b,d,rb}ash rUx,
@{bin}/{c,k,tc,z}sh rUx,
@{bin}/@{shells} rUx,
/etc/shadow r,

View file

@ -29,8 +29,7 @@ profile terminator @{exec_path} flags=(attach_disconnected) {
@{bin}/python3.@{int} rix,
# The shell is not confined on purpose.
@{bin}/{,b,d,rb}ash rUx,
@{bin}/{c,k,tc,z}sh rUx,
@{bin}/@{shells} rUx,
owner @{user_config_dirs}/terminator/{,**} rw,

View file

@ -4,6 +4,9 @@
# Define some paths for some commonly used programs
# All the shells
@{shells} = sh zsh bash dash fish rbash ksh tcsh csh
# Browsers
@{brave_name} = brave{,-beta,-dev,-bin}