Page MenuHomeFreeBSD

userboot: support environment and symlinks in test application
ClosedPublic

Authored by stevek on Apr 3 2024, 9:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 5 2024, 6:33 AM
Unknown Object (File)
Oct 2 2024, 9:42 AM
Unknown Object (File)
Oct 1 2024, 8:25 AM
Unknown Object (File)
Oct 1 2024, 1:23 AM
Unknown Object (File)
Sep 30 2024, 10:24 PM
Unknown Object (File)
Sep 30 2024, 1:10 PM
Unknown Object (File)
Sep 26 2024, 11:34 AM
Unknown Object (File)
Sep 23 2024, 7:44 PM
Subscribers

Details

Summary

Pass the environment on to the loader.
Also define USERBOOT=1 in the environment varables.

Add support for symlinks in the test application open callback.

stat the root directory when opening file
Without this, running "ls" command on the root directory encounters
issues getting the directory listing.

Obtained from: Juniper Networks, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 57327
Build 54215: arc lint + arc unit

Event Timeline

stevek requested review of this revision.Apr 3 2024, 9:31 PM
jhb added inline comments.
stand/userboot/test/test.c
112

Do you still want this case? I think in the new code open() will fail with EFAULT due to the NULL path pointer, but ENOENT does seem like it might be the better error code if there is no host base path.

525
stand/userboot/test/test.c
112

That case is in the test_open() function.

Added parenthesis based on comments.

This revision is now accepted and ready to land.Apr 30 2024, 8:03 PM