50 lines
1.1 KiB
Text
50 lines
1.1 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/4.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{bin}/reflector
|
|
profile reflector @{exec_path} flags=(attach_disconnected) {
|
|
include <abstractions/base>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/python>
|
|
include <abstractions/ssl_certs>
|
|
|
|
capability net_admin,
|
|
capability dac_read_search,
|
|
capability dac_override,
|
|
|
|
network inet dgram,
|
|
network inet6 dgram,
|
|
network inet stream,
|
|
network inet6 stream,
|
|
network netlink raw,
|
|
|
|
@{exec_path} mr,
|
|
@{bin}/ r,
|
|
@{bin}/rsync ix,
|
|
|
|
/etc/xdg/reflector/reflector.conf r,
|
|
/etc/pacman.d/mirrorlist rw,
|
|
|
|
/var/cache/reflector/mirrorstatus.json rw,
|
|
|
|
owner @{user_cache_dirs}/mirrorstatus.json rw,
|
|
|
|
@{tmp}/@{rand8} rw,
|
|
@{tmp}/tmp@{rand8}/{,**} rw,
|
|
|
|
@{PROC}/1/environ r,
|
|
@{PROC}/cmdline r,
|
|
@{PROC}/sys/kernel/osrelease r,
|
|
|
|
/dev/tty@{int} rw,
|
|
owner /dev/pts/@{int} rw,
|
|
|
|
include if exists <local/reflector>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|