diff options
author | Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com> | 2010-06-14 13:34:43 -0700 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-06-22 15:15:50 -0500 |
commit | f7613bee32ebd13ff4a8d721a59cf27b1fe5d94b (patch) | |
tree | b962e63109eb5776f8d1887ee74a73043c4ca8bc /hw/file-op-9p.h | |
parent | e95ead32efc48157de12e0a257ea1c52541a6ce1 (diff) | |
download | qemu-f7613bee32ebd13ff4a8d721a59cf27b1fe5d94b.zip qemu-f7613bee32ebd13ff4a8d721a59cf27b1fe5d94b.tar.gz qemu-f7613bee32ebd13ff4a8d721a59cf27b1fe5d94b.tar.bz2 |
virtio-9p: Security model for chown
mapped model changes the owner in the extended attributes.
passthrough model does the change through lchown() as the
server don't need to follow the link and client will send the
actual filesystem object.
Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/file-op-9p.h')
-rw-r--r-- | hw/file-op-9p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/file-op-9p.h b/hw/file-op-9p.h index 1c8d89b..a53cd35 100644 --- a/hw/file-op-9p.h +++ b/hw/file-op-9p.h @@ -50,7 +50,7 @@ typedef struct FileOperations int (*lstat)(FsContext *, const char *, struct stat *); ssize_t (*readlink)(FsContext *, const char *, char *, size_t); int (*chmod)(FsContext *, const char *, FsCred *); - int (*chown)(FsContext *, const char *, uid_t, gid_t); + int (*chown)(FsContext *, const char *, FsCred *); int (*mknod)(FsContext *, const char *, mode_t, dev_t); int (*mksock)(FsContext *, const char *); int (*utime)(FsContext *, const char *, const struct utimbuf *); |