Skip to content

runcon: add missing utilities to enable tests/runcon/runcon-compute and removing PATH from runcon -c#10088

Merged
sylvestre merged 1 commit intouutils:mainfrom
ChrisDryden:fix-runcon-selinux-tests
Jan 7, 2026
Merged

runcon: add missing utilities to enable tests/runcon/runcon-compute and removing PATH from runcon -c#10088
sylvestre merged 1 commit intouutils:mainfrom
ChrisDryden:fix-runcon-selinux-tests

Conversation

@ChrisDryden
Copy link
Collaborator

@ChrisDryden ChrisDryden commented Jan 6, 2026

There were two issues here, the test uses chmod to setup the test and because it was symlinked to false it made the test fail with an error code that indicated that the setup for the test had failed.

Then the second problem is that the way exec was called would use binaries in the PATH. The test does not want to follow this behaviour so the way it gets around this is by adding a ./ to the beginning of the pathbuf for the command so that it will not search first for the binary in the PATH.

This makes the runcon-no-compute gnu test succeed. This test used to pass before when runcon was symlinked to false so we were not aware of this issue until now.

@ChrisDryden ChrisDryden force-pushed the fix-runcon-selinux-tests branch from 1bb02d9 to fa6797e Compare January 6, 2026 18:05
@github-actions
Copy link

github-actions bot commented Jan 6, 2026

GNU testsuite comparison:

Congrats! The gnu test tests/runcon/runcon-compute is no longer failing!

@ChrisDryden ChrisDryden marked this pull request as ready for review January 6, 2026 18:15
@ChrisDryden ChrisDryden force-pushed the fix-runcon-selinux-tests branch from fa6797e to 3078a6e Compare January 6, 2026 18:20
@github-actions
Copy link

github-actions bot commented Jan 6, 2026

GNU testsuite comparison:

Congrats! The gnu test tests/runcon/runcon-compute is no longer failing!

@ChrisDryden ChrisDryden changed the title runcon: fix SELinux test failures runcon: add missing utilities to enable tests/runcon/runcon-compute and removing PATH from runcon -c Jan 6, 2026
@sylvestre sylvestre merged commit abd511a into uutils:main Jan 7, 2026
131 of 132 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants