summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_extattr.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-03-08 12:32:06 +0000
committerrwatson <rwatson@FreeBSD.org>2009-03-08 12:32:06 +0000
commitae492d67e0dd5fb22c60f8cf49aacd71cced02ec (patch)
tree5ad716ce37201626c4c55f560a037b7d2379e625 /sys/kern/vfs_extattr.c
parentb6bad806514e2e92c0c1e3b7ce10c132ef10f499 (diff)
downloadFreeBSD-src-ae492d67e0dd5fb22c60f8cf49aacd71cced02ec.zip
FreeBSD-src-ae492d67e0dd5fb22c60f8cf49aacd71cced02ec.tar.gz
Remove 'uio' argument from MAC Framework and MAC policy entry points for
extended attribute get/set; in the case of get an uninitialized user buffer was passed before the EA was retrieved, making it of relatively little use; the latter was simply unused by any policies. Obtained from: TrustedBSD Project Sponsored by: Google, Inc.
Diffstat (limited to 'sys/kern/vfs_extattr.c')
-rw-r--r--sys/kern/vfs_extattr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c
index e19a386..c8b59d9 100644
--- a/sys/kern/vfs_extattr.c
+++ b/sys/kern/vfs_extattr.c
@@ -195,7 +195,7 @@ extattr_set_vp(struct vnode *vp, int attrnamespace, const char *attrname,
#ifdef MAC
error = mac_vnode_check_setextattr(td->td_ucred, vp, attrnamespace,
- attrname, &auio);
+ attrname);
if (error)
goto done;
#endif
@@ -373,7 +373,7 @@ extattr_get_vp(struct vnode *vp, int attrnamespace, const char *attrname,
#ifdef MAC
error = mac_vnode_check_getextattr(td->td_ucred, vp, attrnamespace,
- attrname, &auio);
+ attrname);
if (error)
goto done;
#endif
OpenPOWER on IntegriCloud