Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106065030
D12474.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D12474.diff
View Options
Index: head/usr.sbin/bsdinstall/scripts/hardening
===================================================================
--- head/usr.sbin/bsdinstall/scripts/hardening
+++ head/usr.sbin/bsdinstall/scripts/hardening
@@ -30,6 +30,7 @@
echo -n > $BSDINSTALL_TMPETC/rc.conf.hardening
echo -n > $BSDINSTALL_TMPETC/sysctl.conf.hardening
+echo -n > $BSDINSTALL_TMPBOOT/loader.conf.hardening
exec 3>&1
FEATURES=$( dialog --backtitle "FreeBSD Installer" \
@@ -46,6 +47,7 @@
"7 disable_syslogd" "Disable opening Syslogd network socket (disables remote logging)" ${disable_syslogd:-off} \
"8 disable_sendmail" "Disable Sendmail service" ${disable_sendmail:-off} \
"9 secure_console" "Enable console password prompt" ${secure_console:-off} \
+ "10 disable_ddtrace" "Disallow DTrace destructive-mode" ${disable_ddtrace:-off} \
2>&1 1>&3 )
exec 3>&-
@@ -79,6 +81,9 @@
fi
if [ "$feature" = "secure_console" ]; then
sed "s/unknown off secure/unknown off insecure/g" $BSDINSTALL_CHROOT/etc/ttys > $BSDINSTALL_TMPETC/ttys.hardening
+ fi
+ if [ "$feature" = "disable_ddtrace" ]; then
+ echo 'security.bsd.allow_destructive_dtrace=0' >> $BSDINSTALL_TMPBOOT/loader.conf.hardening
fi
done
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 25, 7:26 PM (10 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15598175
Default Alt Text
D12474.diff (1 KB)
Attached To
Mode
D12474: Add destructive dtrace to bsdinstall hardening menu
Attached
Detach File
Event Timeline
Log In to Comment