Open anjalirai-intel opened 3 years ago
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.
So, can we close it then?
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