mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 14:25:52 +00:00
apparmor.d: add locale profile
This commit is contained in:
35
profiles/apparmor.d/locale
Normal file
35
profiles/apparmor.d/locale
Normal file
@@ -0,0 +1,35 @@
|
||||
#------------------------------------------------------------------
|
||||
# Copyright (C) 2025 Canonical Ltd.
|
||||
#
|
||||
# Author: Giampaolo Fresi Roglia (gianz)
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of version 2 of the GNU General Public
|
||||
# License published by the Free Software Foundation.
|
||||
#------------------------------------------------------------------
|
||||
# vim: ft=apparmor
|
||||
|
||||
abi <abi/4.0>,
|
||||
|
||||
#include <tunables/global>
|
||||
|
||||
@{compressors}=/usr/bin/gzip /usr/bin/bzip2
|
||||
|
||||
profile locale /usr/bin/locale {
|
||||
include <abstractions/base>
|
||||
|
||||
file r /usr/share/i18n/charmaps/,
|
||||
file r /usr/share/i18n/charmaps/*,
|
||||
|
||||
file Cxrm @{compressors} -> compressor,
|
||||
|
||||
profile compressor {
|
||||
include <abstractions/base>
|
||||
file r @{compressors},
|
||||
file r /usr/share/i18n/charmaps/,
|
||||
file r /usr/share/i18n/charmaps/*,
|
||||
}
|
||||
|
||||
include if exists <local/locale>
|
||||
}
|
||||
|
Reference in New Issue
Block a user