summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/sys/proc.h4
-rw-r--r--sys/sys/ucred.h2
2 files changed, 1 insertions, 5 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index ceef3ad4e26b..77464a041747 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -719,10 +719,6 @@ sigonstack(size_t sp)
: 0);
}
-/* Handy macro to determine if p1 can mangle p2. */
-#define PRISON_CHECK(p1, p2) \
- ((p1)->p_prison == NULL || (p1)->p_prison == (p2)->p_prison)
-
/*
* We use process IDs <= PID_MAX; PID_MAX + 1 must also fit in a pid_t,
* as it is used to represent "no process group".
diff --git a/sys/sys/ucred.h b/sys/sys/ucred.h
index 3f970def6789..448d5c3ad9a4 100644
--- a/sys/sys/ucred.h
+++ b/sys/sys/ucred.h
@@ -58,7 +58,7 @@ struct ucred {
gid_t cr_svgid; /* saved user id */
struct uidinfo *cr_uidinfo; /* per euid resource consumption */
struct uidinfo *cr_ruidinfo; /* per ruid resource consumption */
- struct prison *cr_prison; /* jail(4) */
+ struct prison *cr_prison; /* jail(2) */
#define cr_endcopy cr_label
struct label cr_label; /* MAC label */
struct mtx *cr_mtxp; /* protect refcount */