2
0
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:
Giampaolo Fresi Roglia
2025-04-22 16:45:09 +02:00
parent a041f2beb8
commit c1ecdb4f26

View 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>
}