Tighten the permissions of ufw

This commit is contained in:
EricLin0509 2024-08-24 19:35:21 +08:00 committed by Alex
parent cecd0a6284
commit d5ee5c51cb

View file

@ -1,5 +1,5 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 EricLin
# Copyright (C) 2024 EricLin <ericlin050914@gmail.com>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
@ -44,8 +44,10 @@ profile ufw @{exec_path} {
/etc/passwd r,
/etc/services r,
/var/tmp/* rw,
/tmp/* rw,
/var/tmp/@{rand8} rw,
/var/tmp/tmp* rw,
/tmp/@{rand8} rw,
/tmp/tmp* rw,
/dev/pts/[0-9]* rw,
/dev/tty rw,