priv_defs revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
INSERT COMMENT
*/
#
#
effective user ID.
Allows a process to open contract event endpoints belonging to
contracts created and owned by users other than the process's
privilege PRIV_FILE_OWNER
Allows a process which is not the owner of a file or directory
to perform the following operations that are normally permitted
bits.
ioctls other than AGPIOC_INFO.
privilege PRIV_IPC_DAC_READ
Allows a process to read a System V IPC
Message Queue, Semaphore Set, or Shared Memory Segment whose
permission bits do not allow the process read permission.
Allows a process to read remote shared memory whose
permission bits do not allow the process read permission.
privilege PRIV_IPC_DAC_WRITE
Allows a process to write a System V IPC
Message Queue, Semaphore Set, or Shared Memory Segment whose
permission bits do not allow the process write permission.
Allows a process to read remote shared memory whose
permission bits do not allow the process write permission.
Additional restrictions apply if the owner of the object has uid 0
and the effective uid of the current process is not 0.
privilege PRIV_IPC_OWNER
Allows a process which is not the owner of a System
V IPC Message Queue, Semaphore Set, or Shared Memory Segment to
remove, change ownership of, or change permission bits of the
Message Queue, Semaphore Set, or Shared Memory Segment.
Additional restrictions apply if the owner of the object has uid 0
and the effective uid of the current process is not 0.
privilege PRIV_NET_ICMPACCESS
Allows a process to send and receive ICMP packets.
privilege PRIV_NET_PRIVADDR
Allows a process to bind to a privileged port
number. The privilege port numbers are 1-1023 (the traditional
UNIX privileged ports) as well as those ports marked as
"udp/tcp_extra_priv_ports" with the exception of the ports
reserved for use by NFS.
privilege PRIV_NET_RAWACCESS
Allows a process to have direct access to the network layer.
unsafe privilege PRIV_PROC_AUDIT
Allows a process to generate audit records.
Allows a process to get its own audit pre-selection information.
privilege PRIV_PROC_CHROOT
Allows a process to change its root directory.
privilege PRIV_PROC_CLOCK_HIGHRES
Allows a process to use high resolution timers.
basic privilege PRIV_PROC_EXEC
Allows a process to call execve().
basic privilege PRIV_PROC_FORK
Allows a process to call fork1()/forkall()/vfork()
basic privilege PRIV_PROC_INFO
Allows a process to examine the status of processes other
than those it can send signals to. Processes which cannot
be examined cannot be seen in /proc and appear not to exist.
privilege PRIV_PROC_LOCK_MEMORY
Allows a process to lock pages in physical memory.
privilege PRIV_PROC_OWNER
Allows a process to send signals to other processes, inspect
and modify process state to other processes regardless of
ownership. When modifying another process, additional
restrictions apply: the effective privilege set of the
attaching process must be a superset of the target process'
has any uid set to 0 all privilege must be asserted unless the
effective uid is 0.
Allows a process to bind arbitrary processes to CPUs.
privilege PRIV_PROC_PRIOCNTL
Allows a process to elevate its priority above its current level.
Allows a process to change its scheduling class to any scheduling class,
including the RT class.
basic privilege PRIV_PROC_SESSION
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
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
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_NET_CONFIG