check_sys/audit/system/plugins/grub.py
2023-09-12 19:23:22 +02:00

10 lines
254 B
Python

#!/usr/bin/env python3
def grub() -> dict:
grub = dict()
grub['description'] = 'Change boot permission'
grub['filename'] = '/boot/grub/grub.cfg'
grub['value'] = 0o600
grub['resolve'] = 'chmod 600 /boot/grub/grub.cfg'
return grub