diff options
author | Jerry Jelinek <jerry.jelinek@joyent.com> | 2016-10-17 13:02:40 +0000 |
---|---|---|
committer | Jerry Jelinek <jerry.jelinek@joyent.com> | 2016-10-17 13:02:40 +0000 |
commit | 59a59b276f274cff7e883bcc3e10c162cfb3a263 (patch) | |
tree | 59b25df56be42eb7c8aae7cb02d6f1d39ec61b15 /usr/src/man/man3proc | |
parent | 8259b03da3b4ab815c3b6180f813fcfd57984470 (diff) | |
parent | d2a70789f056fc6c9ce3ab047b52126d80b0e3da (diff) | |
download | illumos-joyent-59a59b276f274cff7e883bcc3e10c162cfb3a263.tar.gz |
[illumos-gate merge]
commit d2a70789f056fc6c9ce3ab047b52126d80b0e3da
7029 want per-process exploit mitigation features (secflags)
7030 want basic address space layout randomization (ASLR)
7031 noexec_user_stack should be a security-flag
7032 want a means to forbid mappings around NULL
commit 8ab1c3f559468e655c4eb8acce993320403dd72b
7469 loader should use acpica provided by OS
commit a1964bdd47804c37e09db1a79c23937c9aeac165
7470 acpi build sometimes doesn't descend into SUBDIRS
commit abf99a006172ea5aab2246bda23f9d6d935bf1ad
7420 signalfd deadlock on pollwakeup
7421 panic in signalfd
Conflicts:
usr/src/cmd/sgs/libconv/common/corenote.c
usr/src/cmd/zonecfg/zonecfg.c
usr/src/cmd/zonecfg/zonecfg.h
usr/src/cmd/zonecfg/zonecfg_grammar.y
usr/src/cmd/zonecfg/zonecfg_lex.l
usr/src/head/libzonecfg.h
usr/src/lib/libzonecfg/common/libzonecfg.c
usr/src/man/man1m/zonecfg.1m
usr/src/man/man4/proc.4
usr/src/pkg/manifests/system-test-ostest.mf
usr/src/test/os-tests/tests/Makefile
usr/src/uts/common/exec/elf/elf.c
usr/src/uts/common/io/signalfd.c
usr/src/uts/common/os/sysent.c
usr/src/uts/common/os/zone.c
usr/src/uts/common/sys/proc.h
usr/src/uts/common/sys/zone.h
Diffstat (limited to 'usr/src/man/man3proc')
-rw-r--r-- | usr/src/man/man3proc/Makefile | 1 | ||||
-rw-r--r-- | usr/src/man/man3proc/Psecflags.3proc | 77 |
2 files changed, 78 insertions, 0 deletions
diff --git a/usr/src/man/man3proc/Makefile b/usr/src/man/man3proc/Makefile index cb9c1d7649..0984b6871f 100644 --- a/usr/src/man/man3proc/Makefile +++ b/usr/src/man/man3proc/Makefile @@ -135,6 +135,7 @@ MANFILES= \ proc_str2fltset.3proc \ proc_unctrl_psinfo.3proc \ proc_walk.3proc \ + Psecflags.3proc \ Psetbkpt.3proc \ Psetcred.3proc \ Psetfault.3proc \ diff --git a/usr/src/man/man3proc/Psecflags.3proc b/usr/src/man/man3proc/Psecflags.3proc new file mode 100644 index 0000000000..7cedb0f78e --- /dev/null +++ b/usr/src/man/man3proc/Psecflags.3proc @@ -0,0 +1,77 @@ +.\" +.\" This file and its contents are supplied under the terms of the +.\" Common Development and Distribution License ("CDDL"), version 1.0. +.\" You may only use this file in accordance with the terms of version +.\" 1.0 of the CDDL. +.\" +.\" A full copy of the text of the CDDL should have accompanied this +.\" source. A copy of the CDDL is also available via the Internet at +.\" http://www.illumos.org/license/CDDL. +.\" +.\" +.\" Copyright 2016, Richard Lowe. +.\" +.Dd June 06, 2016 +.Dt PSECFLAGS 3PROC +.Os +.Sh NAME +.Nm Psecflags , +.Nm Psecflags_free +.Nd get and free process security flags +.Sh SYNOPSIS +.Lb libproc +.In libproc.h +.Ft int +.Fo Psecflags +.Fa "struct ps_prochandle *P" +.Fa "prsecflags_t **psf" +.Fc +.Ft void +.Fo Psecflags_free +.Fa "struct ps_prochandle *P" +.Fa "prsecflags_t *psf" +.Fc +.Sh DESCRIPTION +The +.Fn Psecflags +function obtains the security flags of the process handle +.Fa P . +The security flags structure will be dynamically allocated and a pointer to it +will be placed in +.Fa psf . +It must be released with a call to +.Fn Psecflags_free . +The definition of the +.Sy prsecflags_t +structure is documented in +.Xr proc 4 . +.Pp +The +.Fn Psecflags_free +function releases the storage in +.Fa psf +that was allocated as a result of calling +.Fn Psecflags . +.Sh RETURN VALUES +Upon successful completion, the +.Fn Psecflags +function returns +.Sy 0 +and +.Fa psf +is updated with a pointer to the allocated security flags. Otherwise, +.Sy -1 +is returned and +.Fa psf +is not updated. +.Sh INTERFACE STABILITY +.Sy Uncommitted +.Sh MT-LEVEL +See +.Sy LOCKING +in +.Xr libproc 3LIB . +.Sh SEE ALSO +.Xr libproc 3LIB , +.Xr proc 4 , +.Xr security-flags 5 |