Download X/Open System Verification Suite VSX-PCTS User
Transcript
X/Open System Verification Suite VSX-PCTS User and Installation Guide The operations that must be performed by the configured commands are described in the following sections. You need only refer to the descriptions of the targets that appear in the template that has been created by config.sh. The Makefile is provided for convenience should the installation stage need to be repeated. However, as the configured commands must be executed as a privileged user, you may, if you prefer, choose not to use the Makefile and execute the necessary commands by hand instead. 6.7.1 Privilege Check The privchk target checks that make has been executed with the necessary privileges. The default commands assume that these privileges are associated with user ID 0 and use the commands id and grep to check the current user ID value. 6.7.2 Parent Directory Group ID The dirgid target sets up the testroot directory to support the inheritance of parent directory group ID. The default commands assume that this is done by setting the S_ISGID bit on the directory. 6.7.3 Execute Install Script as User vsx0 The install target executes the VSX installation script install.sh with the user ID of user vsx0. Since the script expects the environment variable HOME to contain the vsx0 home directory, these commands must ensure that it is set appropriately. 6.7.4 Assign Privileges to chmog Program The chmogpriv target gives the program chmog the appropriate privilege to change the mode, owner and group of any file and to assign privileges to executable files. The default commands make the program setuid root. 6.7.5 Set Up File System for ENOSPC Tests The filldisc target initialises the mountable device to be used for ENOSPC tests to a known nearly-full condition. This is done by mounting the device, changing directory to the mount point, and executing the filldisc.sh script. The default commands also include a df to report the free space remaining after filldisc.sh has completed. 6.7.6 Additional Subset-specific Targets The Makefile may also contain additional targets that are specific to the subsets you have selected. Refer to the package-specific sections at the end of this chapter for details. 6.7.7 Non-configured Commands The top level Makefile may also perform some of the following operations, using commands that do not need to be configured by the user: g Creates the testroot directory if it does not already exist. g Additional subset-specific operations. hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh Action Points 1. Edit the Makefile in the vsx0 home directory. 2. Configure the implementation-specific installation commands correctly for your system. The Open Group VSXgen 1.4 Page 29