Page MenuHomeFreeBSD

jlduran (Jose Luis Duran)
User

Projects

User Details

User Since
May 30 2017, 11:42 AM (400 w, 4 d)

Recent Activity

Today

jlduran updated the diff for D48790: nanobsd: Add a provisional populate_part function.
  • Actually remove the directory (add -r)
  • Do not overwrite previous traps (otherwise the temporary /cfg directory is not removed).
Sat, Feb 1, 5:33 PM
jlduran updated the diff for D48781: nanobsd: Add uname/gname to the spec.

Address suggestions:

  • Do not wrap strings
Sat, Feb 1, 5:28 PM
jlduran requested review of D48796: mk: Move vm stack test debug symbols.
Sat, Feb 1, 4:11 PM
jlduran added a comment to D48778: csu tests: Remove extra slash.

We could add a check for double slash to tools/pkgbase/metalog_reader.lua also

Sat, Feb 1, 3:45 PM
jlduran requested review of D48793: nanobsd: Add a NO_ROOT build option.
Sat, Feb 1, 4:26 AM
jlduran requested review of D48792: nanobsd: Add a provisional populate /data function.
Sat, Feb 1, 4:26 AM
jlduran requested review of D48791: nanobsd: Add a provisional populate /cfg function.
Sat, Feb 1, 4:25 AM
jlduran requested review of D48790: nanobsd: Add a provisional populate_part function.
Sat, Feb 1, 4:25 AM
jlduran requested review of D48789: nanobsd: Add a nano_makefs function.
Sat, Feb 1, 4:25 AM
jlduran requested review of D48788: nanobsd: Switch the / partition in fstab.
Sat, Feb 1, 4:25 AM
jlduran requested review of D48787: nanobsd: Add a NANO_TIMESTAMP variable.
Sat, Feb 1, 4:25 AM
jlduran requested review of D48786: nanobsd: Add a function to create directories.
Sat, Feb 1, 4:24 AM
jlduran requested review of D48785: nanobsd: Prefer tgt_touch() instead of touch.
Sat, Feb 1, 4:24 AM
jlduran requested review of D48784: nanobsd: Set the proper mode for /tmp.
Sat, Feb 1, 4:24 AM
jlduran requested review of D48783: nanobsd: Prefer tgt_dir2symlink() to create symlinks.
Sat, Feb 1, 4:24 AM
jlduran requested review of D48782: nanobsd: Make tgt_dir2symlink() take a mode.
Sat, Feb 1, 4:24 AM
jlduran requested review of D48781: nanobsd: Add uname/gname to the spec.
Sat, Feb 1, 4:24 AM
jlduran requested review of D48780: nanobsd: Prefer nano_umount to umount.
Sat, Feb 1, 4:23 AM
jlduran requested review of D48779: libopencsd: Remove extra slashes.
Sat, Feb 1, 4:21 AM
jlduran requested review of D48778: csu tests: Remove extra slash.
Sat, Feb 1, 4:21 AM
jlduran committed rGd9753f86679d: mtree: TESTSBASE directory always starts with a / (authored by jlduran).
mtree: TESTSBASE directory always starts with a /
Sat, Feb 1, 3:35 AM
jlduran committed rG81a8f67a5b55: mtree: TESTSBASE directory always starts with a / (authored by jlduran).
mtree: TESTSBASE directory always starts with a /
Sat, Feb 1, 3:35 AM
jlduran added inline comments to D48718: newvers: Include a src timestamp in vers.c.
Sat, Feb 1, 3:13 AM

Thu, Jan 30

jlduran updated the diff for D48587: xinstall: Validate numeric uids/gids.

Address suggestions:

Thu, Jan 30, 6:27 PM

Tue, Jan 28

jlduran added a comment to D47722: mtree: TESTSBASE directory always starts with a /.

