Re: FreeBSD Security Advisory FreeBSD-SA-19:10.ufs
Ed Maste <[email protected]>
| Newsgroups | gmane.os.freebsd.security.general |
|---|---|
| Message-ID | <CAPyFy2Dhf4Mj2gNk-K+svvJPEpbDwueeMDKR-86dESYOh0StcQ@mail.gmail.com> |
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" _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-security To unsubscribe, send any mail to "[email protected]"