dg_getdirmode(2) DG/UX B2 Security R4.12MU02 dg_getdirmode(2)
NAME
dggetdirmode - get a process's directory mode
SYNOPSIS
#include <sys/types.h>
#include <sys/mac.h>
int dggetdirmode(pid)
pidt pid
where:
pid The process ID of the process whose directory mode is to be
fetched. If pid equals zero, the directory mode of the calling
process is returned.
DESCRIPTION
The dggetdirmode system call gets the current directory mode for the
specified process.
ACCESS CONTROL
If the pid passed is not 0, the caller must have appropriate
privilege. For systems supporting the DG/UX Capability Option,
appropriate privilege is defined as having one or more specific
capabilities enabled in the effective capability set of the calling
process. See capdefaults(5) for the default capability for this
system call. On systems without the DG/UX Capability Option,
appropriate privilege means that the process has an effective UID of
root.
RETURN VALUE
DIR_MODE_VIRTUAL The process is running in virtual directory mode.
DIR_MODE_REAL The process is running in real directory mode.
DIAGNOSTICS
Errno may be set to one of the following error codes.
EACCES The caller does not have access to the target process.
ESRCH There is no process with the requested pid.
ENOSYS This is not a trusted system or MAC is not configured on the
system.
SEE ALSO
dgmkmldir(2), dgsetdirmode(2), capdefaults(5).
Licensed material--property of copyright holder(s)