feat(profile): general update.

This commit is contained in:
Alexandre Pujol 2023-12-09 11:28:23 +00:00
parent a9c864fe60
commit ed1ea18a9e
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
6 changed files with 38 additions and 4 deletions

View file

@ -1,5 +1,6 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2019-2021 Mikhail Morfikov
# Copyright (C) 2021-2023 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
@ -9,9 +10,17 @@ include <tunables/global>
@{exec_path} = @{bin}/torsocks
profile torsocks @{exec_path} {
include <abstractions/base>
# include <abstractions/app-launcher-root>
@{exec_path} r,
@{bin}/{,ba,da}sh rix,
capability dac_read_search,
@{exec_path} rm,
@{bin}/{,ba,da}sh rix,
@{bin}/* rPUx,
@{bin}/getcap rix,
/etc/tor/torsocks.conf r,
include if exists <local/torsocks>
}