[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

POSIX.os/dataform, setuid and scripts



All,

Folks had reported seeing these two failures

/tset/POSIX.os/dataform/cpio/T.cpio 24 FAIL
/tset/POSIX.os/dataform/tar/T.tar 31 FAIL


200|232 24 15:36:28|TP Start
520|232 24 00010423 3 1|user ID of file incorrect for non-privileged process
520|232 24 00010423 3 2|expected user ID: 502; observed user ID: 501
220|232 24 1 15:36:28|FAIL

200|233 31 15:36:29|TP Start
520|233 31 00010501 3 1|user ID of file incorrect for non-privileged process
520|233 31 00010501 3 2|expected user ID: 502; observed user ID: 501
220|233 31 1 15:36:29|FAIL

These were due to a setuid program calling a
shell script, which was then run with the caller id, not the setuid one.

The test assume that the setuser id will be preserved.
By editing the user-defined  scripts in TESTROOT/BIN to
have  #!/bin/bash -p, these two tests will pass.

I'll check the changes back into cvs
regards
Andrew



Reply to: