-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
TestInitJoinNetworkAndUser failed on RHEL 7 #915
Comments
Could you paste errors using strace -f ? |
Here is the log of |
Better would be to recreate the test using a rub config and just getting a strace on that. Sent from my iPhone
|
Okay. Let me give it a try. |
@mrunalp , I was not sure how to do the rug config you mentioned. Here is what I did:
Run the localunittest directly by executing
The log file still has 2338 lines:
You can find the log file here: https://github.com/hmeng-19/logs/blob/master/log |
Here is the log of running the following command:
|
@hmeng-19 You'll want to run |
@cyphar , thanks for the help. I modified the
Then I ran
The log file, |
@mrunalp , @rhatdan , it seems that the
Here is the code snippet where the failure happened:
Considering the error of |
On Mon, Jun 27, 2016 at 06:50:19AM -0700, hmeng-19 wrote:
clone(2) lists a number of other situations in which the kernel |
Could be caused by SELinux or lack of capabilities although running with sudo might have fixed this. seccomp also could block this although I don't think that would be the case here. Try test with setenforce 0. |
@rhatdan , I tried to run the test as root with selinux running in permissive mode, the same error still happened:
|
Have you enabled user namespaces in the kernel? Sent from my iPhone
|
@mrunalp , I ran the
|
I recently did more exploration on this problem. It seems that, on RHEL7, once a process joins another process's user namespace, it can not To illustrate this, I constructed two test C programs - demo_userns.c and join.c. The above two test programs uses
To test it, in one terminal run this:
Then open another terminal:
**** the usage of join ****
|
@cyphar I will test it and let you know. |
config: Add a trailing period to the "cannot be mapped" rlimits line
I tested
make test
of runc after enabling user namespace on my RHEL 7 system, all the bats tests succeeded.However, there is one failure of the unit tests, and it ends up with a dead docker container.
Here is the configuration of my RHEL 7 VM, which runs via
virt-manager
.The text was updated successfully, but these errors were encountered: