# apparmor.d - Full set of apparmor profiles # Copyright (C) 2019-2021 Mikhail Morfikov # SPDX-License-Identifier: GPL-2.0-only abi , include @{exec_path} = /{usr/,}bin/appstreamcli profile appstreamcli @{exec_path} flags=(complain) { include include @{exec_path} mr, # For file valudation using the network /{usr/,}bin/curl rCx -> curl, /etc/appstream.conf r, owner @{PROC}/@{pid}/fd/ r, owner @{HOME}/.cache/ rw, owner @{HOME}/.cache/appstream-cache-*.mdb rw, /usr/share/appdata/ r, /var/lib/app-info/yaml/ r, /var/lib/app-info/yaml/*_Components-*.yml.gz w, owner /var/cache/app-info/{,**} rw, owner /tmp/appstream-cache-*.mdb rw, owner /tmp/appstream/ rw, owner /tmp/appstream/appcache-*.mdb rw, owner @{HOME}/.local/share/mime/mime.cache r, /usr/share/mime/mime.cache r, /usr/share/applications/{,*.desktop} r, /usr/share/metainfo/ r, /usr/share/metainfo/*.{metainfo,appdata}.xml r, /var/lib/apt/lists/ r, /var/lib/apt/lists/*_Components-*.gz r, # file_inherit /var/log/cron-apt/temp w, profile curl { include include include include /{usr/,}bin/curl mr, } include if exists }