-
-
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
9 changed files
with
35 additions
and
29 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 |
---|---|---|
|
@@ -3,15 +3,14 @@ | |
# Copyright (C) 2021-2022 Alexandre Pujol <[email protected]> | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
|
||
owner @{HOME}/.icons/{,**} r, | ||
|
||
@{system_share_dirs}/*ubuntu/applications/{,**} r, | ||
@{system_share_dirs}/gnome/applications/{,**} r, | ||
@{system_share_dirs}/xfce4/applications/{,**} r, | ||
|
||
/usr/share/glib-2.0/schemas/gschemas.compiled r, | ||
|
||
/etc/gnome/defaults.list r, | ||
/etc/xfce4/defaults.list r, | ||
|
||
/var/lib/snapd/desktop/icons/{,**} r, | ||
|
||
owner @{HOME}/.icons/{,**} 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
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,10 +1,10 @@ | ||
# 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 | ||
# | ||
|
||
# See more at: https://gitlab.com/apparmor/apparmor/wikis/Pam_apparmor_example | ||
|
||
# | ||
# This file contains the mappings from users to roles for the binaries | ||
# confined with AppArmor and configured for use with libpam-apparmor. Users | ||
# without a mapping will not be able to login. | ||
|
@@ -15,14 +15,18 @@ | |
^DEFAULT { | ||
include <abstractions/authentication> | ||
include <abstractions/nameservice> | ||
|
||
capability dac_override, | ||
capability setgid, | ||
capability setuid, | ||
|
||
/etc/default/su r, | ||
@{etc_ro}/environment r, | ||
@{HOMEDIRS}/.xauth@{rand6} w, | ||
@{bin}/{,b,d,rb}ash Px -> default_user, | ||
@{bin}/{c,k,tc,z}sh Px -> default_user, | ||
|
||
@{bin}/{,b,d,rb}ash rPx -> default_user, | ||
@{bin}/{c,k,tc,z}sh rPx -> default_user, | ||
|
||
include if exists <local/pam_default> | ||
} | ||
|
||
# USER is a confined user. The hat contains only the permissions necessary | ||
|
@@ -37,13 +41,13 @@ | |
capability setgid, | ||
capability setuid, | ||
|
||
@{bin}/{,b,d,rb}ash Px -> confined_user, | ||
@{bin}/{c,k,tc,z}sh Px -> confined_user, | ||
@{bin}/{,b,d,rb}ash rPx -> confined_user, | ||
@{bin}/{c,k,tc,z}sh rPx -> confined_user, | ||
|
||
/etc/default/su r, | ||
@{etc_ro}/environment r, | ||
@{HOMEDIRS}/.xauth@{rand6} w, | ||
|
||
include if exists <local/pam_user> | ||
} | ||
|
||
# Don't confine members whose primary group is 'admin' who are not specifically | ||
|
@@ -59,11 +63,11 @@ | |
capability setgid, | ||
capability setuid, | ||
|
||
@{bin}/{,b,d,rb}ash Ux, | ||
@{bin}/{c,k,tc,z}sh Ux, | ||
@{bin}/{,b,d,rb}ash rUx, | ||
@{bin}/{c,k,tc,z}sh rUx, | ||
|
||
/etc/default/su r, | ||
@{etc_ro}/environment r, | ||
@{HOMEDIRS}/.xauth@{rand6} w, | ||
|
||
include if exists <local/pam_root> | ||
} |
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,3 +1,4 @@ | ||
[Service] | ||
ProtectKernelModules=no | ||
RestrictRealtime=no | ||
RestrictRealtime=no | ||
ProtectKernelModules=no |