-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
75 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# apparmor.d - Full set of apparmor profiles | ||
# Copyright (C) 2023 Alexandre Pujol <[email protected]> | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
|
||
dbus send bus=system path=/org/freedesktop/network1 | ||
interface=org.freedesktop.DBus.Properties | ||
member=Get | ||
peer=(name=org.freedesktop.network1, label=systemd-networkd), | ||
|
||
include if exists <abstractions/bus/org.freedesktop.network1.d> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,10 +36,6 @@ profile evolution-alarm-notify @{exec_path} { | |
/usr/share/evolution-data-server/{,**} r, | ||
/usr/share/{,zoneinfo-}icu/{,**} r, | ||
|
||
# freedesktop.org-strict | ||
/usr/share/glib-2.0/schemas/gschemas.compiled r, | ||
/usr/share/*ubuntu/applications/ r, | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
roddhjav
Author
Owner
|
||
|
||
/etc/timezone r, | ||
|
||
include if exists <local/evolution-alarm-notify> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# apparmor.d - Full set of apparmor profiles | ||
# Copyright (C) 2019-2021 Mikhail Morfikov | ||
# Copyright (C) 2021-2023 Alexandre Pujol <[email protected]> | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
|
||
abi <abi/3.0>, | ||
|
@@ -15,17 +16,18 @@ profile amixer @{exec_path} { | |
@{exec_path} mr, | ||
|
||
/usr/share/pipewire/client.conf r, | ||
/usr/share/pipewire/client-rt.conf r, | ||
|
||
/var/lib/dbus/machine-id r, | ||
/etc/machine-id r, | ||
/etc/pipewire/client-rt.conf.d/{,*} r, | ||
/var/lib/dbus/machine-id r, | ||
|
||
owner @{HOME}/.Xauthority r, | ||
|
||
owner @{user_config_dirs}/pulse/ r, | ||
|
||
owner @{PROC}/@{pid}/task/@{tid}/comm rw, | ||
|
||
# file_inherit | ||
owner /dev/tty@{int} rw, | ||
|
||
include if exists <local/amixer> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,31 @@ | ||
# apparmor.d - Full set of apparmor profiles | ||
# Copyright (C) 2009-2012 Steve Kostecke <[email protected]>; | ||
# 2011-2014 Jérémy Bobbio <[email protected]>; | ||
# 2020 krathalan https://git.sr.ht/~krathalan/apparmor-profiles/ | ||
# Copyright (C) 2011-2014 Jérémy Bobbio <[email protected]>; | ||
# Copyright (C) 2020 krathalan https://git.sr.ht/~krathalan/apparmor-profiles/ | ||
# Copyright (C) 2021-2023 Alexandre Pujol <[email protected]> | ||
# SPDX-License-Identifier: GPL-3.0-only | ||
|
||
# Version of program profiled: 1.9.14 | ||
|
||
abi <abi/3.0>, | ||
|
||
include <tunables/global> | ||
|
||
@{exec_path} = @{bin}/haveged | ||
profile haveged @{exec_path} { | ||
include <abstractions/base> | ||
|
||
# Required for ioctl RNDADDENTROPY | ||
capability sys_admin, | ||
|
||
owner @{PROC}/@{pid}/status r, | ||
|
||
@{exec_path} mr, | ||
|
||
@{PROC}/sys/kernel/osrelease r, | ||
@{PROC}/sys/kernel/random/poolsize r, | ||
@{PROC}/sys/kernel/random/write_wakeup_threshold w, | ||
/dev/random w, | ||
|
||
@{sys}/devices/system/cpu/cpu@{int}/cache/ r, | ||
@{sys}/devices/system/cpu/cpu@{int}/cache/index*/{type,size,level} r, | ||
|
||
@{PROC}/sys/kernel/osrelease r, | ||
@{PROC}/sys/kernel/random/poolsize r, | ||
@{PROC}/sys/kernel/random/write_wakeup_threshold w, | ||
owner @{PROC}/@{pid}/status r, | ||
|
||
/dev/random w, | ||
|
||
include if exists <local/haveged> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# apparmor.d - Full set of apparmor profiles | ||
# Copyright (C) 2021 Mikhail Morfikov | ||
# Copyright (C) 2021-2023 Alexandre Pujol <[email protected]> | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
|
||
abi <abi/3.0>, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# apparmor.d - Full set of apparmor profiles | ||
# Copyright (C) 2019-2021 Mikhail Morfikov | ||
# Copyright (C) 2021-2023 Alexandre Pujol <[email protected]> | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
|
||
abi <abi/3.0>, | ||
|
@@ -12,23 +13,20 @@ profile ifconfig @{exec_path} { | |
include <abstractions/consoles> | ||
include <abstractions/nameservice-strict> | ||
|
||
# To be able to manage network interfaces. | ||
capability net_admin, | ||
|
||
# Needed? | ||
audit deny capability sys_module, | ||
capability sys_module, | ||
|
||
network inet dgram, | ||
network inet6 dgram, | ||
|
||
@{exec_path} mr, | ||
|
||
@{PROC}/net/dev r, | ||
@{PROC}/net/if_inet6 r, | ||
/etc/networks r, | ||
|
||
@{PROC}/@{pid}/net/dev r, | ||
@{PROC}/@{pid}/net/if_inet6 r, | ||
|
||
/etc/networks r, | ||
@{PROC}/net/dev r, | ||
@{PROC}/net/if_inet6 r, | ||
|
||
include if exists <local/ifconfig> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# apparmor.d - Full set of apparmor profiles | ||
# Copyright (C) 2019-2021 Mikhail Morfikov | ||
# Copyright (C) 2021-2023 Alexandre Pujol <[email protected]> | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
|
||
abi <abi/3.0>, | ||
|
@@ -27,14 +28,14 @@ profile initd-kmod @{exec_path} { | |
/etc/modules-load.d/*.conf r, | ||
/etc/modules r, | ||
|
||
|
||
profile run-parts { | ||
include <abstractions/base> | ||
|
||
@{bin}/run-parts mr, | ||
|
||
/etc/modules-load.d/ r, | ||
|
||
include if exists <local/initd-kmod_run-parts> | ||
} | ||
|
||
profile systemctl { | ||
|
@@ -54,6 +55,7 @@ profile initd-kmod @{exec_path} { | |
owner @{run}/systemd/ask-password/ rw, | ||
owner @{run}/systemd/ask-password-block/* rw, | ||
|
||
include if exists <local/initd-kmod_systemctl> | ||
} | ||
|
||
include if exists <local/initd-kmod> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Then how do we track these requirements when we need a restricted version of
freedesktop.org
?