apparmor.d/apparmor.d/profiles-a-f/ffprobe
2023-03-10 10:24:02 +00:00

26 lines
655 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2017-2021 Mikhail Morfikov
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/ffprobe
profile ffprobe @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/dri-common>
include <abstractions/user-download-strict>
@{exec_path} mr,
owner @{user_music_dirs}/** rw,
owner @{user_videos_dirs}/** rw,
@{sys}/devices/system/node/ r,
@{sys}/devices/system/node/node[0-9]/meminfo r,
include if exists <local/ffprobe>
}