[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 1/6] fuse: Header file changes for FUSE_SECURITY_CTX
From: |
Vivek Goyal |
Subject: |
[PATCH v3 1/6] fuse: Header file changes for FUSE_SECURITY_CTX |
Date: |
Wed, 10 Nov 2021 18:17:23 -0500 |
These are just header file changes which should show up in qemu if
corresponding kernel changes get merged.
Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
---
include/standard-headers/linux/fuse.h | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/include/standard-headers/linux/fuse.h
b/include/standard-headers/linux/fuse.h
index cce105bfba..f412ff7f50 100644
--- a/include/standard-headers/linux/fuse.h
+++ b/include/standard-headers/linux/fuse.h
@@ -181,6 +181,10 @@
* - add FUSE_OPEN_KILL_SUIDGID
* - extend fuse_setxattr_in, add FUSE_SETXATTR_EXT
* - add FUSE_SETXATTR_ACL_KILL_SGID
+ *
+ * 7.35
+ * - add FUSE_SECURITY_CTX flag for fuse_init_out
+ * - add security context to create, mkdir, symlink, and mknod requests
*/
#ifndef _LINUX_FUSE_H
@@ -212,7 +216,7 @@
#define FUSE_KERNEL_VERSION 7
/** Minor version number of this interface */
-#define FUSE_KERNEL_MINOR_VERSION 33
+#define FUSE_KERNEL_MINOR_VERSION 35
/** The node ID of the root inode */
#define FUSE_ROOT_ID 1
@@ -329,6 +333,8 @@ struct fuse_file_lock {
* write/truncate sgid is killed only if file has group
* execute permission. (Same as Linux VFS behavior).
* FUSE_SETXATTR_EXT: Server supports extended struct fuse_setxattr_in
+ * FUSE_SECURITY_CTX: add security context to create, mkdir, symlink, and
+ * mknod
*/
#define FUSE_ASYNC_READ (1 << 0)
#define FUSE_POSIX_LOCKS (1 << 1)
@@ -360,6 +366,7 @@ struct fuse_file_lock {
#define FUSE_SUBMOUNTS (1 << 27)
#define FUSE_HANDLE_KILLPRIV_V2 (1 << 28)
#define FUSE_SETXATTR_EXT (1 << 29)
+#define FUSE_SECURITY_CTX (1 << 30)
/**
* CUSE INIT request/reply flags
@@ -967,4 +974,14 @@ struct fuse_removemapping_one {
#define FUSE_REMOVEMAPPING_MAX_ENTRY \
(PAGE_SIZE / sizeof(struct fuse_removemapping_one))
+struct fuse_secctx {
+ uint32_t size;
+ uint32_t padding;
+};
+
+struct fuse_secctx_header {
+ uint32_t size;
+ uint32_t nr_secctx;
+};
+
#endif /* _LINUX_FUSE_H */
--
2.31.1
- [PATCH v3 0/6] virtiofsd: Add support for file security context at creation, Vivek Goyal, 2021/11/10
- [PATCH v3 5/6] virtiofsd: Create new file using O_TMPFILE and set security context, Vivek Goyal, 2021/11/10
- [PATCH v3 4/6] virtiofsd: Create new file with fscreate set, Vivek Goyal, 2021/11/10
- [PATCH v3 2/6] virtiofsd, fuse_lowlevel.c: Add capability to parse security context, Vivek Goyal, 2021/11/10
- [PATCH v3 6/6] virtiofsd: Add an option to enable/disable security label, Vivek Goyal, 2021/11/10
- [PATCH v3 3/6] virtiofsd: Move core file creation code in separate function, Vivek Goyal, 2021/11/10
- [PATCH v3 1/6] fuse: Header file changes for FUSE_SECURITY_CTX,
Vivek Goyal <=