Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F168707724
D12474.id33355.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.id33355.diff
View Options
Index: usr.sbin/bsdinstall/scripts/hardening
===================================================================
--- usr.sbin/bsdinstall/scripts/hardening
+++ 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 destructive-mode DTrace" ${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
Sun, Aug 30, 6:06 PM (1 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37615611
Default Alt Text
D12474.id33355.diff (1 KB)
Attached To
Mode
D12474: Add destructive dtrace to bsdinstall hardening menu
Attached
Detach File
Event Timeline
Log In to Comment