Reorganise the directories.
This commit is contained in:
parent
91b15fcc73
commit
091d20d086
715 changed files with 0 additions and 0 deletions
84
apparmor.d/profiles-m-z/repo
Normal file
84
apparmor.d/profiles-m-z/repo
Normal file
|
|
@ -0,0 +1,84 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2019-2021 Mikhail Morfikov
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{ANDROID_SOURCE_DIR} = /media/Android/
|
||||
|
||||
@{exec_path} = /{usr/,}bin/repo
|
||||
profile repo @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/python>
|
||||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/openssl>
|
||||
include <abstractions/ssl_certs>
|
||||
include <abstractions/deny-root-dir-access>
|
||||
|
||||
network inet dgram,
|
||||
network inet6 dgram,
|
||||
network inet stream,
|
||||
network inet6 stream,
|
||||
|
||||
@{exec_path} r,
|
||||
/{usr/,}bin/python3.[0-9]* rix,
|
||||
/{usr/,}bin/python2.[0-9]* rix,
|
||||
|
||||
/{usr/,}bin/ r,
|
||||
/{usr/,}bin/env rix,
|
||||
/{usr/,}bin/{,ba,da}sh rix,
|
||||
/{usr/,}bin/uname rix,
|
||||
|
||||
/{usr/,}bin/git rix,
|
||||
/{usr/,}lib/git-core/git rix,
|
||||
/{usr/,}lib/git-core/git-* rix,
|
||||
|
||||
/{usr/,}bin/curl rCx -> curl,
|
||||
/{usr/,}bin/gpg rCx -> gpg,
|
||||
|
||||
# Android source dir
|
||||
owner @{ANDROID_SOURCE_DIR}/** rwkl -> @{ANDROID_SOURCE_DIR}/**,
|
||||
owner @{ANDROID_SOURCE_DIR}/**/.repo/repo/main.py rix,
|
||||
|
||||
owner @{HOME}/.repoconfig/{,**} rw,
|
||||
owner @{HOME}/.repo_.gitconfig.json rw,
|
||||
|
||||
owner @{HOME}/.config/git/config r,
|
||||
owner @{HOME}/.gitconfig r,
|
||||
|
||||
/usr/share/git-core/{,**} r,
|
||||
|
||||
owner /tmp/.git_vtag_tmp* rw,
|
||||
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
owner @{PROC}/@{pid}/mounts r,
|
||||
|
||||
owner /dev/shm/* rw,
|
||||
owner /dev/shm/sem.mp* rwl -> /dev/shm/*,
|
||||
|
||||
|
||||
profile curl {
|
||||
include <abstractions/base>
|
||||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/openssl>
|
||||
include <abstractions/ssl_certs>
|
||||
|
||||
/{usr/,}bin/curl mr,
|
||||
|
||||
}
|
||||
|
||||
profile gpg {
|
||||
include <abstractions/base>
|
||||
|
||||
/{usr/,}bin/gpg mr,
|
||||
|
||||
owner @{HOME}/.repoconfig/gnupg/** rwkl -> @{HOME}/.repoconfig/gnupg/**,
|
||||
|
||||
owner /tmp/.git_vtag_tmp* r,
|
||||
|
||||
}
|
||||
|
||||
include if exists <local/repo>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue