Page MenuHomeFreeBSD

dteske (Devin Teske)
src committer

Projects (3)

User Details

User Since
Sep 2 2014, 7:30 PM (639 w, 4 d)

Creator/Maintainer of FreeBSD bootloader-menu/bsdconfig/dpv/dwatch/figpar/sysrc
Maintainer of FreeBSD base/bsdinstall/DTrace/forth/jail/netgraph/ports/vnet
Maintainer of FreeBSD ports: (net-p2p) shx (sysutils) bsdconfig cmocka DTraceToolkit dwatch-gource dwatch-pwsnoop host-setup mping ssd_report sysrc tzdialog zfs-stats-lite
Drive-by's: (devel) p4d p4web (emulators) xen xen-kernel (net) pptpclient (ports-mgmt) pkg (sysutils) getssl syslinux vzvol

Recent Activity

Thu, Dec 3

dteske committed rG9ffe2919e6b6: bsdconfig: Resolve GEOM ids and names without scanning.
Thu, Dec 3, 6:33 PM
dteske closed D61818: bsdconfig: Resolve GEOM ids and names without scanning.
Thu, Dec 3, 6:33 PM
dteske committed rG7fc5b4ede707: sysrc: Add -u and -U.
Thu, Dec 3, 6:18 PM
dteske closed D61930: sysrc: Add -u and -U.
Thu, Dec 3, 6:18 PM
dteske committed rG394e8617f02c: bsdinstall: Fix and optimize checksum validation awk.
Thu, Dec 3, 6:05 PM
dteske closed D62050: bsdinstall: Fix and optimize checksum validation awk.
Thu, Dec 3, 6:05 PM
dteske committed rG6255527771ee: bsdinstall: Fix checksum incorrect percentages.
Thu, Dec 3, 6:00 PM
dteske closed D62049: bsdinstall: Fix checksum incorrect percentages.
Thu, Dec 3, 6:00 PM
dteske committed rGacdedb7f215b: bsdinstall: Optimize checksum percentage calculation.
Thu, Dec 3, 5:57 PM
dteske closed D62047: bsdinstall: Optimize checksum percentage calculation.
Thu, Dec 3, 5:56 PM
dteske committed rG73cee3d0efb3: bsdinstall: checksum: Add necessary quotes, remove unnecessary quotes.
Thu, Dec 3, 5:52 PM
dteske closed D62046: bsdinstall: checksum: Add necessary quotes, remove unnecessary quotes.
Thu, Dec 3, 5:52 PM
dteske closed D62045: bsdinstall: Fix checksum dist_to_statusvar(), remove evals.
Thu, Dec 3, 5:51 PM
dteske committed rG5c24fdde6edb: bsdinstall: Fix checksum dist_to_statusvar(), remove evals.
Thu, Dec 3, 5:51 PM
dteske added a reverting change for rGf6328f052518: rc.subr: remove the dependency on bsdconfig: rG7fbe13e9c853: Revert "rc.subr: remove the dependency on bsdconfig".
Thu, Dec 3, 4:55 PM
dteske committed rG7fbe13e9c853: Revert "rc.subr: remove the dependency on bsdconfig".
Thu, Dec 3, 4:55 PM
dteske added a reverting change for D50325: rc.subr: remove the dependency on bsdconfig: rG7fbe13e9c853: Revert "rc.subr: remove the dependency on bsdconfig".
Thu, Dec 3, 4:55 PM
dteske closed D62345: Revert "rc.subr: remove the dependency on bsdconfig".
Thu, Dec 3, 4:55 PM
dteske updated the summary of D62345: Revert "rc.subr: remove the dependency on bsdconfig".
Thu, Dec 3, 4:13 PM
dteske added reviewers for D62345: Revert "rc.subr: remove the dependency on bsdconfig": bapt, des.
Thu, Dec 3, 1:06 PM
dteske added a comment to D62345: Revert "rc.subr: remove the dependency on bsdconfig".
In D62345#1429052, @ivy wrote:

did you move sysrc out of the bsdconfig package? the purpose of this change was to avoid the base system requiring bsdconfig to be installed.

pkg which -p sysrc
/usr/sbin/sysrc was installed by package FreeBSD-rc-16.snap20261017211144

Thu, Dec 3, 1:02 PM
dteske added a reverting change for rGf6328f052518: rc.subr: remove the dependency on bsdconfig: D62345: Revert "rc.subr: remove the dependency on bsdconfig".
Thu, Dec 3, 8:13 AM
dteske requested review of D62345: Revert "rc.subr: remove the dependency on bsdconfig".
Thu, Dec 3, 8:13 AM
dteske added a reverting change for D50325: rc.subr: remove the dependency on bsdconfig: D62345: Revert "rc.subr: remove the dependency on bsdconfig".
Thu, Dec 3, 8:13 AM

Tue, Dec 1

dteske added a comment to D62026: enjail: Add a sandbox jail utility.

The enjail has some interesting ideas.
I have a use case where we need to run some command (cli) inside jail but jail doesn't package these CLIs for number of reasons (security is one of them). These CLIs are available on the host and it would be nice to do this:
jexec -m /mnt/oci_cli:/opt/oci_cli <jail> /opt/oci_cli/bin/lb_image_upgrade lb_v_1_0 lb_v_2_0

Tue, Dec 1, 5:23 PM · Jails

Mon, Nov 30

dteske accepted D62237: tests/truss_test: test for linux_newfstat on aarch64.

Sounds good to me. I presume you tested this on aarch64 — a platform I am unable to test against. If any more of these crop up, just tag me in further changes, and I will review them in-kind. Thanks for tackling this. Cheers.

Mon, Nov 30, 10:32 PM

Sun, Nov 29

dteske added a comment to D62026: enjail: Add a sandbox jail utility.

In D62026#1425442, @arrowd wrote:
I didn't look into details, but chances are you're inventing https://github.com/containers/bubblewrap
It'd be great to have our compatible implementation of bubblewrap instead of a completely new CLI utility.
I know at least one port that would benefit from the native bwrap.

Sun, Nov 29, 8:18 PM · Jails
dteske updated the diff for D62163: sysrc: Fix edge case in all prior versions.

Remove unnecessary rc_conf_files_redef_cleanup() (ngie)

Sun, Nov 29, 5:51 AM
dteske updated the diff for D62163: sysrc: Fix edge case in all prior versions.

Upon further testing, \ does not in-fact escape a glob character.
This radically changed things and required a whole new approach.
Unfortunately, in order to address the issue raised by the LLM I was
faced with a short-coming in sh(1) (that unlike csh/tcsh which has a
glob built-in, there was no easy way to determine when a non-
existent file should be created in the face of an unexpanded glob).

Sun, Nov 29, 5:33 AM
dteske updated the summary of D62163: sysrc: Fix edge case in all prior versions.
Sun, Nov 29, 5:28 AM
dteske updated the summary of D62163: sysrc: Fix edge case in all prior versions.
Sun, Nov 29, 5:27 AM

Sat, Nov 28

dteske requested review of D62163: sysrc: Fix edge case in all prior versions.
Sat, Nov 28, 7:45 AM
dteske committed rG2496a1c6b14e: sysrc: Restore alignment with rc(8) boot process [again].
Sat, Nov 28, 4:40 AM

Fri, Nov 27

dteske added a comment to D62158: dwatch: add a lockmgr life-cycle profile.

Inspired by D62023

Fri, Nov 27, 9:44 PM · DTrace
dteske requested review of D62158: dwatch: add a lockmgr life-cycle profile.
Fri, Nov 27, 9:43 PM · DTrace
dteske updated the diff for D61938: sysrc: Add -J.

Resolve sysrc.subr f_sysrc_delete() rebase conflict

Fri, Nov 27, 12:11 AM
dteske updated the diff for D61938: sysrc: Add -J.

rebase --onto enjail HEAD~1

Fri, Nov 27, 12:06 AM
dteske updated the diff for D62026: enjail: Add a sandbox jail utility.

rebase --onto nullfs_ephemeral HEAD~1

Fri, Nov 27, 12:01 AM · Jails
dteske updated the diff for D62024: nullfs: Add an ephemeral name for a missing file.

