37 lines
770 B
Text
37 lines
770 B
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} = /usr/share/libalpm/scripts/depmod
|
|
profile pacman-hook-depmod @{exec_path} {
|
|
include <abstractions/base>
|
|
|
|
capability dac_read_search,
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{bin}/basename rix,
|
|
@{bin}/bash rix,
|
|
@{sbin}/depmod rPx,
|
|
@{bin}/kmod rPx,
|
|
@{bin}/rm rix,
|
|
@{bin}/rmdir rix,
|
|
|
|
/usr/lib/modules/*/{,**} rw,
|
|
|
|
/dev/tty rw,
|
|
/dev/tty@{int} rw,
|
|
owner /dev/pts/@{int} rw,
|
|
|
|
# Inherit Silencer
|
|
deny network inet6 stream,
|
|
deny network inet stream,
|
|
|
|
include if exists <local/pacman-hook-depmod>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|