Bug 263111 - Explain *_prepend option in rc.conf(5) man page and in /etc/defaults/rc.conf file
Summary: Explain *_prepend option in rc.conf(5) man page and in /etc/defaults/rc.conf ...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 13.1-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: needs-patch, needs-qa
Depends on:
Blocks:
 
Reported: 2022-04-07 08:08 UTC by Slawomir Wojciech Wojtczak
Modified: 2022-12-05 03:45 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Slawomir Wojciech Wojtczak 2022-04-07 08:08:54 UTC
The *_prepend option is not explained/mentioned in the rc.conf(5) man page while some FreeBSD WiKi pages refer to it.

For example https://wiki.freebsd.org/AddressSpaceLayoutRandomization mentions its use to make ntpd(8) work with ASLR enabled:

> ntpd_prepend="/usr/bin/proccontrol -m aslr -s disable" 

Please add that information to the rc.conf(5) man page.

Currently only /etc/rc.subr has it:

# grep -r _prepend /etc
/etc/rc.subr:#  ${name}_prepend     n       Command added before ${command}.
/etc/rc.subr:       _prepend=\$${name}_prepend  _login_class=\${${name}_login_class:-daemon} \
/etc/rc.subr:                           if [ -n "$_prepend" ]; then
/etc/rc.subr:                                   _doit="$_prepend $_doit"

Its not even available in the /etc/defaults/rc.conf file - in which IMHO it should also be mentioned.

Regards.