rebase --onto nullfs_rw_files HEAD~1

Fri, Nov 27, 12:01 AM
dteske updated the diff for D62023: nullfs: Allow a file or socket to be mounted again.

rebase --onto sysrc9.4 HEAD~1

Fri, Nov 27, 12:00 AM

Thu, Nov 26

dteske updated the diff for D61930: sysrc: Add -u and -U.

rebase origin/main

Thu, Nov 26, 11:59 PM
dteske committed rG68d4c9592565: sysrc: Restore alignment with rc(8) boot process.
Thu, Nov 26, 11:58 PM
dteske added a comment to D62023: nullfs: Allow a file or socket to be mounted again.
In D62023#1423383, @kib wrote:

This is too broad and I do not believe that it can be made workable. I considered something like that when fixing PR 275570, and decided that it cannot be made working, see 7bdf2b5d5fba.

Most importantly, allowing such recursion breaks lock upgrade and downgrade. Then, it de-facto makes lower fs locks recursive, which not all filesystems are prepared for.

Thu, Nov 26, 9:37 PM
dteske updated the diff for D61938: sysrc: Add -J.

rebase --onto enjail HEAD~1

Thu, Nov 26, 7:48 PM
dteske updated the diff for D62026: enjail: Add a sandbox jail utility.

rebase --onto nullfs_ephemeral HEAD~1

Thu, Nov 26, 7:48 PM · Jails
dteske updated the diff for D62024: nullfs: Add an ephemeral name for a missing file.

rebase --onto nullfs_rw_files HEAD~1

Thu, Nov 26, 7:47 PM
dteske updated the diff for D62023: nullfs: Allow a file or socket to be mounted again.

rebase --onto sysrc9.4 HEAD~1

Thu, Nov 26, 7:47 PM
dteske updated the diff for D61930: sysrc: Add -u and -U.

rebase origin/main

Thu, Nov 26, 7:46 PM
dteske committed rGf0692bcb9aa0: sysrc: Fix unlikely and rare edge-case.
Thu, Nov 26, 7:45 PM
dteske updated the diff for D61938: sysrc: Add -J.

rebase --onto enjail HEAD~1

Thu, Nov 26, 4:43 AM
dteske updated the diff for D62026: enjail: Add a sandbox jail utility.

rebase --onto nullfs_ephemeral HEAD~1

Thu, Nov 26, 4:42 AM · Jails
dteske updated the diff for D62024: nullfs: Add an ephemeral name for a missing file.

rebase --onto nullfs_rw_files HEAD~1

Thu, Nov 26, 4:41 AM
dteske updated the diff for D62023: nullfs: Allow a file or socket to be mounted again.

rebase --onto sysrc9.4 HEAD~1

Thu, Nov 26, 4:41 AM
dteske updated the diff for D61930: sysrc: Add -u and -U.

rebase origin/main

Thu, Nov 26, 4:39 AM
dteske committed rG65355d0f213e: sysrc: Restore the ability to pin default value.
Thu, Nov 26, 4:38 AM
dteske added a comment to D59474: jib, jng: Move to usr.sbin and add manuals.

Thanks. Just curious, are these scripts compatible with jail_parallel_start="YES"?

Thu, Nov 26, 2:01 AM · Netgraph
dteske added a reviewer for D61818: bsdconfig: Resolve GEOM ids and names without scanning: kfv.
Thu, Nov 26, 1:30 AM
dteske committed rG4012db4135ce: bsdconfig: finish wlanconfig SSID join and wpa_supplicant(5) editing.
Thu, Nov 26, 1:29 AM
dteske closed D58185: bsdconfig: finish wlanconfig SSID join and wpa_supplicant(5) editing.
Thu, Nov 26, 1:29 AM · Installer
dteske updated subscribers of D62026: enjail: Add a sandbox jail utility.

Defects:

  • [P1] -w/-W source is checked, then resolved again. enjail_check_w uses readlink, later mount_nullfs(8) runs realpath(3) on the same string in the host's namespace. The live jail's root can swap a component for a symlink in between, and a host file becomes writable in the sandbox. jail(8)'s check_path only covers the mount point side, and only by lstat. Window is real; not raced.

Yes, you're describing a TOCTOU-safety issue. I was aware of this and I have a solution, but I side-lined it for now because it means modifying the kernel more, and I wanted to keep the kernel modifications to a minimum, so leaving this vulnerability for a later fix was the trade-off.

If dir is never in use by a running jail, nobody is there to race, so this can be handled without kernel changes: refuse a dir which is, contains, or is below the path of a running jail (jls path). A tree that is also visible in another running jail through nullfs is not found this way, that would go into the man page.

Thu, Nov 26, 1:24 AM · Jails

Wed, Nov 25

dteske updated the diff for D61938: sysrc: Add -J.

rebase --onto enjail HEAD~1

Wed, Nov 25, 11:29 PM
dteske updated the diff for D62026: enjail: Add a sandbox jail utility.

rebase --onto nullfs_ephemeral HEAD~1

Wed, Nov 25, 11:21 PM · Jails
dteske updated the diff for D62024: nullfs: Add an ephemeral name for a missing file.

rebase --onto nullfs_rw_files HEAD~1

Wed, Nov 25, 11:20 PM
dteske updated the diff for D62023: nullfs: Allow a file or socket to be mounted again.

rebase --onto sysrc9.4 HEAD~1

Wed, Nov 25, 11:20 PM
dteske updated the diff for D61930: sysrc: Add -u and -U.

Pass -g and -G along with -u to chroot(8) when given -u (kfv)

Wed, Nov 25, 11:12 PM
dteske added inline comments to D61930: sysrc: Add -u and -U.
Wed, Nov 25, 10:14 PM
dteske committed rG0b1de275ebc4: sysrc: Accept values that contain a newline.
Wed, Nov 25, 9:52 PM
dteske committed rGeaf7113bef8f: sysrc: Add "unchanged" messages.
Wed, Nov 25, 9:52 PM
dteske committed rG3df9c52c4100: sysrc: Send -c output to stderr instead of stdout.
Wed, Nov 25, 9:52 PM
dteske committed rGd0a167652278: sysrc: Support special characters in file names.
Wed, Nov 25, 9:52 PM
dteske committed rG778120ce8df6: sysrc: Change -l/-L to list files one per-line.
Wed, Nov 25, 9:52 PM
dteske closed D61743: sysrc: Accept values that contain a newline.
Wed, Nov 25, 9:51 PM
dteske committed rG9b4d820f1ead: sysrc: Fix -e output.
Wed, Nov 25, 9:51 PM
dteske committed rG9ae40a268c8b: sysrc: Add more sanity checks.
Wed, Nov 25, 9:51 PM
dteske closed D61742: sysrc: Add "unchanged" messages.
Wed, Nov 25, 9:51 PM
dteske closed D61741: sysrc: Send -c output to stderr instead of stdout.
Wed, Nov 25, 9:51 PM
dteske closed D61740: sysrc: Support special characters in file names.
Wed, Nov 25, 9:51 PM
dteske committed rG04ea02cb7ac8: sysrc: Add error messages to usage responses.
Wed, Nov 25, 9:51 PM
dteske closed D61739: sysrc: Change -l/-L to list files one per-line.
Wed, Nov 25, 9:51 PM
dteske committed rG90866c753c63: sysrc: Improve die() function.
Wed, Nov 25, 9:51 PM
dteske closed D61738: sysrc: Fix -e output.
Wed, Nov 25, 9:51 PM
dteske closed D61735: sysrc: Add more sanity checks.
Wed, Nov 25, 9:51 PM
dteske closed D61722: sysrc: Add error messages to usage responses.
Wed, Nov 25, 9:51 PM
dteske committed rGa4183dea9114: sysrc: Add kfv to sysrc(8) thanks section.
Wed, Nov 25, 9:51 PM
dteske committed rG667e30d9d480: sysrc: sort -fd and comments.
Wed, Nov 25, 9:51 PM
dteske closed D61721: sysrc: Improve die() function.
Wed, Nov 25, 9:51 PM
dteske closed D61720: sysrc: Add kfv to sysrc(8) thanks section.
Wed, Nov 25, 9:51 PM
dteske closed D61719: sysrc: sort -fd and comments.
Wed, Nov 25, 9:51 PM
dteske updated the test plan for D58185: bsdconfig: finish wlanconfig SSID join and wpa_supplicant(5) editing.
Wed, Nov 25, 7:25 PM · Installer
dteske added reviewers for D58185: bsdconfig: finish wlanconfig SSID join and wpa_supplicant(5) editing: kfv, ngie.
Wed, Nov 25, 7:23 PM · Installer
dteske added a comment to D58185: bsdconfig: finish wlanconfig SSID join and wpa_supplicant(5) editing.

