mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
feat(abs): add the bash-strict.
This commit is contained in:
parent
5039dae148
commit
dbb0d76e52
35
apparmor.d/abstractions/bash-strict
Normal file
35
apparmor.d/abstractions/bash-strict
Normal file
@ -0,0 +1,35 @@
|
||||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
# This abstraction is only required when an interactive shell is started.
|
||||
# Classic shell scripts do not need it.
|
||||
|
||||
/usr/share/bash-completion/{,**} r,
|
||||
/usr/share/terminfo/{,**} r,
|
||||
|
||||
@{etc_ro}/profile.d/ r,
|
||||
@{etc_ro}/profile.d/* r,
|
||||
@{etc_ro}/profile.dos r,
|
||||
@{etc_ro}/profile r,
|
||||
@{etc_ro}/profile.d/ r,
|
||||
@{etc_ro}/profile.d/* r,
|
||||
/etc/bashrc r,
|
||||
/etc/bash.bashrc r,
|
||||
/etc/bash.bashrc.local r,
|
||||
/etc/bash_completion r,
|
||||
/etc/bash_completion.d/{,**} r,
|
||||
/etc/inputrc r,
|
||||
/etc/mtab r,
|
||||
|
||||
owner @{HOME}/.alias r,
|
||||
owner @{HOME}/.bash_aliases r,
|
||||
owner @{HOME}/.bash_history rw,
|
||||
owner @{HOME}/.bash_profile r,
|
||||
owner @{HOME}/.bashrc r,
|
||||
owner @{HOME}/.i18n r,
|
||||
owner @{HOME}/.profile r,
|
||||
|
||||
owner @{PROC}/@{pid}/mounts r,
|
||||
|
||||
include if exists <abstractions/bash-strict.d>
|
Loading…
Reference in New Issue
Block a user