Date: Sun, 29 May 2011 10:49:48 GMT From: Ilya Putsikau <ilya@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 193890 for review Message-ID: <201105291049.p4TAnmu4077659@skunkworks.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@193890?ac=10 Change 193890 by ilya@ilya_triton2011 on 2011/05/29 10:49:42 Move fuse_access_param to fuse_internal.h Affected files ... .. //depot/projects/soc2011/ilya_fuse/fuse_module/Makefile#3 edit .. //depot/projects/soc2011/ilya_fuse/fuse_module/fuse_internal.h#1 add .. //depot/projects/soc2011/ilya_fuse/fuse_module/fuse_vnops.c#4 edit Differences ... ==== //depot/projects/soc2011/ilya_fuse/fuse_module/Makefile#3 (text+ko) ==== @@ -11,6 +11,7 @@ fuse_subr.c \ fuse.h \ fuse_session.h \ + fuse_internal.h \ fuse_io.h \ fuse_vnode.h \ vnode_if.h ==== //depot/projects/soc2011/ilya_fuse/fuse_module/fuse_vnops.c#4 (text+ko) ==== @@ -38,6 +38,7 @@ #include <vm/vm_object.h> #include "fuse.h" +#include "fuse_internal.h" #include "fuse_session.h" #include "fuse_vnode.h" #include "fuse_io.h" @@ -48,27 +49,6 @@ typedef int fuse_metrics_t(struct fuse_filehandle *fufh, struct thread *td, struct ucred *cred, void *param); -/* access related data */ - -struct fuse_access_param { - uid_t xuid; - gid_t xgid; - - unsigned facc_flags; -}; - -#define FACCESS_VA_VALID 0x01 /* flag to sign to reuse cached attributes - regardless of cache timeout */ -#define FACCESS_DO_ACCESS 0x02 /* flag showing if we are to do access check */ -#define FACCESS_STICKY 0x04 /* do sticky dir permission check */ -#define FACCESS_CHOWN 0x08 /* do permission check for owner changing */ -#define FACCESS_NOCHECKSPY 0x10 /* don't check if daemon is allowed to spy on - user */ -#define FACCESS_SETGID 0x12 /* do permission check for setting setgid flag */ - -#define FACCESS_XQUERIES FACCESS_STICKY | FACCESS_CHOWN | FACCESS_SETGID - -#define FVP_ACCESS_NOOP 0x01 /* vnode based control flag for doing access check */ /* parameter struct for fuse_standard_metrics() */ struct standard_metrics_param {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105291049.p4TAnmu4077659>