Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Apr 2022 08:08:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 263111] Explain *_prepend option in rc.conf(5) man page and in /etc/defaults/rc.conf file
Message-ID:  <bug-263111-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263111

            Bug ID: 263111
           Summary: Explain *_prepend option in rc.conf(5) man page and in
                    /etc/defaults/rc.conf file
           Product: Base System
           Version: 13.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: vermaden@interia.pl

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 mentio=
ns
its use to make ntpd(8) work with ASLR enabled:

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

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=3D\$${name}_prepend=20
_login_class=3D\${${name}_login_class:-daemon} \
/etc/rc.subr:                           if [ -n "$_prepend" ]; then
/etc/rc.subr:                                   _doit=3D"$_prepend $_doit"

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

Regards.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-263111-227>