38 lines
No EOL
990 B
Text
38 lines
No EOL
990 B
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /{usr/,}bin/pimport
|
|
profile pass-import @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/python>
|
|
include <abstractions/openssl>
|
|
|
|
@{exec_path} mr,
|
|
|
|
/{usr/,}bin/ r,
|
|
/{usr/,}bin/pass rPx,
|
|
/{usr/,}{s,}bin/ldconfig rix,
|
|
/{usr/,}bin/gcc rix, # TODO: Test deny
|
|
/{usr/,}bin/ld rix,
|
|
/{usr/,}bin/python3.[0-9]* rix,
|
|
/{usr/,}lib/gcc/**/collect2 rix,
|
|
|
|
/{usr/,}lib/python{2.[4-7],3,3.[0-9]*}/** w, # TODO: Test deny
|
|
|
|
/usr/share/file/misc/magic.mgc r,
|
|
|
|
owner @{HOME}/.password-store/{,**} rw,
|
|
owner @{user_projects_dirs}/**/*-store/{,**} rw,
|
|
owner @{user_config_dirs}/password-store/{,**} rw,
|
|
|
|
owner /tmp/[a-zA-Z0-9]* rw,
|
|
|
|
@{PROC}/@{pids}/fd/ r,
|
|
|
|
include if exists <local/pass-import>
|
|
} |