apparmor.d/apparmor.d/profiles-a-f/ffprobe

28 lines
679 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2017-2021 Mikhail Morfikov
# Copyright (C) 2023-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/4.0>,
include <tunables/global>
@{exec_path} = @{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@{int}/meminfo r,
include if exists <local/ffprobe>
}
# vim:syntax=apparmor