priv_defs revision b26a64ae582e72d0b4c710cd8eba9c4afd4a9fdd
5133N/A/*
5133N/A * CDDL HEADER START
5133N/A *
5133N/A * The contents of this file are subject to the terms of the
5133N/A * Common Development and Distribution License (the "License").
5133N/A * You may not use this file except in compliance with the License.
5133N/A *
5133N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5133N/A * or http://www.opensolaris.org/os/licensing.
5133N/A * See the License for the specific language governing permissions
5133N/A * and limitations under the License.
5133N/A *
5133N/A * When distributing Covered Code, include this CDDL HEADER in each
5133N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5133N/A * If applicable, add the following below this CDDL HEADER, with the
5133N/A * fields enclosed by brackets "[]" replaced with your own identifying
5133N/A * information: Portions Copyright [yyyy] [name of copyright owner]
5133N/A *
5133N/A * CDDL HEADER END
5133N/A */
5133N/A/*
5133N/A * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
5133N/A * Use is subject to license terms.
5133N/A *
5133N/AINSERT COMMENT
5133N/A */
5133N/A
5133N/A#pragma ident "%Z%%M% %I% %E% SMI"
5133N/A
5133N/A#
5133N/A# Privileges can be added to this file at any location, not
5133N/A# necessarily at the end. For patches, it is probably best to
5133N/A# add the new privilege at the end; for ordinary releases privileges
5133N/A# should be ordered alphabetically.
5133N/A#
5133N/A
5133N/Aprivilege PRIV_CONTRACT_EVENT
5133N/A
5133N/A Allows a process to request critical events without limitation.
5133N/A Allows a process to request reliable delivery of all events on
5133N/A any event queue.
5133N/A
5133N/Aprivilege PRIV_CONTRACT_IDENTITY
5133N/A
5133N/A Allows a process to set the service FMRI value of a process
5133N/A contract template.
5133N/A
5133N/Aprivilege PRIV_CONTRACT_OBSERVER
5133N/A
5133N/A Allows a process to observe contract events generated by
5133N/A contracts created and owned by users other than the process's
5133N/A effective user ID.
5133N/A Allows a process to open contract event endpoints belonging to
5133N/A contracts created and owned by users other than the process's
5133N/A effective user ID.
5133N/A
5133N/Aprivilege PRIV_CPC_CPU
5133N/A
5133N/A Allow a process to access per-CPU hardware performance counters.
5133N/A
5133N/Aprivilege PRIV_DTRACE_KERNEL
5133N/A
5133N/A Allows DTrace kernel-level tracing.
5133N/A
5133N/Aprivilege PRIV_DTRACE_PROC
5133N/A
5133N/A Allows DTrace process-level tracing.
5133N/A Allows process-level tracing probes to be placed and enabled in
5133N/A processes to which the user has permissions.
5133N/A
5133N/Aprivilege PRIV_DTRACE_USER
5133N/A
5133N/A Allows DTrace user-level tracing.
5133N/A Allows use of the syscall and profile DTrace providers to
5133N/A examine processes to which the user has permissions.
5133N/A
5133N/Aprivilege PRIV_FILE_CHOWN
5133N/A
5133N/A Allows a process to change a file's owner user ID.
5133N/A Allows a process to change a file's group ID to one other than
5133N/A the process' effective group ID or one of the process'
5133N/A supplemental group IDs.
5133N/A
5133N/Aprivilege PRIV_FILE_CHOWN_SELF
5133N/A
5133N/A Allows a process to give away its files; a process with this
5133N/A privilege will run as if {_POSIX_CHOWN_RESTRICTED} is not
5133N/A in effect.
5133N/A
5133N/Aprivilege PRIV_FILE_DAC_EXECUTE
5133N/A
5133N/A Allows a process to execute an executable file whose permission
5133N/A bits or ACL do not allow the process execute permission.
5133N/A
5133N/Aprivilege PRIV_FILE_DAC_READ
5133N/A
5133N/A Allows a process to read a file or directory whose permission
5133N/A bits or ACL do not allow the process read permission.
5133N/A
5133N/Aprivilege PRIV_FILE_DAC_SEARCH
5133N/A
5133N/A Allows a process to search a directory whose permission bits or
5133N/A ACL do not allow the process search permission.
5133N/A
5133N/Aprivilege PRIV_FILE_DAC_WRITE
5133N/A
5133N/A Allows a process to write a file or directory whose permission
5133N/A bits or ACL do not allow the process write permission.
5133N/A In order to write files owned by uid 0 in the absence of an
5133N/A effective uid of 0 ALL privileges are required.
5133N/A
5133N/Aprivilege PRIV_FILE_DOWNGRADE_SL
5133N/A
5133N/A Allows a process to set the sensitivity label of a file or
5133N/A directory to a sensitivity label that does not dominate the
5133N/A existing sensitivity label.
5133N/A This privilege is interpreted only if the system is configured
5133N/A with Trusted Extensions.
5133N/A
5133N/Abasic privilege PRIV_FILE_LINK_ANY
5133N/A
5133N/A Allows a process to create hardlinks to files owned by a uid
5133N/A different from the process' effective uid.
5133N/A
5133N/Aprivilege PRIV_FILE_OWNER
5133N/A
5133N/A Allows a process which is not the owner of a file or directory
5133N/A to perform the following operations that are normally permitted
5133N/A only for the file owner: modify that file's access and
5133N/A modification times; remove or rename a file or directory whose
5133N/A parent directory has the ``save text image after execution''
5133N/A (sticky) bit set; mount a ``namefs'' upon a file; modify
5133N/A permission bits or ACL except for the set-uid and set-gid
5133N/A bits.
5133N/A
5133N/Aprivilege PRIV_FILE_SETID
5133N/A
5133N/A Allows a process to change the ownership of a file or write to
5133N/A a file without the set-user-ID and set-group-ID bits being
5133N/A cleared.
5133N/A Allows a process to set the set-group-ID bit on a file or
5133N/A directory whose group is not the process' effective group or
5133N/A one of the process' supplemental groups.
5133N/A Allows a process to set the set-user-ID bit on a file with
5133N/A different ownership in the presence of PRIV_FILE_OWNER.
5133N/A Additional restrictions apply when creating or modifying a
5133N/A set-uid 0 file.
5133N/A
5133N/Aprivilege PRIV_FILE_UPGRADE_SL
5133N/A
5133N/A Allows a process to set the sensitivity label of a file or
5133N/A directory to a sensitivity label that dominates the existing
5133N/A sensitivity label.
5133N/A This privilege is interpreted only if the system is configured
5133N/A with Trusted Extensions.
5133N/A
5133N/Aprivilege PRIV_FILE_FLAG_SET
5133N/A
5133N/A Allows a process to set immutable, nounlink or appendonly
5133N/A file attributes.
5133N/A
5133N/Aprivilege PRIV_GRAPHICS_ACCESS
5133N/A
5133N/A Allows a process to make privileged ioctls to graphics devices.
5133N/A Typically only xserver process needs to have this privilege.
5133N/A A process with this privilege is also allowed to perform
5133N/A privileged graphics device mappings.
5133N/A
5133N/Aprivilege PRIV_GRAPHICS_MAP
5133N/A
5133N/A Allows a process to perform privileged mappings through a
5133N/A graphics device.
5133N/A
5133N/Aprivilege PRIV_IPC_DAC_READ
5133N/A
5133N/A Allows a process to read a System V IPC
5133N/A Message Queue, Semaphore Set, or Shared Memory Segment whose
5133N/A permission bits do not allow the process read permission.
5133N/A Allows a process to read remote shared memory whose
5133N/A permission bits do not allow the process read permission.
5133N/A
5133N/Aprivilege PRIV_IPC_DAC_WRITE
5133N/A
5133N/A Allows a process to write a System V IPC
5133N/A Message Queue, Semaphore Set, or Shared Memory Segment whose
5133N/A permission bits do not allow the process write permission.
5133N/A Allows a process to read remote shared memory whose
5133N/A permission bits do not allow the process write permission.
5133N/A Additional restrictions apply if the owner of the object has uid 0
5133N/A and the effective uid of the current process is not 0.
5133N/A
5133N/Aprivilege PRIV_IPC_OWNER
5133N/A
5133N/A Allows a process which is not the owner of a System
5133N/A V IPC Message Queue, Semaphore Set, or Shared Memory Segment to
5133N/A remove, change ownership of, or change permission bits of the
5133N/A Message Queue, Semaphore Set, or Shared Memory Segment.
5133N/A Additional restrictions apply if the owner of the object has uid 0
5133N/A and the effective uid of the current process is not 0.
5133N/A
5133N/Aprivilege PRIV_NET_BINDMLP
5133N/A
5133N/A Allow a process to bind to a port that is configured as a
5133N/A multi-level port(MLP) for the process's zone. This privilege
5133N/A applies to both shared address and zone-specific address MLPs.
5133N/A See tnzonecfg(4) from the Trusted Extensions manual pages for
5133N/A information on configuring MLP ports.
5133N/A This privilege is interpreted only if the system is configured
5133N/A with Trusted Extensions.
5133N/A
5133N/Aprivilege PRIV_NET_ICMPACCESS
5133N/A
5133N/A Allows a process to send and receive ICMP packets.
5133N/A
5133N/Aprivilege PRIV_NET_MAC_AWARE
5133N/A
5133N/A Allows a process to set NET_MAC_AWARE process flag by using
5133N/A setpflags(2). This privilege also allows a process to set
5133N/A SO_MAC_EXEMPT socket option by using setsockopt(3SOCKET).
5133N/A The NET_MAC_AWARE process flag and the SO_MAC_EXEMPT socket
5133N/A option both allow a local process to communicate with an
5133N/A unlabeled peer if the local process' label dominates the
5133N/A peer's default label, or if the local process runs in the
5133N/A global zone.
5133N/A This privilege is interpreted only if the system is configured
5133N/A with Trusted Extensions.
5133N/A
5133N/Aprivilege PRIV_NET_PRIVADDR
5133N/A
5133N/A Allows a process to bind to a privileged port
5133N/A number. The privilege port numbers are 1-1023 (the traditional
5133N/A UNIX privileged ports) as well as those ports marked as
5133N/A "udp/tcp_extra_priv_ports" with the exception of the ports
5133N/A reserved for use by NFS.
5133N/A
5133N/Aprivilege PRIV_NET_RAWACCESS
5133N/A
5133N/A Allows a process to have direct access to the network layer.
5133N/A
5133N/Aunsafe privilege PRIV_PROC_AUDIT
5133N/A
5133N/A Allows a process to generate audit records.
5133N/A Allows a process to get its own audit pre-selection information.
5133N/A
5133N/Aprivilege PRIV_PROC_CHROOT
5133N/A
5133N/A Allows a process to change its root directory.
5133N/A
5133N/Aprivilege PRIV_PROC_CLOCK_HIGHRES
5133N/A
5133N/A Allows a process to use high resolution timers.
5133N/A
5133N/Abasic privilege PRIV_PROC_EXEC
5133N/A
5133N/A Allows a process to call execve().
5133N/A
5133N/Abasic privilege PRIV_PROC_FORK
5133N/A
5133N/A Allows a process to call fork1()/forkall()/vfork()
5133N/A
5133N/Abasic privilege PRIV_PROC_INFO
5133N/A
5133N/A Allows a process to examine the status of processes other
5133N/A than those it can send signals to. Processes which cannot
5133N/A be examined cannot be seen in /proc and appear not to exist.
5133N/A
5133N/Aprivilege PRIV_PROC_LOCK_MEMORY
5133N/A
5133N/A Allows a process to lock pages in physical memory.
5133N/A
5133N/Aprivilege PRIV_PROC_OWNER
5133N/A
5133N/A Allows a process to send signals to other processes, inspect
5133N/A and modify process state to other processes regardless of
5133N/A ownership. When modifying another process, additional
5133N/A restrictions apply: the effective privilege set of the
5133N/A attaching process must be a superset of the target process'
5133N/A effective, permitted and inheritable sets; the limit set must
5133N/A be a superset of the target's limit set; if the target process
5133N/A has any uid set to 0 all privilege must be asserted unless the
5133N/A effective uid is 0.
5133N/A Allows a process to bind arbitrary processes to CPUs.
5133N/A
5133N/Aprivilege PRIV_PROC_PRIOCNTL
5133N/A
5133N/A Allows a process to elevate its priority above its current level.
5133N/A Allows a process to change its scheduling class to any scheduling class,
5133N/A including the RT class.
5133N/A
5133N/Abasic privilege PRIV_PROC_SESSION
5133N/A
Allows a process to send signals or trace processes outside its
session.
unsafe privilege PRIV_PROC_SETID
Allows a process to set its uids at will.
Assuming uid 0 requires all privileges to be asserted.
privilege PRIV_PROC_TASKID
Allows a process to assign a new task ID to the calling process.
privilege PRIV_PROC_ZONE
Allows a process to trace or send signals to processes in
other zones.
privilege PRIV_SYS_ACCT
Allows a process to enable and disable and manage accounting through
acct(2), getacct(2), putacct(2) and wracct(2).
privilege PRIV_SYS_ADMIN
Allows a process to perform system administration tasks such
as setting node and domain name and specifying nscd and coreadm
settings.
privilege PRIV_SYS_AUDIT
Allows a process to start the (kernel) audit daemon.
Allows a process to view and set audit state (audit user ID,
audit terminal ID, audit sessions ID, audit pre-selection mask).
Allows a process to turn off and on auditing.
Allows a process to configure the audit parameters (cache and
queue sizes, event to class mappings, policy options).
privilege PRIV_SYS_CONFIG
Allows a process to perform various system configuration tasks.
Allows a process to add and remove swap devices; when adding a swap
device, a process must also have sufficient privileges to read from
and write to the swap device.
privilege PRIV_SYS_DEVICES
Allows a process to successfully call a kernel module that
calls the kernel drv_priv(9F) function to check for allowed
access.
Allows a process to open the real console device directly.
Allows a process to open devices that have been exclusively opened.
privilege PRIV_SYS_IPC_CONFIG
Allows a process to increase the size of a System V IPC Message
Queue buffer.
privilege PRIV_SYS_LINKDIR
Allows a process to unlink and link directories.
privilege PRIV_SYS_MOUNT
Allows filesystem specific administrative procedures, such as
filesystem configuration ioctls, quota calls and creation/deletion
of snapshots.
Allows a process to mount and unmount filesystems which would
otherwise be restricted (i.e., most filesystems except
namefs).
A process performing a mount operation needs to have
appropriate access to the device being mounted (read-write for
"rw" mounts, read for "ro" mounts).
A process performing any of the aforementioned
filesystem operations needs to have read/write/owner
access to the mount point.
Only regular files and directories can serve as mount points
for processes which do not have all zone privileges asserted.
Unless a process has all zone privileges, the mount(2)
system call will force the "nosuid" and "restrict" options, the
latter only for autofs mountpoints.
Regardless of privileges, a process running in a non-global zone may
only control mounts performed from within said zone.
Outside the global zone, the "nodevices" option is always forced.
privilege PRIV_SYS_IP_CONFIG
Allows a process to configure a system's network interfaces and routes.
Allows a process to configure network parameters using ndd.
Allows a process access to otherwise restricted information using ndd.
Allows a process to configure IPsec.
Allows a process to pop anchored STREAMs modules with matching zoneid.
privilege PRIV_SYS_NET_CONFIG
Allows all that PRIV_SYS_IP_CONFIG allows.
Allows a process to push the rpcmod STREAMs module.
Allows a process to INSERT/REMOVE STREAMs modules on locations other
than the top of the module stack.
privilege PRIV_SYS_NFS
Allows a process to perform Sun private NFS specific system calls.
Allows a process to bind to ports reserved by NFS: ports 2049 (nfs)
and port 4045 (lockd).
privilege PRIV_SYS_RES_CONFIG
Allows a process to create and delete processor sets, assign
CPUs to processor sets and override the PSET_NOESCAPE property.
Allows a process to change the operational status of CPUs in
the system using p_online(2).
Allows a process to configure resource pools and to bind
processes to pools
unsafe privilege PRIV_SYS_RESOURCE
Allows a process to modify the resource limits specified
by setrlimit(2) and setrctl(2) without restriction.
Allows a process to exceed the per-user maximum number of
processes.
Allows a process to extend or create files on a filesystem that
has less than minfree space in reserve.
privilege PRIV_SYS_SMB
Allows a process to access the Sun private SMB kernel module.
Allows a process to bind to ports reserved by NetBIOS and SMB:
ports 137 (NBNS), 138 (NetBIOS Datagram Service), 139 (NetBIOS
Session Service and SMB-over-NBT) and 445 (SMB-over-TCP).
privilege PRIV_SYS_SUSER_COMPAT
Allows a process to successfully call a third party loadable module
that calls the kernel suser() function to check for allowed access.
This privilege exists only for third party loadable module
compatibility and is not used by Solaris proper.
privilege PRIV_SYS_TIME
Allows a process to manipulate system time using any of the
appropriate system calls: stime, adjtime, ntp_adjtime and
the IA specific RTC calls.
privilege PRIV_SYS_TRANS_LABEL
Allows a process to translate labels that are not dominated
by the process' sensitivity label to and from an external
string form.
This privilege is interpreted only if the system is configured
with Trusted Extensions.
privilege PRIV_VIRT_MANAGE
Allows a process to manage virtualized environments such as
xVM(5).
privilege PRIV_WIN_COLORMAP
Allows a process to override colormap restrictions.
Allows a process to install or remove colormaps.
Allows a process to retrieve colormap cell entries allocated
by other processes.
This privilege is interpreted only if the system is configured
with Trusted Extensions.
privilege PRIV_WIN_CONFIG
Allows a process to configure or destroy resources that are
permanently retained by the X server.
Allows a process to use SetScreenSaver to set the screen
saver timeout value.
Allows a process to use ChangeHosts to modify the display
access control list.
Allows a process to use GrabServer.
Allows a process to use the SetCloseDownMode request which
may retain window, pixmap, colormap, property, cursor, font,
or graphic context resources.
This privilege is interpreted only if the system is configured
with Trusted Extensions.
privilege PRIV_WIN_DAC_READ
Allows a process to read from a window resource that it does
not own (has a different user ID).
This privilege is interpreted only if the system is configured
with Trusted Extensions.
privilege PRIV_WIN_DAC_WRITE
Allows a process to write to or create a window resource that
it does not own (has a different user ID). A newly created
window property is created with the window's user ID.
This privilege is interpreted only if the system is configured
with Trusted Extensions.
privilege PRIV_WIN_DEVICES
Allows a process to perform operations on window input devices.
Allows a process to get and set keyboard and pointer controls.
Allows a process to modify pointer button and key mappings.
This privilege is interpreted only if the system is configured
with Trusted Extensions.
privilege PRIV_WIN_DGA
Allows a process to use the direct graphics access (DGA) X protocol
extensions. Direct process access to the frame buffer is still
required. Thus the process must have MAC and DAC privileges that
allow access to the frame buffer, or the frame buffer must be
allocated to the process.
This privilege is interpreted only if the system is configured
with Trusted Extensions.
privilege PRIV_WIN_DOWNGRADE_SL
Allows a process to set the sensitivity label of a window resource
to a sensitivity label that does not dominate the existing
sensitivity label.
This privilege is interpreted only if the system is configured
with Trusted Extensions.
privilege PRIV_WIN_FONTPATH
Allows a process to set a font path.
This privilege is interpreted only if the system is configured
with Trusted Extensions.
privilege PRIV_WIN_MAC_READ
Allows a process to read from a window resource whose sensitivity
label is not equal to the process sensitivity label.
This privilege is interpreted only if the system is configured
with Trusted Extensions.
privilege PRIV_WIN_MAC_WRITE
Allows a process to create a window resource whose sensitivity
label is not equal to the process sensitivity label.
A newly created window property is created with the window's
sensitivity label.
This privilege is interpreted only if the system is configured
with Trusted Extensions.
privilege PRIV_WIN_SELECTION
Allows a process to request inter-window data moves without the
intervention of the selection confirmer.
This privilege is interpreted only if the system is configured
with Trusted Extensions.
privilege PRIV_WIN_UPGRADE_SL
Allows a process to set the sensitivity label of a window
resource to a sensitivity label that dominates the existing
sensitivity label.
This privilege is interpreted only if the system is configured
with Trusted Extensions.
privilege PRIV_XVM_CONTROL
Allows a process access to the xVM(5) control devices for
managing guest domains and the hypervisor. This privilege is
used only if booted into xVM on x86 platforms.
set PRIV_EFFECTIVE
Set of privileges currently in effect.
set PRIV_INHERITABLE
Set of privileges that comes into effect on exec.
set PRIV_PERMITTED
Set of privileges that can be put into the effective set without
restriction.
set PRIV_LIMIT
Set of privileges that determines the absolute upper bound of
privileges this process and its off-spring can obtain.