feat(full): disable nnp flag on some services.

This commit is contained in:
Alexandre Pujol 2023-11-19 14:32:57 +00:00
parent f564347580
commit 96ea9d17ae
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
15 changed files with 37 additions and 0 deletions

View File

@ -200,6 +200,11 @@ func SetFullSystemPolicy() error {
return err
}
// Set systemd unit drop-in files
if err := copyTo(paths.New("systemd/full/"), Root.Join("systemd")); err != nil {
return err
}
logging.Success("Configure AppArmor for full system policy")
return nil
}

View File

@ -0,0 +1,2 @@
[Service]
NoNewPrivileges=no

View File

@ -0,0 +1,2 @@
[Service]
NoNewPrivileges=no

View File

@ -0,0 +1,3 @@
[Service]
ProtectKernelModules=no
RestrictRealtime=no

View File

@ -0,0 +1,2 @@
[Service]
NoNewPrivileges=no

View File

@ -0,0 +1,2 @@
[Service]
NoNewPrivileges=no

View File

@ -0,0 +1,2 @@
[Service]
NoNewPrivileges=no

View File

@ -0,0 +1,2 @@
[Service]
NoNewPrivileges=no

View File

@ -0,0 +1,3 @@
[Service]
NoNewPrivileges=no
ProtectClock=no

View File

@ -0,0 +1,2 @@
[Service]
NoNewPrivileges=no

View File

@ -0,0 +1,3 @@
[Service]
NoNewPrivileges=no
ProtectClock=no

View File

@ -0,0 +1,2 @@
[Service]
NoNewPrivileges=no

View File

@ -0,0 +1,2 @@
[Service]
NoNewPrivileges=no

View File

@ -0,0 +1,2 @@
[Service]
NoNewPrivileges=no

View File

@ -0,0 +1,3 @@
# TODO: works as intended on server, does not work on desktop
# [Service]
# AppArmorProfile=systemd-user