summaryrefslogtreecommitdiffstats
path: root/sys/sys/pioctl.h
diff options
context:
space:
mode:
authorsef <sef@FreeBSD.org>1997-12-20 03:05:47 +0000
committersef <sef@FreeBSD.org>1997-12-20 03:05:47 +0000
commitf4669f67bc8626da80c2d579536287ecf2591d0f (patch)
tree23fa5336895d623870954d25c73d37c78cc2abdf /sys/sys/pioctl.h
parent6a523666f710366947056d9583488471279a3602 (diff)
downloadFreeBSD-src-f4669f67bc8626da80c2d579536287ecf2591d0f.zip
FreeBSD-src-f4669f67bc8626da80c2d579536287ecf2591d0f.tar.gz
Clear the p_stops field on change of user/group id, unless the correct
flag is set in the p_pfsflags field. This, essentially, prevents an SUID proram from hanging after being traced. (E.g., "truss /usr/bin/rlogin" would fail, but leave rlogin in a stopevent state.) Yet another case where procctl is (hopefully ;)) no longer needed in the general case. Reviewed by: bde (thanks bruce :))
Diffstat (limited to 'sys/sys/pioctl.h')
-rw-r--r--sys/sys/pioctl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/pioctl.h b/sys/sys/pioctl.h
index 0a9434f..fc4dae9 100644
--- a/sys/sys/pioctl.h
+++ b/sys/sys/pioctl.h
@@ -1,7 +1,7 @@
/*
* procfs ioctl definitions.
*
- * $Id: pioctl.h,v 1.4 1997/12/13 03:13:36 sef Exp $
+ * $Id: pioctl.h,v 1.5 1997/12/15 00:29:41 sef Exp $
*/
#ifndef _SYS_PIOCTL_H
@@ -41,5 +41,5 @@ struct procfs_status {
*/
# define PF_LINGER 0x01 /* Keep stops around after last close */
-
+# define PF_ISUGID 0x02 /* Ignore UID/GID changes */
#endif
OpenPOWER on IntegriCloud