aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/extattr.h
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2002-09-05 20:38:57 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2002-09-05 20:38:57 +0000
commitc1a925a6379b3d3bfff974a4fd1463961fe1e322 (patch)
tree61f3e8f641200c248577bf99f355a59977009af4 /sys/sys/extattr.h
parentadac8f8551a7cc39c8ec4275647dd9e7d34ae567 (diff)
downloadsrc-c1a925a6379b3d3bfff974a4fd1463961fe1e322.tar.gz
src-c1a925a6379b3d3bfff974a4fd1463961fe1e322.zip
Introduce new extattr_check_cred() function which implements the canonical
crential washing for extended attributes. Sponsored by: DARPA & NAI Labs.
Notes
Notes: svn path=/head/; revision=102987
Diffstat (limited to 'sys/sys/extattr.h')
-rw-r--r--sys/sys/extattr.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/sys/extattr.h b/sys/sys/extattr.h
index 2bc7d0a63430..217607e99546 100644
--- a/sys/sys/extattr.h
+++ b/sys/sys/extattr.h
@@ -43,6 +43,11 @@
#ifdef _KERNEL
#define EXTATTR_MAXNAMELEN NAME_MAX
+struct thread;
+struct ucred;
+struct vnode;
+int extattr_check_cred(struct vnode *vp, int attrnamespace,
+ struct ucred *cred, struct thread *td, int access);
#else
#include <sys/cdefs.h>