feat(profiles): add language-validate.

This commit is contained in:
Alexandre Pujol 2022-06-14 19:07:35 +01:00
parent 9d81f5e88f
commit fb61f8ebff
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
2 changed files with 28 additions and 0 deletions

View File

@ -57,6 +57,8 @@ profile accounts-daemon @{exec_path} flags=(attach_disconnected) {
@{exec_path} mr,
/usr/share/language-tools/language-validate rPx,
/usr/share/accountsservice/{,**} r,
/usr/share/dbus-1/interfaces/*.xml r,

View File

@ -0,0 +1,26 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /usr/share/language-tools/language-validate
profile language-validate @{exec_path} {
include <abstractions/base>
capability setgid,
@{exec_path} mr,
/{usr/,}bin/{,ba,da}sh rix,
/{usr/,}bin/grep rix,
/{usr/,}bin/locale rix,
/usr/share/language-tools/language-options rix,
/usr/share/locale-langpack/{,*} r,
/usr/share/language-tools/{,*} r,
include if exists <local/language-validate>
}