Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F168125673
D23822.id68777.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D23822.id68777.diff
View Options
Index: sys/fs/procfs/procfs_ioctl.c
===================================================================
--- sys/fs/procfs/procfs_ioctl.c
+++ sys/fs/procfs/procfs_ioctl.c
@@ -69,11 +69,54 @@
#ifdef COMPAT_FREEBSD6
int ival;
#endif
+ static struct timeval lasttime;
+ static struct timeval interval = { .tv_sec = 1, .tv_usec = 0 };
KASSERT(p != NULL,
("%s() called without a process", __func__));
PROC_LOCK_ASSERT(p, MA_OWNED);
+ switch (cmd) {
+#if defined(COMPAT_FREEBSD5) || defined(COMPAT_FREEBSD4) || defined(COMPAT_43)
+ case _IOC(IOC_IN, 'p', 1, 0):
+#endif
+#ifdef COMPAT_FREEBSD6
+ case _IO('p', 1):
+#endif
+ case PIOCBIS:
+#if defined(COMPAT_FREEBSD5) || defined(COMPAT_FREEBSD4) || defined(COMPAT_43)
+ case _IOC(IOC_IN, 'p', 2, 0):
+#endif
+#ifdef COMPAT_FREEBSD6
+ case _IO('p', 2):
+#endif
+ case PIOCBIC:
+#if defined(COMPAT_FREEBSD5) || defined(COMPAT_FREEBSD4) || defined(COMPAT_43)
+ case _IOC(IOC_IN, 'p', 3, 0):
+#endif
+#ifdef COMPAT_FREEBSD6
+ case _IO('p', 3):
+#endif
+ case PIOCSFL:
+ case PIOCGFL:
+ case PIOCWAIT:
+ case PIOCSTATUS:
+#ifdef COMPAT_FREEBSD32
+ case PIOCWAIT32:
+ case PIOCSTATUS32:
+#endif
+#if defined(COMPAT_FREEBSD5) || defined(COMPAT_FREEBSD4) || defined(COMPAT_43)
+ case _IOC(IOC_IN, 'p', 5, 0):
+#endif
+#ifdef COMPAT_FREEBSD6
+ case _IO('p', 5):
+#endif
+ case PIOCCONT:
+ if (ratecheck(&lasttime, &interval) != 0)
+ gone_in(13, "procfs-based process debugging");
+ break;
+ }
+
error = 0;
switch (cmd) {
#if defined(COMPAT_FREEBSD5) || defined(COMPAT_FREEBSD4) || defined(COMPAT_43)
Index: sys/sys/pioctl.h
===================================================================
--- sys/sys/pioctl.h
+++ sys/sys/pioctl.h
@@ -41,6 +41,10 @@
#ifndef _SYS_PIOCTL_H
# define _SYS_PIOCTL_H
+#ifndef _KERNEL
+#warning "<sys/pioctl.h> is deprecated, ptrace() should be used instead"
+#endif
+
# include <sys/ioccom.h>
struct procfs_status {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Aug 27, 12:13 PM (14 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37383195
Default Alt Text
D23822.id68777.diff (1 KB)
Attached To
Mode
D23822: Mark procfs-based process debugging as deprecated for FreeBSD 13.
Attached
Detach File
Event Timeline
Log In to Comment