feat(profiles): general update.
This commit is contained in:
parent
c0e62f30bb
commit
23642eb0be
14 changed files with 39 additions and 18 deletions
|
|
@ -13,12 +13,11 @@ profile ip @{exec_path} flags=(attach_disconnected) {
|
|||
include <abstractions/consoles>
|
||||
|
||||
capability net_admin,
|
||||
capability sys_admin,
|
||||
capability sys_module,
|
||||
|
||||
network netlink raw,
|
||||
|
||||
@{exec_path} mrix,
|
||||
|
||||
mount options=(rw, rshared) -> /{var/,}run/netns/,
|
||||
mount options=(rw, rslave) -> /,
|
||||
mount options=(rw, bind) / -> /{var/,}run/netns/*,
|
||||
|
|
@ -28,12 +27,15 @@ profile ip @{exec_path} flags=(attach_disconnected) {
|
|||
umount @{run}/netns/*,
|
||||
umount /sys/,
|
||||
|
||||
/etc/iproute2/{,**} r,
|
||||
@{exec_path} mrix,
|
||||
|
||||
/ r,
|
||||
|
||||
/etc/iproute2/{,**} r,
|
||||
/etc/netns/*/ r,
|
||||
|
||||
owner @{run}/netns/ rw,
|
||||
@{run}/netns/* rw,
|
||||
/etc/netns/*/ r,
|
||||
|
||||
owner @{PROC}/@{pid}/cgroup r,
|
||||
owner @{PROC}/@{pid}/net/dev_mcast r,
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2019-2021 Mikhail Morfikov
|
||||
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
@{JEKYLL_DIR}=@{HOME}/morfikov.github.io
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
|
@ -17,19 +16,18 @@ profile jekyll @{exec_path} {
|
|||
@{exec_path} r,
|
||||
/{usr/,}bin/ruby[0-9].[0-9]* rix,
|
||||
|
||||
/usr/share/rubygems-integration/*/specifications/ r,
|
||||
/usr/share/rubygems-integration/*/specifications/*.gemspec rwk,
|
||||
|
||||
/{usr/,}lib/ruby/gems/*/specifications/ r,
|
||||
/{usr/,}lib/ruby/gems/*/specifications/** r,
|
||||
/{usr/,}lib/ruby/gems/*/specifications/**.gemspec rwk,
|
||||
|
||||
/usr/share/rubygems-integration/*/specifications/ r,
|
||||
/usr/share/rubygems-integration/*/specifications/*.gemspec rwk,
|
||||
|
||||
/usr/share/ruby-addressable/unicode.data r,
|
||||
|
||||
# Jekyll dir
|
||||
owner @{JEKYLL_DIR}/{,**} r,
|
||||
owner @{JEKYLL_DIR}/_site/{,**} rw,
|
||||
owner @{JEKYLL_DIR}/.sass-cache/** rw,
|
||||
owner @{user_projects_dirs}/{,**} r,
|
||||
owner @{user_projects_dirs}/**/_site/{,**} rw,
|
||||
owner @{user_projects_dirs}/**/.sass-cache/** rw,
|
||||
|
||||
@{PROC}/version r,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue