diff options
Diffstat (limited to 'hw/virtio-9p-local.c')
-rw-r--r-- | hw/virtio-9p-local.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/hw/virtio-9p-local.c b/hw/virtio-9p-local.c index 880cd0a981..3788d4e03d 100644 --- a/hw/virtio-9p-local.c +++ b/hw/virtio-9p-local.c @@ -86,10 +86,22 @@ static int local_closedir(FsContext *ctx, DIR *dir) return closedir(dir); } +static int local_open(FsContext *ctx, const char *path, int flags) +{ + return open(rpath(ctx, path), flags); +} + +static DIR *local_opendir(FsContext *ctx, const char *path) +{ + return opendir(rpath(ctx, path)); +} + FileOperations local_ops = { .lstat = local_lstat, .setuid = local_setuid, .readlink = local_readlink, .close = local_close, .closedir = local_closedir, + .open = local_open, + .opendir = local_opendir, }; |