You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.
The actual problem is that this LTP test does setuid(<some-other-uid>) -- and this syscall is a mockup (doesn't do anything and returns success) in Graphene. So the LTP test thinks that it changed the user (which is not the owner of the directory), and tries to unlink(directory-of-another-user). This should fail but it doesn't, as can be seen in the log.
We need to discuss the Big Problem of setuid, chown and so on. Graphene doesn't have the concept of Users, Groups, Ownership, Permissions for files. And Graphene just does absolutely random things: some syscalls return with ENOSYS, some syscalls return with success but do nothing, some syscalls return hard-coded values (???). This is a complete mess, and we at least need a uniform policy on this.
Description of the problem
Unlinking of a writable directory fails and test fails with "TBROK: Test 0 haven't reported results!"
Steps to reproduce
Execute attached files
unlink08_setup in linux environment and unlink08_run with graphene-direct
$ ./unlink08_setup
$ graphene-direct ./unlink08_run
Expected results
Actual results
Label
bug
unlink08.zip
The text was updated successfully, but these errors were encountered: