HPlogo HP-UX Reference > I

iscomsec(2)

HP-UX 11i Version 2: December 2007 Update
» 

Technical documentation

 » Table of Contents

 » Index

NAME

iscomsec() — check if system has been converted to a trusted system

SYNOPSIS

#include <prot.h>

int iscomsec();

DESCRIPTION

iscomsec returns a zero (0) if the system is not a trusted system. If the system has been converted to a trusted system, iscomsec returns a one (1).

Notes

iscomsec determines if the system is a trusted system or not by checking the file, /tcb/files/auth/system/default. If the file exists, then the system is a trusted system. If the file does not exist, then the system is not a trusted system.

On a trusted system, /tcb/files/auth/system/default should never be deleted.

Programs using this routine must be compiled with -lsec.

APPLICATION USAGE

In a multithreaded application, iscomsec() is thread-safe. It is not async-cancel-safe.

AUTHOR

iscomsec was developed by HP.

FILES

/tcb/files/auth/system/default

Trusted system default file