Re: FreeBSD Security Advisory FreeBSD-SA-19:10.ufs

Eugene Grosbein <[email protected]>
Newsgroups gmane.os.freebsd.security.general
Message-ID <[email protected]>
03.07.2019 19:29, Ed Maste wrote:

> On Wed, 3 Jul 2019 at 11:21, Doug Hardie <[email protected]> wrote:
>>
>> That is going to be a bit tricky to do on a headless server that is remote.  None of mine have consoles.  They are all accessed via SSH.  Any ideas how this situation can be handled?
> 
> Probably an rc.d script with BEFORE: root that invokes the fsck
> command - something along the lines of the following (as yet untested
> and missing error checking etc.):
> 
> #!/bin/sh
> #
> 
> # PROVIDE: fsck_ufs
> # BEFORE: root
> # REQUIRE: fsck
> # KEYWORD: nojail
> 
> . /etc/rc.subr
> 
> name="fsck_ufs"
> desc="fsck UFS filesystems for FreeBSD-SA-19:10.ufs"
> start_cmd="fsck_ufs_start"
> stop_cmd=":"
> 
> fsck_ufs_start()
> {
>         fsck -t ufs -f -p -T ufs:-z
> }
> 
> load_rc_config $name
> run_rc_command "$1"

We should resurrect "early" rc.d script. Its removal in 6.x as opposed to rewrite was a mistake
as such script is irreplaceable for multiple situations including pretty ordinary ones
like enabling kernel crashdumps to gmirror.


_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-security
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.