-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(profiles): apply guideline on some profile. Update flags list.
- Loading branch information
Showing
12 changed files
with
73 additions
and
82 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
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,11 +1,12 @@ | ||
# apparmor.d - Full set of apparmor profiles | ||
# Copyright (C) 2023 Alexandre Pujol <[email protected]> | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
|
||
abi <abi/3.0>, | ||
|
||
include <tunables/global> | ||
|
||
@{exec_path} = /{,usr/}{,local/}bin/btop | ||
@{exec_path} = @{bin}/btop | ||
profile btop @{exec_path} { | ||
include <abstractions/base> | ||
include <abstractions/nameservice-strict> | ||
|
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,16 +1,17 @@ | ||
# apparmor.d - Full set of apparmor profiles | ||
# Copyright (C) 2023 Alexandre Pujol <[email protected]> | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
|
||
abi <abi/3.0>, | ||
|
||
include <tunables/global> | ||
|
||
@{exec_path} = /{,usr/}bin/host | ||
@{exec_path} = @{bin}/host | ||
profile host @{exec_path} { | ||
include <abstractions/base> | ||
include <abstractions/consoles> | ||
include <abstractions/openssl> | ||
include <abstractions/nameservice-strict> | ||
include <abstractions/openssl> | ||
|
||
network inet dgram, | ||
network inet6 dgram, | ||
|
@@ -21,5 +22,7 @@ profile host @{exec_path} { | |
|
||
owner @{PROC}/@{pids}/task/@{tid}/comm rw, | ||
|
||
@{sys}/kernel/mm/transparent_hugepage/enabled r, | ||
|
||
include if exists <local/host> | ||
} |
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,14 +1,15 @@ | ||
# apparmor.d - Full set of apparmor profiles | ||
# Copyright (C) 2023 Alexandre Pujol <[email protected]> | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
|
||
include <tunables/global> | ||
|
||
@{exec_path} = /{,usr/}{,s}bin/murmurd | ||
@{exec_path} = @{bin}/murmurd | ||
profile murmurd @{exec_path} { | ||
include <abstractions/base> | ||
include <abstractions/dbus-strict> | ||
include <abstractions/nameservice-strict> | ||
include <abstractions/openssl> | ||
include <abstractions/dbus-strict> | ||
include <abstractions/ssl_certs> | ||
|
||
capability chown, | ||
|
@@ -31,7 +32,7 @@ profile murmurd @{exec_path} { | |
|
||
@{exec_path} mr, | ||
|
||
/{,usr/}bin/lsb_release Px -> lsb_release, | ||
@{bin}/lsb_release rPx -> lsb_release, | ||
|
||
/etc/mumble-server.ini r, | ||
|
||
|
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,15 +1,16 @@ | ||
# apparmor.d - Full set of apparmor profiles | ||
# Copyright (C) 2023 Alexandre Pujol <[email protected]> | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
|
||
abi <abi/3.0>, | ||
|
||
include <tunables/global> | ||
|
||
@{exec_path} = /{,usr/}bin/nvidia-detector | ||
@{exec_path} = @{bin}/nvidia-detector | ||
profile nvidia-detector @{exec_path} { | ||
include <abstractions/base> | ||
|
||
@{exec_path} r, | ||
@{exec_path} mr, | ||
|
||
include if exists <local/nvidia-detector> | ||
} |
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,21 +1,22 @@ | ||
# apparmor.d - Full set of apparmor profiles | ||
# Copyright (C) 2023 Alexandre Pujol <[email protected]> | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
|
||
abi <abi/3.0>, | ||
|
||
include <tunables/global> | ||
|
||
@{exec_path} = /{,usr/}bin/nvidia-persistenced | ||
@{exec_path} = @{bin}/nvidia-persistenced | ||
profile nvidia-persistenced @{exec_path} { | ||
include <abstractions/base> | ||
include <abstractions/nvidia> | ||
include <abstractions/nameservice-strict> | ||
include <abstractions/nvidia> | ||
|
||
capability chown, | ||
capability setgid, | ||
capability setuid, | ||
|
||
@{exec_path} r, | ||
@{exec_path} mr, | ||
|
||
/etc/netconfig r, | ||
|
||
|
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,11 +1,12 @@ | ||
# apparmor.d - Full set of apparmor profiles | ||
# Copyright (C) 2023 Alexandre Pujol <[email protected]> | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
|
||
abi <abi/3.0>, | ||
|
||
include <tunables/global> | ||
|
||
@{exec_path} = /{,usr/}bin/pstree | ||
@{exec_path} = @{bin}/pstree | ||
profile pstree @{exec_path} flags=(attach_disconnected) { | ||
include <abstractions/base> | ||
include <abstractions/consoles> | ||
|
@@ -18,11 +19,11 @@ profile pstree @{exec_path} flags=(attach_disconnected) { | |
@{exec_path} mr, | ||
|
||
@{PROC} r, | ||
@{PROC}/uptime r, | ||
@{PROC}/@{pids}/attr/current r, | ||
@{PROC}/@{pids}/stat r, | ||
@{PROC}/@{pids}/task/ r, | ||
@{PROC}/@{pids}/attr/current r, | ||
@{PROC}/@{pids}/task/@{tid}/stat r, | ||
@{PROC}/uptime r, | ||
owner @{PROC}/@{pid}/cmdline r, | ||
|
||
include if exists <local/pstree> | ||
|
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,24 +1,26 @@ | ||
# apparmor.d - Full set of apparmor profiles | ||
# Copyright (C) 2023 Alexandre Pujol <[email protected]> | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
|
||
abi <abi/3.0>, | ||
|
||
include <tunables/global> | ||
|
||
@{exec_path} = /{,usr/}bin/remmina | ||
@{exec_path} = @{bin}/remmina | ||
profile remmina @{exec_path} { | ||
include <abstractions/base> | ||
include <abstractions/nameservice-strict> | ||
include <abstractions/ibus> | ||
include <abstractions/dbus-accessibility-strict> | ||
include <abstractions/dbus-gtk> | ||
include <abstractions/dbus-session-strict> | ||
include <abstractions/dbus-strict> | ||
include <abstractions/dconf-write> | ||
include <abstractions/fonts> | ||
include <abstractions/ssl_certs> | ||
include <abstractions/openssl> | ||
include <abstractions/freedesktop.org> | ||
include <abstractions/dbus-strict> | ||
include <abstractions/dbus-session-strict> | ||
include <abstractions/dbus-accessibility-strict> | ||
include <abstractions/dbus-gtk> | ||
include <abstractions/ibus> | ||
include <abstractions/nameservice-strict> | ||
include <abstractions/openssl> | ||
include <abstractions/ssl_certs> | ||
include <abstractions/X-strict> | ||
|
||
network inet stream, | ||
network inet6 stream, | ||
|
@@ -112,33 +114,27 @@ profile remmina @{exec_path} { | |
|
||
@{exec_path} r, | ||
|
||
/usr/share/remmina/{,**} r, | ||
/usr/share/themes/{,**} r, | ||
|
||
/etc/timezone r, | ||
/etc/ssh/ssh_config r, | ||
/etc/ssh/ssh_config.d/{,*} r, | ||
/usr/share/remmina/{,**} r, | ||
/etc/gtk-3.0/settings.ini r, | ||
|
||
owner @{HOME}/@{XDG_SSH_DIR}/{,*} r, | ||
|
||
owner @{user_cache_dirs}/remmina/{,**} rw, | ||
owner @{user_config_dirs}/autostart/remmina-applet.desktop r, | ||
owner @{user_config_dirs}/gtk-3.0/bookmarks r, | ||
owner @{user_config_dirs}/freerdp/known_hosts2 rwk, | ||
owner @{user_config_dirs}/gtk-3.0/bookmarks r, | ||
owner @{user_config_dirs}/remmina/{,**} rw, | ||
owner @{user_share_dirs}/remmina/{,**} rw, | ||
owner @{user_cache_dirs}/remmina/{,**} rw, | ||
owner @{HOME}/@{XDG_SSH_DIR}/{,*} r, | ||
|
||
owner @{PROC}/@{pid}/task/@{tid}/comm rw, | ||
owner @{PROC}/@{pid}/mountinfo r, | ||
|
||
owner @{run}/user/@{uid}/keyring/ssh rw, | ||
|
||
# gtk-tiny | ||
/etc/gtk-3.0/settings.ini r, | ||
/usr/share/themes/{,**} r, | ||
|
||
# X-tiny | ||
owner @{HOME}/.Xauthority r, | ||
owner @{HOME}/.xsession-errors w, | ||
unix (send, receive, connect) type=stream peer=(addr="@/tmp/.X11-unix/X[0-9]*", label="{xorg,xkbcomp}"), | ||
/etc/X11/{,**} r, | ||
|
||
include if exists <local/remmina> | ||
} |
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,11 +1,12 @@ | ||
# apparmor.d - Full set of apparmor profiles | ||
# Copyright (C) 2023 Alexandre Pujol <[email protected]> | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
|
||
abi <abi/3.0>, | ||
|
||
include <tunables/global> | ||
|
||
@{exec_path} = /{,usr/}bin/ss | ||
@{exec_path} = @{bin}/ss | ||
profile ss @{exec_path} { | ||
include <abstractions/base> | ||
include <abstractions/consoles> | ||
|
Oops, something went wrong.