Add debugging (for a case that shouldn't arise, but makes it more obvious

if a menu addition is made in one plce but forgotten in another).
This commit is contained in:
Devin Teske 2013-06-20 05:40:11 +00:00
parent 740b713999
commit 3b1f7d9e5d
3 changed files with 6 additions and 0 deletions

View File

@ -46,3 +46,5 @@ msg_securelevel_desc="Configure securelevels for the system"
msg_securelevels_menu_text="This menu allows you to select the securelevel your system runs with.\nWhen operating at a securelevel, certain root privileges are disabled,\nwhich may increase resistance to exploits and protect system integrity.\nIn secure mode system flags may not be overridden by the root user,\naccess to direct kernel memory is limited, and kernel modules may not\nbe changed. In highly secure mode, mounted file systems may not be\nmodified on-disk, tampering with the system clock is prohibited. In\nnetwork secure mode configuration changes to firewalling are prohibited.\n "
msg_securelevels_menu_title="Securelevel Configuration Menu"
msg_system_security_options_menu="System Security Options Menu"
msg_unknown_kern_securelevel_selection="Unknown kern.securelevel selection"
msg_unknown_security_menu_selection="Unknown security menu selection"

View File

@ -158,6 +158,8 @@ case "$mtag" in
f_sysrc_set kern_securelevel_enable "YES"
f_sysrc_set kern_securelevel "3"
;;
*)
f_die 1 "$msg_unknown_kern_securelevel_selection"
esac
exit $SUCCESS

View File

@ -165,6 +165,8 @@ while :; do
f_sysrc_set nfs_reserved_port_only "NO" ;;
"3 [ ] $msg_nfs_port") # Same; Toggle value
f_sysrc_set nfs_reserved_port_only "YES" ;;
*)
f_die 1 "$msg_unknown_security_menu_selection"
esac
done