HP-UX System Administrator's Guide: Security Management HP-UX 11i v3 (B3921-90020, September 2010)

Table Of Contents
7.4 Configuring Applications with Fine-Grained Privileges
Applications that are written or modified to support fine-grained privileges are called
privilege-aware applications. You must register privilege-aware applications using the
setfilexsec command. Once registered, the security attributes associated with a
binary file are stored in a configuration file and maintain persistence across reboot.
This is normally done for you when you install and configure privilege-aware
applications using the SD-UX utilities.
Older HP-UX applications, or legacy applications, are not privilege-aware. You can
configure legacy applications that run with UID=0 to run with fine-grained privileges.
To configure legacy applications using HP-UX RBAC, see Section 8.5.4.
TIP: HP recommends you use HP-UX RBAC to configure applications that require
variable privileges to run.
To configure security attributes for a privilege-aware application, use the setfilexsec
command as follows:
# setfilexsec [options] filename
The setfilexsec command is meant to assign privileges to binaries on a local file
system. Binaries that are obtained from a network file systems (NFS) should not be
assigned privileges because if the file is modified by a different system (directly on the
NFS server), the extended attributes set by setfilexsec are not removed.
The options for setfilexsec are as follows:
-d
Deletes any security information for this file from the configuration file and the
kernel.
-D
Deletes any security information for this file from the configuration file only. Used
to clear security information for a deleted file.
-r
Add or change minimum retained privileges.
-R
Add or change maximum retained privileges.
-p
Add or change minimum permitted privileges.
-P
Add or change maximum permitted privileges.
-f
Sets the security attribute flags.
The getfilexsec command displays the extended attributes of a binary file, set with
the setfilexsec command.
# getfilexsec filename
7.4 Configuring Applications with Fine-Grained Privileges 131