Fix #107: Meaningful error for grsecurity/chroot_deny_chmod

This commit is contained in:
Oliver Smith 2017-07-06 21:16:00 +02:00
parent 10fd0f312d
commit 05e79c1d5c
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
2 changed files with 44 additions and 0 deletions

View file

@ -34,6 +34,7 @@ import pmb.chroot.initfs
import pmb.chroot.other
import pmb.flasher
import pmb.helpers.logging
import pmb.helpers.other
import pmb.helpers.run
import pmb.parse
import pmb.install
@ -46,6 +47,9 @@ def main():
# Wrap everything to display nice error messages
try:
# Sanity check
pmb.helpers.other.check_grsec()
# Initialize or require config
if args.action == "init":
return pmb.config.init(args)