5.16.2Library linking mechanism
On SLES, a binary executable automatically causes the program
Page frames included in private regions can be shared among several processes with the Copy On Write mechanism. That is, the page frames can be shared as long as they are not modified. The page frames containing the library object code are mapped in the text segment of the linear address space of the program. Because the text segment is
The kernel carries out this mapping of page frames in a
On SLES systems, the administrator can control the list of directories that are automatically searched during program startup. The directories searched are listed in the /etc/ld.so.conf file. A normal user is not allowed write access to the /etc/ld.so.conf file. The loader also allows certain functions to be overridden from shared libraries with environment variables LD_PRELOAD and LD_LIBRARY_PATH.
The LD_PRELOAD variable lists object files with functions that override the standard set. The
LD_LIBRARY_PATH variable sets up lists of directories that are searched before loading from the standard directory list. In order to prevent a normal user from violating the security policy, these variables are ignored, and removed from the process’s environment when the program being executed is either setuid or setgid.
The system determines if a program is setuid or setgid by checking the program's credentials; if the UID and EUID differ, or the GID and the EGID differ, then the system presumes the program is setuid or setgid, or descended from one, and does not allow preloading of
When an executable is created by linking with a static library, the object code from the library is copied into the executable. Because there is no sharing of page frames with other executing processes, there are no DAC or object reuse issues with static libraries.
5.16.3System call linking mechanism
A system call is an explicit request to the kernel made via a software interrupt. The implementation of this interrupt is dependent on the hardware architecture. The following subsections briefly describe the system call interrupt setup for the different hardware architectures that are part of the TOE.
5.16.3.1System x
On System x systems, the Interrupt Descriptor Table (IDT) for the Intel processors is initialized to allow a trap gate that can be accessed by a
215