2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-09-05 08:45:22 +00:00

Merge: Merge Add ncurses abstraction with terminfo paths

Signed-off-by: Ryan Lee <ryan.lee@canonical.com>

MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/1550
Approved-by: Christian Boltz <apparmor@cboltz.de>
Merged-by: Ryan Lee <rlee287@yahoo.com>
(cherry picked from commit a82b16f059)
Signed-off-by: John Johansen <john.johansen@canonical.com>

Merge branch 'cherry-pick-a82b16f05928a565fc07141630f452ee3921a99b' into apparmor-4.1
This commit is contained in:
John Johansen
2025-04-06 04:28:41 -07:00
3 changed files with 12 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
abi <abi/4.0>,
# Default hardcoded locations searched by ncurses for terminfo
@{HOME}/.terminfo/** r,
/etc/terminfo/** r,
/{usr/,}lib/terminfo/** r,
/usr/share/terminfo/** r,
# Local overrides for systems with TERMINFO env vars, etc.
include if exists <abstractions/terminfo.d>

View File

@@ -12,6 +12,7 @@ include <tunables/global>
profile lsb_release {
include <abstractions/base>
include <abstractions/python>
include <abstractions/terminfo>
owner @{PROC}/@{pid}/fd/ r,
@@ -43,7 +44,6 @@ profile lsb_release {
/usr/include/python*/pyconfig.h r,
/usr/share/distro-info/** r,
/usr/share/dpkg/** r,
/usr/share/terminfo/** r,
/var/lib/dpkg/** r,
# file_inherit

View File

@@ -17,6 +17,7 @@ include <tunables/global>
include <abstractions/base>
include <abstractions/bash>
include <abstractions/consoles>
include <abstractions/terminfo>
include <abstractions/user-manpages>
/{usr/,}bin/bash rmix,
@@ -61,7 +62,6 @@ include <tunables/global>
/usr/share/locale-bundle/** r,
/usr/share/man/ r,
/usr/share/man/** r,
/usr/share/terminfo/** r,
/usr/share/texmf/teTeX/man/** r,
/usr/share/postgresql/*/man/** rk,