feat(profile): add profile for more update-* tools.
This commit is contained in:
parent
17624b95d8
commit
0a5743fa46
4 changed files with 89 additions and 0 deletions
36
apparmor.d/profiles-s-z/update-shells
Normal file
36
apparmor.d/profiles-s-z/update-shells
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2025 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/4.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{sbin}/update-shells
|
||||
profile update-shells @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{sh_path} r,
|
||||
@{bin}/basename ix,
|
||||
@{bin}/chmod ix,
|
||||
@{bin}/chown ix,
|
||||
@{bin}/dirname ix,
|
||||
@{bin}/dpkg-realpath ix,
|
||||
@{bin}/mv ix,
|
||||
@{bin}/sync ix,
|
||||
|
||||
/usr/share/debianutils/shells r,
|
||||
/usr/share/debianutils/shells.d/{,**} r,
|
||||
|
||||
/etc/shells r,
|
||||
/etc/shells.tmp w,
|
||||
|
||||
/var/lib/shells.state r,
|
||||
/var/lib/shells.state.tmp w,
|
||||
|
||||
include if exists <local/update-shells>
|
||||
}
|
||||
|
||||
# vim:syntax=apparmor
|
||||
Loading…
Add table
Add a link
Reference in a new issue