Lines Matching refs:dirfd
585 if (android::vold::SaneReadLinkAt(dirfd(dir), "1/ns/mnt", rootName, PATH_MAX) == -1) { in remountUid()
596 pidFd = openat(dirfd(dir), de->d_name, O_RDONLY | O_DIRECTORY | O_CLOEXEC); in remountUid()
1012 int dirfd = open(mountPoint, O_DIRECTORY | O_CLOEXEC); in createAsec() local
1013 if (dirfd >= 0) { in createAsec()
1014 if (fchown(dirfd, ownerUid, AID_SYSTEM) in createAsec()
1015 … || fchmod(dirfd, S_IRUSR | S_IWUSR | S_IXUSR | S_ISGID | S_IRGRP | S_IXGRP)) { in createAsec()
1018 close(dirfd); in createAsec()
1332 int dirfd = open(mountPoint, O_DIRECTORY | O_CLOEXEC); in fixupAsecPermissions() local
1333 if (dirfd < 0 || fchmod(dirfd, 0755)) { in fixupAsecPermissions()
1337 close(dirfd); in fixupAsecPermissions()
1640 int dirfd = open(dir, O_DIRECTORY | O_CLOEXEC); in isAsecInDirectory() local
1641 if (dirfd < 0) { in isAsecInDirectory()
1647 bool ret = (fstatat(dirfd, asecName, &sb, AT_SYMLINK_NOFOLLOW) == 0) in isAsecInDirectory()
1650 close(dirfd); in isAsecInDirectory()