Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109309298
D41766.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D41766.diff
View Options
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c
--- a/sys/kern/vfs_extattr.c
+++ b/sys/kern/vfs_extattr.c
@@ -43,6 +43,7 @@
#include <sys/vnode.h>
#include <sys/proc.h>
#include <sys/extattr.h>
+#include <sys/syscallsubr.h>
#include <security/audit/audit.h>
#include <security/mac/mac_framework.h>
diff --git a/sys/sys/extattr.h b/sys/sys/extattr.h
--- a/sys/sys/extattr.h
+++ b/sys/sys/extattr.h
@@ -62,33 +62,11 @@
#ifdef _KERNEL
#include <sys/types.h>
-enum uio_seg;
-struct uio;
struct thread;
struct ucred;
struct vnode;
int extattr_check_cred(struct vnode *vp, int attrnamespace,
struct ucred *cred, struct thread *td, accmode_t accmode);
-int kern_extattr_set_path(struct thread *td, const char *path,
- int attrnamespace, const char *attrname, void *data,
- size_t nbytes, int follow, enum uio_seg pathseg);
-int kern_extattr_set_fd(struct thread *td, int fd, int attrnamespace,
- const char *attrname, void *data, size_t nbytes);
-int kern_extattr_get_path(struct thread *td, const char *path,
- int attrnamespace, const char *attrname, void *data,
- size_t nbytes, int follow, enum uio_seg pathseg);
-int kern_extattr_get_fd(struct thread *td, int fd, int attrnamespace,
- const char *attrname, void *data, size_t nbytes);
-int kern_extattr_delete_path(struct thread *td, const char *path,
- int attrnamespace, const char *attrname, int follow,
- enum uio_seg pathseg);
-int kern_extattr_delete_fd(struct thread *td, int fd, int attrnamespace,
- const char *attrname);
-int kern_extattr_list_path(struct thread *td, const char *path,
- int attrnamespace, struct uio *auiop, int follow,
- enum uio_seg pathseg);
-int kern_extattr_list_fd(struct thread *td, int fd, int attrnamespace,
- struct uio *auiop);
#else
#include <sys/cdefs.h>
diff --git a/sys/sys/syscallsubr.h b/sys/sys/syscallsubr.h
--- a/sys/sys/syscallsubr.h
+++ b/sys/sys/syscallsubr.h
@@ -139,6 +139,26 @@
int kern_dup(struct thread *td, u_int mode, int flags, int old, int new);
int kern_execve(struct thread *td, struct image_args *args,
struct mac *mac_p, struct vmspace *oldvmspace);
+int kern_extattr_delete_fd(struct thread *td, int fd, int attrnamespace,
+ const char *attrname);
+int kern_extattr_delete_path(struct thread *td, const char *path,
+ int attrnamespace, const char *attrname, int follow,
+ enum uio_seg pathseg);
+int kern_extattr_get_fd(struct thread *td, int fd, int attrnamespace,
+ const char *attrname, void *data, size_t nbytes);
+int kern_extattr_get_path(struct thread *td, const char *path,
+ int attrnamespace, const char *attrname, void *data,
+ size_t nbytes, int follow, enum uio_seg pathseg);
+int kern_extattr_list_fd(struct thread *td, int fd, int attrnamespace,
+ struct uio *auiop);
+int kern_extattr_list_path(struct thread *td, const char *path,
+ int attrnamespace, struct uio *auiop, int follow,
+ enum uio_seg pathseg);
+int kern_extattr_set_fd(struct thread *td, int fd, int attrnamespace,
+ const char *attrname, void *data, size_t nbytes);
+int kern_extattr_set_path(struct thread *td, const char *path,
+ int attrnamespace, const char *attrname, void *data,
+ size_t nbytes, int follow, enum uio_seg pathseg);
int kern_fchmodat(struct thread *td, int fd, const char *path,
enum uio_seg pathseg, mode_t mode, int flag);
int kern_fchownat(struct thread *td, int fd, const char *path,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 4, 9:31 AM (21 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16451356
Default Alt Text
D41766.diff (3 KB)
Attached To
Mode
D41766: Move kern_extattr_* prototypes to <sys/syscallsubr.h>
Attached
Detach File
Event Timeline
Log In to Comment