mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
feat(profiles): add language-validate.
This commit is contained in:
parent
9d81f5e88f
commit
fb61f8ebff
@ -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,
|
||||
|
||||
|
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…
Reference in New Issue
Block a user