-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenatTest.WithFlag / ForkedOpenatTest_WithFlagInCapabilityMode._ fail fails on FreeBSD #28
Comments
ngie-eign
added a commit
to ngie-eign/capsicum-test
that referenced
this issue
Feb 5, 2019
Per open(2), the errno that should be tested is `ENOTCAPABLE`, not `EPERM`. This addresses the first set of failures noted in google#28, which account for all failures in the openat(2) testcases, sans two in the second set of failures. Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
ngie-eign
added a commit
to ngie-eign/capsicum-test
that referenced
this issue
Feb 5, 2019
Per open(2), the errno that should be tested is `ENOTCAPABLE`, not `EPERM`. This addresses the first set of failures noted in google#28, which account for all failures in the openat(2) testcases, sans two in the second set of failures. Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
daviddrysdale
pushed a commit
that referenced
this issue
Feb 5, 2019
Per open(2), the errno that should be tested is `ENOTCAPABLE`, not `EPERM`. This addresses the first set of failures noted in #28, which account for all failures in the openat(2) testcases, sans two in the second set of failures. Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
ngie-eign
added a commit
to ngie-eign/capsicum-test
that referenced
this issue
Feb 6, 2019
The absolute symlink failure to traverse testcases were buggy. They were trying to verify that openat(2) would fail when opening a path outside a sandbox, when in reality it was testing using a directory fd that was in the sandbox (`TOPDIR`). An easy to implement change was to instead test the absolute path resolution failure from the subdirectory (`SUBDIR`). Reindent the directory hierarchy comment and reorder the elements in the comments and tests to support the change. While here, rename `SUBDIR_ABS` to `SUBDIR`, as `SUBDIR` was not an absolute path. This fixes the rest of google#28, along with 5eb909a. Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
ngie-eign
added a commit
to ngie-eign/capsicum-test
that referenced
this issue
Feb 6, 2019
The absolute symlink failure to traverse testcases were buggy. They were trying to verify that openat(2) would fail when opening a path outside a sandbox, when in reality it was testing using a directory (`TOPDIR`) fd that was in the sandbox. An easy to implement change was to instead test the absolute path resolution failure using the subdirectory (`SUBDIR`) fd. Reindent the directory hierarchy comment and reorder the elements in the comments and tests to support the change. While here, rename `SUBDIR_ABS` to `SUBDIR`, as `SUBDIR` was not an absolute path. This fixes the rest of google#28, along with 5eb909a. Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
ngie-eign
added a commit
to ngie-eign/capsicum-test
that referenced
this issue
Feb 12, 2019
The absolute symlink failure to traverse testcases were buggy. They were trying to verify that openat(2) would fail when opening a path outside a sandbox, when in reality it was testing using a directory (`TOPDIR`) fd that was in the sandbox. An easy to implement change was to instead test the absolute path resolution failure using the subdirectory (`SUBDIR`) fd. Reindent the directory hierarchy comment and reorder the elements in the comments and tests to support the change. While here, rename `SUBDIR_ABS` to `SUBDIR`, as `SUBDIR` was not an absolute path. This fixes the rest of google#28, along with 5eb909a. Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
ngie-eign
added a commit
to ngie-eign/capsicum-test
that referenced
this issue
Feb 12, 2019
The absolute symlink failure to traverse testcases were buggy. They were trying to verify that openat(2) would fail when opening a path outside a sandbox, when in reality it was testing using a directory fd that was in the sandbox (`TOPDIR`). An easy to implement change was to instead test the absolute path resolution failure from the subdirectory (`SUBDIR`). Reindent the directory hierarchy comment and reorder the elements in the comments and tests to support the change. While here, rename `SUBDIR_ABS` to `SUBDIR`, as `SUBDIR` was not an absolute path. This fixes the rest of google#28, along with 5eb909a. Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
ngie-eign
added a commit
to ngie-eign/capsicum-test
that referenced
this issue
Feb 13, 2019
The absolute symlink failure to traverse testcases were buggy. They were trying to verify that openat(2) would fail when opening a path outside a sandbox, when in reality it was testing using a directory (`TOPDIR`) fd that was in the sandbox. An easy to implement change was to instead test the absolute path resolution failure using the subdirectory (`SUBDIR`) fd. Reindent the directory hierarchy comment and reorder the elements in the comments and tests to support the change. While here, rename `SUBDIR_ABS` to `SUBDIR`, as `SUBDIR` was not an absolute path. This fixes the rest of google#28, along with 5eb909a. Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
ngie-eign
added a commit
to ngie-eign/capsicum-test
that referenced
this issue
Mar 21, 2019
The absolute symlink failure to traverse testcases were buggy. They were trying to verify that openat(2) would fail when opening a path outside a sandbox, when in reality it was testing using a directory (`TOPDIR`) fd that was in the sandbox. An easy to implement change was to instead test the absolute path resolution failure using the subdirectory (`SUBDIR`) fd. Reindent the directory hierarchy comment and reorder the elements in the comments and tests to support the change. While here, rename `SUBDIR_ABS` to `SUBDIR`, as `SUBDIR` was not an absolute path. This fixes the rest of google#28, along with 5eb909a. Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
ngie-eign
added a commit
to ngie-eign/capsicum-test
that referenced
this issue
Mar 22, 2019
The absolute symlink failure to traverse testcases were buggy. They were trying to verify that openat(2) would fail when opening a path outside a sandbox, when in reality it was testing using a directory (`TOPDIR`) fd that was in the sandbox. An easy to implement change was to instead test the absolute path resolution failure using the subdirectory (`SUBDIR`) fd. Reindent the directory hierarchy comment and reorder the elements in the comments and tests to support the change. While here, rename `SUBDIR_ABS` to `SUBDIR`, as `SUBDIR` was not an absolute path. This fixes the rest of google#28, along with 5eb909a. Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
ngie-eign
added a commit
to ngie-eign/capsicum-test
that referenced
this issue
Mar 22, 2019
The absolute symlink failure to traverse testcases were buggy. They were trying to verify that openat(2) would fail when opening a path outside a sandbox, when in reality it was testing using a directory (`TOPDIR`) fd that was in the sandbox. An easy to implement change was to instead test the absolute path resolution failure using the subdirectory (`SUBDIR`) fd. Reindent the directory hierarchy comment and reorder the elements in the comments and tests to support the change. While here, rename `SUBDIR_ABS` to `SUBDIR`, as `SUBDIR` was not an absolute path. This fixes the rest of google#28, along with 5eb909a. Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
ngie-eign
added a commit
to ngie-eign/capsicum-test
that referenced
this issue
Mar 22, 2019
The absolute symlink failure to traverse testcases were buggy on FreeBSD. They were trying to verify that openat(2) would fail when opening a path outside a sandbox, when in reality it was testing using a directory (`TOPDIR`) fd that was in the sandbox. An easy to implement change was to instead test the absolute path resolution failure using the subdirectory (`SUBDIR`) fd. Since Capsicum-Linux implements the previous behavior, conditionalize the fixes under `__FreeBSD__`, per @daviddrysdale's request. Reindent the directory hierarchy comment and reorder the elements in the comments and tests to support the change. While here, rename `SUBDIR_ABS` to `SUBDIR`, as `SUBDIR` was not an absolute path. This fixes the rest of google#28, along with 5eb909a. Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
ngie-eign
added a commit
to ngie-eign/capsicum-test
that referenced
this issue
Apr 1, 2019
The absolute symlink failure to traverse testcases were buggy on FreeBSD. They were trying to verify that openat(2) would fail when opening a path outside a sandbox, when in reality it was testing using a directory (`TOPDIR`) fd that was in the sandbox. An easy to implement change was to instead test the absolute path resolution failure using the subdirectory (`SUBDIR`) fd. Since Capsicum-Linux implements the previous behavior, conditionalize the fixes under `__FreeBSD__`, per @daviddrysdale's request. Reindent the directory hierarchy comment and reorder the elements in the comments and tests to support the change. While here, rename `SUBDIR_ABS` to `SUBDIR`, as `SUBDIR` was not an absolute path. This fixes the rest of google#28, along with 5eb909a. Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
ngie-eign
added a commit
to ngie-eign/capsicum-test
that referenced
this issue
Apr 4, 2019
The absolute symlink failure to traverse testcases were buggy. They were trying to verify that openat(2) would fail when opening a path outside a sandbox, when in reality it was testing using a directory (`TOPDIR`) fd that was in the sandbox. An easy to implement change was to instead test the absolute path resolution failure using the subdirectory (`SUBDIR`) fd. Reindent the directory hierarchy comment and reorder the elements in the comments and tests to support the change. While here, rename `SUBDIR_ABS` to `SUBDIR`, as `SUBDIR` was not an absolute path. This fixes the rest of google#28, along with 5eb909a. Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
Currently one failed test running 50a6d30 on FreeBSD Feb 6 snapshot (r357606):
|
What about if #40 were to be merged? Would that get us to a state where everything worked on both Linux and FreeBSD? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Stock FreeBSD fails
OpenatTest.WithFlag
/ForkedOpenatTest_WithFlagInCapabilityMode._
for two reasons:-1
/EPERM
instead of-1
/ENOTCAPABLE`:Item 1. is a test bug. I'm unsure if item 2 is a kernel bug or a test bug.
These issues can be triggered out of the box on a FreeBSD 13.0-CURRENT image.
The text was updated successfully, but these errors were encountered: