From 501bb66c64500521b998955344536d6dd14596ed Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Wed, 16 Feb 2022 19:21:11 +0000 Subject: [PATCH] Add locale-gen profile. --- apparmor.d/profiles-g-l/locale-gen | 27 +++++++++++++++++++++++++++ dists/flags/main.flags | 1 + 2 files changed, 28 insertions(+) create mode 100644 apparmor.d/profiles-g-l/locale-gen diff --git a/apparmor.d/profiles-g-l/locale-gen b/apparmor.d/profiles-g-l/locale-gen new file mode 100644 index 00000000..b0f8c532 --- /dev/null +++ b/apparmor.d/profiles-g-l/locale-gen @@ -0,0 +1,27 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2022 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}bin/locale-gen +profile locale-gen @{exec_path} { + include + + @{exec_path} mr, + + /{usr/,}bin/{,ba}sh rix, + /{usr/,}bin/gzip rix, + /{usr/,}bin/localedef rix, + /{usr/,}bin/rm rix, + /{usr/,}bin/sed rix, + + /{usr/,}lib/locale/locale-archive rwl, + /{usr/,}lib/locale/locale-archive* rw, + + /etc/locale.gen r, + + include if exists +} \ No newline at end of file diff --git a/dists/flags/main.flags b/dists/flags/main.flags index fca2ab9e..77a55082 100644 --- a/dists/flags/main.flags +++ b/dists/flags/main.flags @@ -78,6 +78,7 @@ last complain lastlog complain libvirt-dbus complain libvirtd attach_disconnected,complain +locale-gen complain localectl complain man complain mission-control complain