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)
Mon, Jun 3, 8:19 AM
Unknown Object (File)
May 17 2024, 5:47 AM
Unknown Object (File)
May 16 2024, 4:17 PM
Unknown Object (File)
May 10 2024, 1:47 AM
Unknown Object (File)
May 6 2024, 8:41 PM
Unknown Object (File)
May 2 2024, 1:45 AM
Unknown Object (File)
May 1 2024, 8:52 PM
Unknown Object (File)
May 1 2024, 3:01 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