Lines Matching refs:stbuf
468 static int check_perm(const char **mntp, struct stat *stbuf, int *currdir_fd, in check_perm() argument
475 res = stat(mnt, stbuf); in check_perm()
486 if (S_ISDIR(stbuf->st_mode)) { in check_perm()
500 res = lstat(mnt, stbuf); in check_perm()
507 if ((stbuf->st_mode & S_ISVTX) && stbuf->st_uid != getuid()) { in check_perm()
519 } else if (S_ISREG(stbuf->st_mode)) { in check_perm()
527 res = fstat(*mountpoint_fd, stbuf); in check_perm()
533 if (!S_ISREG(stbuf->st_mode)) { in check_perm()
598 struct stat stbuf; in mount_fuse() local
618 res = check_perm(&real_mnt, &stbuf, &currdir_fd, &mountpoint_fd); in mount_fuse()
620 res = do_mount(real_mnt, &type, stbuf.st_mode & S_IFMT, fd, opts, dev, in mount_fuse()