aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/errno.h
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2011-03-01 13:14:28 +0000
committerRobert Watson <rwatson@FreeBSD.org>2011-03-01 13:14:28 +0000
commit25122f5c5fc022baacef53ab88688fa374bec4eb (patch)
treeac8e862e328893a9b4876962ad7c9362e9bba20d /sys/sys/errno.h
parent633c5bdac8abf6537548d82064421f2aee441e9a (diff)
downloadsrc-25122f5c5fc022baacef53ab88688fa374bec4eb.tar.gz
src-25122f5c5fc022baacef53ab88688fa374bec4eb.zip
Add ECAPMODE, "Not permitted in capability mode", a new kernel errno
constant to indicate that a system call (or perhaps an operation requested via a system call) is not permitted for a capability mode process. Submitted by: anderson Sponsored by: Google, Inc. Obtained from: Capsicum Project MFC after: 1 week
Notes
Notes: svn path=/head/; revision=219128
Diffstat (limited to 'sys/sys/errno.h')
-rw-r--r--sys/sys/errno.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/errno.h b/sys/sys/errno.h
index 1fceb007c18a..da7ab848d5cf 100644
--- a/sys/sys/errno.h
+++ b/sys/sys/errno.h
@@ -175,10 +175,11 @@ __END_DECLS
#ifndef _POSIX_SOURCE
#define ENOTCAPABLE 93 /* Capabilities insufficient */
+#define ECAPMODE 94 /* Not permitted in capability mode */
#endif /* _POSIX_SOURCE */
#ifndef _POSIX_SOURCE
-#define ELAST 93 /* Must be equal largest errno */
+#define ELAST 94 /* Must be equal largest errno */
#endif /* _POSIX_SOURCE */
#ifdef _KERNEL