summaryrefslogtreecommitdiffstats
path: root/rtemsbsd
diff options
context:
space:
mode:
authorJennifer Averett <jennifer.averett@oarcorp.com>2012-04-05 12:06:30 -0500
committerJennifer Averett <jennifer.averett@oarcorp.com>2012-04-05 12:06:30 -0500
commitb783f05c3cd3c9407e9ad2e436b3519a45a53e61 (patch)
tree8d4b0e7faf8b5c77ca0cd4f92071ee32148e3067 /rtemsbsd
parentlink01 - add undefined.txt to CLEAN_ADDITIONS (diff)
downloadrtems-libbsd-b783f05c3cd3c9407e9ad2e436b3519a45a53e61.tar.bz2
Added prison_check_af and jailed methods.
Diffstat (limited to 'rtemsbsd')
-rw-r--r--rtemsbsd/src/rtems-bsd-jail.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/rtemsbsd/src/rtems-bsd-jail.c b/rtemsbsd/src/rtems-bsd-jail.c
index 5c87a454..9883ef79 100644
--- a/rtemsbsd/src/rtems-bsd-jail.c
+++ b/rtemsbsd/src/rtems-bsd-jail.c
@@ -294,3 +294,24 @@ prison_check(struct ucred *cred1, struct ucred *cred2)
{
return 0;
}
+
+/*
+ * Check if a jail supports the given address family.
+ *
+ * Returns 0 if not jailed or the address family is supported, EAFNOSUPPORT
+ * if not.
+ */
+int
+prison_check_af(struct ucred *cred, int af)
+{
+ return 0;
+}
+
+/*
+ * Return 1 if the passed credential is in a jail, otherwise 0.
+ */
+int
+jailed(struct ucred *cred)
+{
+ return 0;
+}