Skip to content
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

testshell_markdown_path fails if executed as root #2858

Open
markus2330 opened this issue Aug 4, 2019 · 0 comments

Comments

@markus2330
Copy link
Contributor

commented Aug 4, 2019

In Debian Buster (maybe also elsewhere), when run as root:

        Start  91: testshell_markdown_path
120/199 Test  #91: testshell_markdown_path .....................***Failed    2.11 sec
Input: /libelektra/src/plugins/path/README.md
kdb mount test.dump user/tests path dump
kdb set user/tests/path "$HOME"
kdb setmeta user/tests/path check/path ""
kdb setmeta user/tests/path check/path/user ""
kdb setmeta user/tests/path check/path/mode "rw"
kdb set user/tests/path "/root"

ERROR - ERROR:
“”
does not match
“C03200”

kdb set user/tests/path "$HOME"
kdb rm -r user/tests
kdb umount user/tests
kdb mount test.dump user/tests path dump
kdb set user/tests/path "$HOME"
kdb setmeta user/tests/path check/path ""
kdb setmeta user/tests/path check/path/user ""
kdb setmeta user/tests/path check/path/mode "rwx"
kdb set user/tests/path/tempfile $(mktemp)
chmod +rw `kdb get user/tests/path/tempfile`
kdb set user/tests/path `kdb get user/tests/path/tempfile`
chmod +x `kdb get user/tests/path/tempfile`
kdb set user/tests/path `kdb get user/tests/path/tempfile`
rm -rf `kdb get user/tests/path/tempfile`
kdb rm -r user/tests
kdb umount user/tests
shell_recorder /tmp/tmp.Y0GbKQvCZz RESULTS: 24 test(s) done 1 error(s).

—— Protocol ————————————————————————————————————————————————————
CMD: kdb mount test.dump user/tests path dump
RET: 0

CMD: kdb set user/tests/path "$HOME"
RET: 0
STDOUT: Create a new key user/tests/path with string "/root"

CMD: kdb setmeta user/tests/path check/path ""
RET: 0

CMD: kdb setmeta user/tests/path check/path/user ""
RET: 0

CMD: kdb setmeta user/tests/path check/path/mode "rw"
RET: 0

CMD: kdb set user/tests/path "/root"
RET: 0
STDOUT: Set string to "/root"
=== FAILED Errors do not match expected pattern C03200

CMD: kdb set user/tests/path "$HOME"
RET: 0
STDOUT: Set string to "/root"

CMD: kdb rm -r user/tests
RET: 0

CMD: kdb umount user/tests
RET: 0

CMD: kdb mount test.dump user/tests path dump
RET: 0

CMD: kdb set user/tests/path "$HOME"
RET: 0
STDOUT: Create a new key user/tests/path with string "/root"

CMD: kdb setmeta user/tests/path check/path ""
RET: 0

CMD: kdb setmeta user/tests/path check/path/user ""
RET: 0

CMD: kdb setmeta user/tests/path check/path/mode "rwx"
RET: 0

CMD: kdb set user/tests/path/tempfile $(mktemp)
RET: 0
STDOUT: Create a new key user/tests/path/tempfile with string "/tmp/tmp.sTogjQVLW4"

CMD: chmod +rw `kdb get user/tests/path/tempfile`
RET: 0

CMD: kdb set user/tests/path `kdb get user/tests/path/tempfile`
RET: 0
STDERR: Sorry, module path issued the error C03200:
Validation Semantic: User 'root' does not have required permission (rwx) on /tmp/tmp.sTogjQVLW4
STDOUT: Set string to "/tmp/tmp.sTogjQVLW4"
ERROR: C03200

CMD: chmod +x `kdb get user/tests/path/tempfile`
RET: 0

CMD: kdb set user/tests/path `kdb get user/tests/path/tempfile`
RET: 0
STDOUT: Set string to "/tmp/tmp.sTogjQVLW4"

CMD: rm -rf `kdb get user/tests/path/tempfile`
RET: 0

CMD: kdb rm -r user/tests
RET: 0

CMD: kdb umount user/tests
RET: 0
————————————————————————————————————————————————————————————————

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.