Also, I have yet to investigate if the mtree parsing under makefs is too strict (https://cgit.freebsd.org/src/tree/usr.sbin/makefs/mtree.c#n1004). But I'll check that once I have finished polishing building NanoBSD without root privileges (https://reviews.freebsd.org/D47653#1086475, https://www.youtube.com/watch?v=5qCaOMQ3ZnQ&t=2917s).

Tue, Jan 28, 8:18 PM

Sat, Jan 25

jlduran accepted D48668: bsddialog: in textbox mode differentiate between Exit and Extra buttons.

After a simple:

grep -r -A3 "case 10" contrib/bsddialog/

I could not find any other occurrence that needs fixing.

Sat, Jan 25, 2:23 AM
jlduran added a comment to D48673: openssh: Diff between upstream 9.9p1 and crypto/openssh.

If it helps, the diffs for blocklistd are OK.
I keep a local diff for just blocklistd: (https://github.com/jlduran/openssh-portable), just in case we decide to upstream our diffs.

Sat, Jan 25, 1:55 AM

Fri, Jan 24

jlduran closed D47722: mtree: TESTSBASE directory always starts with a /.
Fri, Jan 24, 11:12 PM
jlduran committed rG01ff67f4bdf5: mtree: TESTSBASE directory always starts with a / (authored by jlduran).
mtree: TESTSBASE directory always starts with a /
Fri, Jan 24, 11:12 PM
jlduran closed D47721: mtree: Align BSD.usr.dist keywords.
Fri, Jan 24, 11:11 PM
jlduran committed rGe7142d455eeb: mtree: Align BSD.usr.dist keywords (authored by jlduran).
mtree: Align BSD.usr.dist keywords
Fri, Jan 24, 11:11 PM
jlduran updated the diff for D47641: save-entropy: Fix the guard to avoid non-digits.
  • Maintining the previous fix, but with a simpler approach
Fri, Jan 24, 3:16 PM
jlduran added a comment to D48650: routing: do not allow PINNED routes to be overridden.

Thank you for taking a look at this!
Not only it fixes D47534, it also does not break D47585 (introduce a regression).

Fri, Jan 24, 2:53 PM

Thu, Jan 23

jlduran updated the diff for D48587: xinstall: Validate numeric uids/gids.

Address fixes:

Thu, Jan 23, 4:39 PM
jlduran updated the diff for D48587: xinstall: Validate numeric uids/gids.

Address suggestions:

Thu, Jan 23, 2:59 PM

Tue, Jan 21

jlduran added a comment to D48587: xinstall: Validate numeric uids/gids.

@guest-patmaddox has a proposal for this also, in https://github.com/freebsd/freebsd-src/pull/1552
PR: 283355

Tue, Jan 21, 8:44 PM
jlduran added a comment to D48587: xinstall: Validate numeric uids/gids.

Note that we sort-of rely on install not validating -o and -g in -U/-M mode for some uses (see discussion in D48506).

Yes, I think this should be a feature and not a bug. -U and -o/-g without -M makes no sense.

Tue, Jan 21, 8:12 PM
jlduran added a comment to D48587: xinstall: Validate numeric uids/gids.

@guest-patmaddox has a proposal for this also, in https://github.com/freebsd/freebsd-src/pull/1552
PR: 283355

Tue, Jan 21, 7:51 PM
jlduran added a comment to D48587: xinstall: Validate numeric uids/gids.

I personally prefer to commit the fix and the test together, however I have been instructed in the past to do it separately. If this is still the best practice, I will split it upon commit.

Tue, Jan 21, 7:47 PM
jlduran requested review of D48587: xinstall: Validate numeric uids/gids.
Tue, Jan 21, 7:38 PM
jlduran accepted D48504: install: Fix METALOG ouptut for numeric -o and -g args.

P.S.: Once this fix is committed, I plan on submitting it to NetBSD, given it is mtree related.

I've collaborated with @christos_netbsd.org on some changes for NetBSD in the past - he can maybe just pick this up once it lands.

Tue, Jan 21, 10:36 AM

Mon, Jan 20

jlduran added a comment to D48504: install: Fix METALOG ouptut for numeric -o and -g args.

Maybe I am missing something, but I still believe it should match uid_t/gid_t:

# touch /tmp/foo
# chown 4294967295:4294967295 /tmp/foo
# chown 18446744073709551615:18446744073709551615 /tmp/foo
chown: 18446744073709551615: illegal group name
Mon, Jan 20, 6:23 PM
jlduran added a comment to D48504: install: Fix METALOG ouptut for numeric -o and -g args.

I also think this fix is valid.
Regarding this particular implementation, as parseid() will just strtoul() the name, shouldn't the id be casted to (unsigned int) instead?:

install -U -M /dev/stdout -o -1 -g wheel /usr/bin/true /tmp
./tmp/true type=file uid=18446744073709551615 gname=wheel mode=0755 size=5120

P.S.: Once this fix is committed, I plan on submitting it to NetBSD, given it is mtree related.

Mon, Jan 20, 6:04 PM

Dec 21 2024

jlduran committed rGa63708347d83: nanobsd: Remove dependency on bsdlabel (authored by jlduran).
nanobsd: Remove dependency on bsdlabel
Dec 21 2024, 5:07 PM
jlduran committed rG494120df401b: geom: Allow BSD type '!0' partitions (authored by jlduran).
geom: Allow BSD type '!0' partitions
Dec 21 2024, 5:07 PM
jlduran committed rG0520d2ea9dd3: nanobsd: Remove dependency on bsdlabel (authored by jlduran).
nanobsd: Remove dependency on bsdlabel
Dec 21 2024, 5:07 PM
jlduran committed rGa7d56527c2fd: geom: Allow BSD type '!0' partitions (authored by jlduran).
geom: Allow BSD type '!0' partitions
Dec 21 2024, 5:07 PM

Dec 17 2024

jlduran accepted D48127: git-arc: vertically align tag values.

It is fine by me, as long as it is also updated in:
https://cgit.freebsd.org/src/tree/tools/tools/git/hooks/prepare-commit-msg#n47
(and align all the trailers accordingly)

Dec 17 2024, 9:57 PM

Dec 16 2024

jlduran committed rG6b466bbd6134: nanobsd: Fix typos (authored by jlduran).
nanobsd: Fix typos
Dec 16 2024, 3:16 PM
jlduran committed rG4ace066a9085: nanobsd: Fix cust_comconsole search patterns (authored by jlduran).
nanobsd: Fix cust_comconsole search patterns
Dec 16 2024, 3:16 PM
jlduran committed rGa7e4493778b0: nanobsd: Use the real path for NANO_PACKAGE_DIR (authored by jlduran).
nanobsd: Use the real path for NANO_PACKAGE_DIR
Dec 16 2024, 3:16 PM
jlduran committed rGf5613e2d4952: nanobsd: Update fill_pkg.sh (authored by jlduran).
nanobsd: Update fill_pkg.sh
Dec 16 2024, 3:16 PM
jlduran committed rGa641dd41fcaf: nanobsd: Avoid read-only file system warnings (authored by jlduran).
nanobsd: Avoid read-only file system warnings
Dec 16 2024, 3:15 PM
jlduran committed rGfb6f7d93218f: nanobsd.8: Chase usage string updates (authored by jlduran).
nanobsd.8: Chase usage string updates
Dec 16 2024, 3:15 PM
jlduran committed rGe6850fef72de: nanobsd: Add missing options to usage() (authored by jlduran).
nanobsd: Add missing options to usage()
Dec 16 2024, 3:15 PM
jlduran committed rG16fc83629869: nanobsd: Fix parallel make (authored by jlduran).
nanobsd: Fix parallel make
Dec 16 2024, 3:15 PM
jlduran committed rG8e8ccdf02e14: nanobsd: Fix typos (authored by jlduran).
nanobsd: Fix typos
Dec 16 2024, 3:15 PM
jlduran committed rG7f50357e0d8b: nanobsd: Fix cust_comconsole search patterns (authored by jlduran).
nanobsd: Fix cust_comconsole search patterns
Dec 16 2024, 3:15 PM
jlduran committed rG7594f6ce25e2: nanobsd: Use the real path for NANO_PACKAGE_DIR (authored by jlduran).
nanobsd: Use the real path for NANO_PACKAGE_DIR
Dec 16 2024, 3:15 PM
jlduran committed rG4b26b3d2ac9b: nanobsd: Update fill_pkg.sh (authored by jlduran).
nanobsd: Update fill_pkg.sh
Dec 16 2024, 3:15 PM
jlduran committed rG6df2857eaa53: nanobsd: Avoid read-only file system warnings (authored by jlduran).
nanobsd: Avoid read-only file system warnings
Dec 16 2024, 3:15 PM
jlduran committed rG897c8ff0df39: nanobsd.8: Chase usage string updates (authored by jlduran).
nanobsd.8: Chase usage string updates
Dec 16 2024, 3:15 PM
jlduran committed rG3e93a090b5c8: nanobsd: Add missing options to usage() (authored by jlduran).
nanobsd: Add missing options to usage()
Dec 16 2024, 3:15 PM
jlduran committed rG67dd41cdb10d: nanobsd: Fix parallel make (authored by jlduran).
nanobsd: Fix parallel make
Dec 16 2024, 3:15 PM

Dec 4 2024

jlduran accepted D47893: git-arc: Fix fetching of reviewers.

Is this the same as D47889?

Dec 4 2024, 1:38 AM
jlduran committed rGea4863825ee2: mtree: Add missing entries in BSD.tests.dist (authored by jlduran).
mtree: Add missing entries in BSD.tests.dist
Dec 4 2024, 1:14 AM
jlduran committed rGae50b6ba682a: mtree: Fix BSD.tests.dist sorting (authored by jlduran).
mtree: Fix BSD.tests.dist sorting
Dec 4 2024, 1:14 AM
jlduran committed rGe3a0e41c2285: ppp.8: Fix typo cuad0 -> cuau0 (authored by jlduran).
ppp.8: Fix typo cuad0 -> cuau0
Dec 4 2024, 1:14 AM

Dec 3 2024

jlduran accepted D47889: git-arc: fix diff2reviewers() with multiple reviewers.

Thank you!

Dec 3 2024, 8:31 PM

Dec 2 2024

jlduran accepted D47869: comsat: move uid/gid setting earlier.
Dec 2 2024, 7:42 PM
jlduran added inline comments to D47869: comsat: move uid/gid setting earlier.
Dec 2 2024, 6:38 PM

Nov 30 2024

jlduran added a comment to D47585: tests: routing: Add address with same prefix present.

Do we understand why this test is failing? Is it a test bug or does this represent a real bug in the commit?

Nov 30 2024, 12:48 AM

Nov 29 2024

jlduran added a comment to D47828: comsat: Use initgroups and setgid not just setuid.

One thing I've noticed is that NetBSD moved the setting of groups/uid/gid earlier to inside notify() (https://github.com/NetBSD/src/commit/46b017828cee516770586497237aed6182b1decf). I think failing earlier is also a good move.

Nov 29 2024, 11:42 PM
jlduran accepted D47828: comsat: Use initgroups and setgid not just setuid.
Nov 29 2024, 10:21 PM
jlduran added a comment to D47722: mtree: TESTSBASE directory always starts with a /.

Also, I have yet to investigate if the mtree parsing under makefs is too strict (https://cgit.freebsd.org/src/tree/usr.sbin/makefs/mtree.c#n1004). But I'll check that once I have finished polishing building NanoBSD without root privileges (https://reviews.freebsd.org/D47653#1086475, https://www.youtube.com/watch?v=5qCaOMQ3ZnQ&t=2917s).

Nov 29 2024, 5:47 PM
jlduran added a comment to D47722: mtree: TESTSBASE directory always starts with a /.

This is fine with me, but you could instead strip a leading / from TESTBASE if present, e.g. /usr/lib/debug/${TESTBASE:S,^/,,}. This will be robust against a possible TESTBASE without a leading slash.

Nov 29 2024, 5:15 PM
jlduran updated the summary of D47835: nanobsd: Always define the partition index.
Nov 29 2024, 12:13 AM
jlduran requested review of D47835: nanobsd: Always define the partition index.
Nov 29 2024, 12:04 AM

Nov 27 2024

jlduran committed rGf08dfd819bf7: mtree: Add missing entries in BSD.tests.dist (authored by jlduran).
mtree: Add missing entries in BSD.tests.dist
Nov 27 2024, 4:14 PM
jlduran committed rG4b8e65d12fd7: mtree: Fix BSD.tests.dist sorting (authored by jlduran).
mtree: Fix BSD.tests.dist sorting
Nov 27 2024, 4:14 PM
jlduran closed D47724: mtree: Add missing entries in BSD.tests.dist.
Nov 27 2024, 4:14 PM
jlduran closed D47719: mtree: Fix BSD.tests.dist sorting.
Nov 27 2024, 4:14 PM

Nov 26 2024

jlduran updated the summary of D47723: mtree: Add missing entries in BSD.debug.dist.
Nov 26 2024, 9:08 PM
jlduran added a reviewer for D47724: mtree: Add missing entries in BSD.tests.dist: christos.
Nov 26 2024, 5:53 PM
jlduran updated the diff for D47724: mtree: Add missing entries in BSD.tests.dist.
  • Remove bogus .debug directory
Nov 26 2024, 5:52 PM

Nov 24 2024

jlduran requested review of D47725: mtree: Align with the output of mtree.
Nov 24 2024, 7:00 AM
jlduran requested review of D47724: mtree: Add missing entries in BSD.tests.dist.
Nov 24 2024, 6:37 AM
jlduran requested review of D47723: mtree: Add missing entries in BSD.debug.dist.
Nov 24 2024, 6:34 AM
jlduran requested review of D47722: mtree: TESTSBASE directory always starts with a /.
Nov 24 2024, 6:32 AM
jlduran requested review of D47721: mtree: Align BSD.usr.dist keywords.
Nov 24 2024, 6:30 AM
jlduran requested review of D47719: mtree: Fix BSD.tests.dist sorting.
Nov 24 2024, 1:58 AM

Nov 20 2024

jlduran committed rG87e87fecb139: nanobsd: Remove dependency on bsdlabel (authored by jlduran).
nanobsd: Remove dependency on bsdlabel
Nov 20 2024, 10:34 PM
jlduran committed rGaccf71534c61: geom: Allow BSD type '!0' partitions (authored by jlduran).
geom: Allow BSD type '!0' partitions
Nov 20 2024, 10:34 PM
jlduran closed D47653: nanobsd: Remove dependency on bsdlabel.
Nov 20 2024, 10:34 PM
jlduran closed D47652: geom: Allow BSD type '!0' partitions.
Nov 20 2024, 10:34 PM
jlduran added a comment to D47668: jail: Add meta and env parameters.
In D47668#1087469, @dfr wrote:

Another +1.
Testing here using podman to inject metadata into containers, something similar to the original motivation.
Regarding the restrictions for reading the sysctl from inside the jail, I have no strong opinions, and fully trust your judgement (based on current names, most likely allow.read_meta, as I would interpret allow.metadata as being able to set metadata from inside the jail).

Is this jail metadata visible inside the jail? For podman, read-only host-visible metadata can be added as annotations on the container but these are not visible inside the container's jail.

Nov 20 2024, 5:38 PM
jlduran added inline comments to D47599: MAC/do: Remove PR_METHOD_REMOVE method.
Nov 20 2024, 3:49 PM

Nov 19 2024

jlduran added a comment to D47668: jail: Add meta and env parameters.

Another +1.
Testing here using podman to inject metadata into containers, something similar to the original motivation.
Regarding the restrictions for reading the sysctl from inside the jail, I have no strong opinions, and fully trust your judgement (based on current names, most likely allow.read_meta, as I would interpret allow.metadata as being able to set metadata from inside the jail).

Nov 19 2024, 5:42 PM
jlduran added inline comments to D47599: MAC/do: Remove PR_METHOD_REMOVE method.
Nov 19 2024, 3:50 PM
jlduran added inline comments to D47608: MAC/do: Sysctl knobs/jail parameters under MAC's common nodes.
Nov 19 2024, 3:44 PM