disable AppArmor by default

This commit is contained in:
Kevin Olbrich 2019-11-25 19:54:27 +01:00
parent 08d7c3f055
commit 6fec976422
2 changed files with 11 additions and 0 deletions

View file

@ -166,6 +166,7 @@ def get_bootloader_group(manifest):
grub.InitGrubConfig,
grub.SetGrubTerminalToConsole,
grub.DisableConsoleBlanking,
grub.DisableAppArmor,
grub.SetIoScheduler,
grub.MakeLinuxFastAgain,
grub.SetGrubConsolOutputDeviceToSerial,

View file

@ -254,6 +254,16 @@ class SetIoScheduler(Task):
info.grub_config['GRUB_CMDLINE_LINUX'].append('elevator=noop')
class DisableAppArmor(Task):
description = 'Disable AppArmor'
phase = phases.system_modification
successors = [WriteGrubConfig]
@classmethod
def run(cls, info):
info.grub_config['GRUB_CMDLINE_LINUX'].append('apparmor=0')
class MakeLinuxFastAgain(Task):
description = 'make-linux-fast-again.com'
phase = phases.system_modification