mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 00:48:10 +01:00
feat: add the new shells variable to ensure support for all interactive shell.
Fix #269
This commit is contained in:
parent
b376e9fade
commit
a30c2e5e85
13 changed files with 17 additions and 26 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue