44 lines
944 B
Text
44 lines
944 B
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# Copyright (C) 2024 valoq <valoq@mailbox.org>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/4.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{bin}/w3m
|
|
profile w3m @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/consoles>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/ssl_certs>
|
|
include <abstractions/user-download-strict>
|
|
include <abstractions/user-read-strict>
|
|
|
|
network inet dgram,
|
|
network inet6 dgram,
|
|
network inet stream,
|
|
network inet6 stream,
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{sh_path} rix,
|
|
@{lib}/w3m/cgi-bin/* rix,
|
|
@{lib}/w3m/* rix,
|
|
|
|
/usr/share/terminfo/{,**} r,
|
|
|
|
/etc/mime.types r,
|
|
/etc/w3m/{,**} r,
|
|
|
|
owner @{HOME}/.w3m/{,**} rw,
|
|
|
|
owner @{user_config_dirs}/w3m/{,**} rw,
|
|
|
|
owner @{tmp}/w3m-@{rand6}/{,**} rw,
|
|
|
|
include if exists <local/w3m>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|