Tested successfully at Google HQ against their WiFi, against my 5G MiFi (T-mobile 5G hotspot device), and home ubiquiti WiFi stack

Wed, Nov 25, 7:22 PM · Installer
dteske added a comment to D58185: bsdconfig: finish wlanconfig SSID join and wpa_supplicant(5) editing.

If nobody wants to review, that's fine. As the SME, author, and maintainer of this work, I presume it's perfectly fine to commit without review. The definition of "trivial" by the handbook is in my opinion entirely subjective (to me, this is trivial, and honestly having XXX TODO items in base for 13 years is unquestionably unacceptable, and so regardless of anyone's opinion, that needs to be shored-up. The discussion came up during LDWG call today

Wed, Nov 25, 7:21 PM · Installer
dteske updated the diff for D62050: bsdinstall: Fix and optimize checksum validation awk.

wordsmith (jrtc27)
Fix faulty checksum comparison (kfv)

Wed, Nov 25, 5:54 PM
dteske retitled D62050: bsdinstall: Fix and optimize checksum validation awk from bsdinstall: Optimize checksum validation awk
Wed, Nov 25, 5:53 PM
dteske added inline comments to D62050: bsdinstall: Fix and optimize checksum validation awk.
Wed, Nov 25, 5:36 PM
dteske updated the summary of D62047: bsdinstall: Optimize checksum percentage calculation.
Wed, Nov 25, 4:41 PM
dteske added a comment to D62050: bsdinstall: Fix and optimize checksum validation awk.

If your threat model is "your root filesystem is malicious" then how does that map to "run bsdinstall from root filesystem with sh from root filesystem and all the system tools from root filesystem" not itself being also broken? This does not sound like a coherent threat model to me.

Wed, Nov 25, 4:38 PM
dteske added a comment to D62050: bsdinstall: Fix and optimize checksum validation awk.

But yes, that one line of this diff is the only one that one might be able to argue could have some tangible functional benefit beyond churn. The rest is just churn and, in some cases, golfing.

Wed, Nov 25, 4:32 PM
dteske added a comment to D62050: bsdinstall: Fix and optimize checksum validation awk.

This whole diff is pointless churn.

You're clearly mistaken as there is a material difference between -v var=$value and -v var="$value" wherein the latter is hardened against IFS word splitting in the event $value contains $IFS which would alter both the number and contents of positional arguments to awk(1). The lack of comments surrounding the processing of awk's return status also make the code harder to read. The unnecessary nested if's around the processing of awk's return status have not-only readability issues but impact performance. The necessary ignoring of awk's conditions { ... } status also have performance implications. The lack of whitespace between running awk and reaping its return status may also look to you like a simple moving of single line of whitespace but has idiomatic importance to ensure that nothing is injected between those to lines that could alter the value of $?.

It's your choice if you would like to have your objection noted in the commit message, but you're objecting against substantive changes, not just "churn" as you call it.

Where do these inputs come from? sha256sum - do we not trust it to produce a checksum? Our own tarball names - do we not trust ourselves to not shell inject our own installer?

Wed, Nov 25, 4:26 PM
dteske added a comment to D62049: bsdinstall: Fix checksum incorrect percentages.

Diff is fine. Commit message is a lot of words for something very simple. And the last paragraph is misleading to me; it sounds like you're changing the code to not render the 100%, but that's already the case, and not really relevant beyond maybe a one sentence observation about the existing code.

Wed, Nov 25, 4:20 PM