Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Jun 2019 07:43:48 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 238735] New RC script to load binmisc activators
Message-ID:  <bug-238735-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 238735
           Summary: New RC script to load binmisc activators
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: msl0000023508@gmail.com

Created attachment 205249
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D205249&action=
=3Dedit
/etc/rc.d/binmisc

Hello.

I wrote a rc script that wraps binmiscctl(8) to load custom binmisc activat=
ors
on boot time automatically.
I think this script may be useful to others, if it could be included in base
system.

Usage:
Put following into 'rc.conf':

binmisc_enable=3D"YES"
binmisc_names=3D"<name> [<name>] [...]"
binmisc_<name>_magic=3D<magic-bytes>
binmisc_<name>_size=3D"<number>"
binmisc_<name>_interpreter=3D"<path>"
[binmisc_<name>_mask=3D<mask>]
[binmisc_<name>_offset=3D"<number>"]


Example:

binmisc_enable=3D"YES"
binmisc_names=3D"mono"
binmisc_mono_magic=3D'\x4d\x5a\x90\x00\x03\x00\x00\x00\x04\x00\x00\x00\xff\=
xff\x00\x00\xb8\x00\x00\x00'
binmisc_mono_size=3D"20"
binmisc_mono_interpreter=3D"/usr/local/bin/mono"

--=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-238735-227>