Add locale-gen profile.

This commit is contained in:
Alexandre Pujol 2022-02-16 19:21:11 +00:00
parent ac39df1af2
commit 501bb66c64
Failed to generate hash of commit
2 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,27 @@
# 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/,}bin/locale-gen
profile locale-gen @{exec_path} {
include <abstractions/base>
@{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 <local/locale-gen>
}

View file

@ -78,6 +78,7 @@ last complain
lastlog complain lastlog complain
libvirt-dbus complain libvirt-dbus complain
libvirtd attach_disconnected,complain libvirtd attach_disconnected,complain
locale-gen complain
localectl complain localectl complain
man complain man complain
mission-control complain mission-control complain