|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1403 Details
Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges
This page provides all information on Problem Report 1403.
Report 1403 Actions
Problem Report Number 1403 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0685 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published 1996-05-15 08:00 Product Standard Internationalised System Calls and Libraries Extended (UNIX 95) Certification Program The Open Brand certification program Test Suite VSU version 4.1.0 Test Identification base/fchown 3 Problem Summary TSD4U.00130 This test may fail on implementations which do not support setting the S_ISUID and S_ISGID mode bits via an open(O_CREAT) call. Problem Text
In the setup for both of these testcases creat is used to create a
file. An attempt is made to create these files with the S_ISUID and
S_ISGID bits set.
creat() (open() with O_CREAT) is only permitted to set file permission
bits. According to X/Open System Interfaces and Headers Issue 4,
Version 2, under open(), O_CREAT:
"... Thus, all bits in the file mode whose corresponding bit in the
file mode creation mask is set are cleared. When bits other than the
file permission bits are set, the effect is unspecified. ..."
Under sys/stat.h:
"Implementations may OR other implementation-dependent bits into
S_IRWXU, S_IRWXG, and S_IRWXO, but they will not overlap any of the
other bits defined in this document. The file permission bits are
defined to be those corresponding to the bitwise inclusive OR of
S_IRWXU, S_IRWXG, and S_IRWXO."
The meaning of other bits is implementation-dependent. S_ISUID and
S_ISGID are *NOT* permission bits according to the way the spec is
currently worded.
The test suite cannot expect an implementation to set the S_ISUID
and S_ISGID bits on an open/creat call, because the spec does not
define these bits as permission bits.
CAPIbase/ffchown #3
CAPIbase/flchown #4Test Output
TEST CASE: fchown
TEST PURPOSE #3
A call to int fchown(int fildes, uid_t
owner, gid_t group) when fildes refers to a regular
file and the call is made by a process without
appropriate privileges shall clear the S_ISUID and
S_ISGID bits of the file mode.
PREP: Create test file
PREP: Make sure bits are set
ERROR: Bits not set (st_mode=0300000777)
3 FAIL
TEST CASE: lchown
TEST PURPOSE #4
A call to int lchown(const char *path,
uid_t owner, gid_t group) when path refers to a
regular file and the call is made by a process without
appropriate privileges shall clear the S_ISUID and
S_ISGID bits of the file mode.
PREP: Create test file
PREP: Make sure bits are set
ERROR: Bits not set (st_mode=0300000777)
4 FAIL
Review Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
We agree this is a test suite deficiency in the test
suite version(s) listed.
Review Type SA Review Start Date null Completed null Status Complete Review Resolution Test Suite Deficiency (TSD) Review Conclusion
This is an agreed Test Suite Deficiency.
Problem Reporting System Options:
- View Report 1403
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority