Adds the SRCsubsys record to the subsystem object class.
System Resource Controller Library (libsrc.a)
#include <sys/srcobj.h> #include <spc.h>
int addssys ( SRCSubsystem )
struct SRCsubsys *SRCSubsystem;
The addssys subroutine adds a record to the subsystem object class. You must call the defssys subroutine to initialize the SRCSubsystem buffer before your application program uses the SRCsubsys structure. The SRCsubsys structure is defined in the /usr/include/sys/srcobj.h file.
The executable running with this subroutine must be running with the group system.
SRCSubsystem | A pointer to the SRCsubsys structure. |
Upon successful completion, the addssys subroutine returns a value of 0. Otherwise, it returns a value of -1 and the odmerrno variable is set to indicate the error, or an SRC error code is returned.
The addssys subroutine fails if one or more of the following are true:
Privilege Control: This command has the Trusted Path attribute. It has the following kernel privilege:
SET_PROC_AUDIT | |
Files Accessed: |
Mode | File |
---|---|
644 | /etc/objrepos/SRCsubsys |
Auditing Events: |
If the auditing subsystem has been properly configured and is enabled, the addssys subroutine generates the following audit record (event) each time the subroutine is executed:
Event | Information |
---|---|
SRC_addssys | Lists the SRCsubsys records added. |
See "Setting Up Auditing" in AIX 5L Version 5.2 Security Guide for details about selecting and grouping audit events, and configuring audit event data collection.
/etc/objrepos/SRCsubsys | SRC Subsystem Configuration object class. |
/dev/SRC | Specifies the AF_UNIX socket file. |
/dev/.SRC-unix | Specifies the location for temporary socket files. |
/usr/include/spc.h | Defines external interfaces provided by the SRC subroutines. |
/usr/include/sys/srcobj.h | Defines object structures used by the SRC. |
The chssys (chssys Subroutine) subroutine, defssys (defssys Subroutine) subroutine, delssys (delssys Subroutine) subroutine.
The auditpr command, chssys command, mkssys command, rmssys command.
Auditing Overview (audit Subroutine) and System Resource Controller Overview in AIX 5L Version 5.2 System Management Concepts: Operating System and Devices.
Defining Your Subsystem to the SRC, System Resource Controller (SRC) Overview for Programmers in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.
List of SRC Subroutines in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.