apparmor.d/apparmor.d/profiles-s-z/update-mime-database
2021-10-22 15:01:43 +01:00

25 lines
No EOL
546 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/update-mime-database
profile update-mime-database @{exec_path} {
include <abstractions/base>
capability dac_override,
capability dac_read_search,
@{exec_path} mr,
/usr/share/mime/{,**} rw,
# Inherit silencer
deny network inet6 stream,
deny network inet stream,
include if exists <local/update-mime-database>
}