feat(profiles): add language-validate.
This commit is contained in:
parent
9d81f5e88f
commit
fb61f8ebff
2 changed files with 28 additions and 0 deletions
|
|
@ -57,6 +57,8 @@ profile accounts-daemon @{exec_path} flags=(attach_disconnected) {
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
/usr/share/language-tools/language-validate rPx,
|
||||||
|
|
||||||
/usr/share/accountsservice/{,**} r,
|
/usr/share/accountsservice/{,**} r,
|
||||||
/usr/share/dbus-1/interfaces/*.xml r,
|
/usr/share/dbus-1/interfaces/*.xml r,
|
||||||
|
|
||||||
|
|
|
||||||
26
apparmor.d/profiles-g-l/language-validate
Normal file
26
apparmor.d/profiles-g-l/language-validate
Normal 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>
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue