Lines Matching refs:O_ADMIN
130 int mountfd = open(mount_path, O_RDONLY | O_DIRECTORY | O_ADMIN);
159 int mountfd = open(mount_path, O_RDONLY | O_DIRECTORY | O_ADMIN);
190 // Try mounting without O_ADMIN (which is disallowed)
201 mountfd = open(mount_path, O_RDONLY | O_DIRECTORY | O_ADMIN);
218 // WITHOUT O_ADMIN
227 // Let's try unmounting the filesystem WITHOUT O_ADMIN
238 // When we unmount with an O_ADMIN handle, it should successfully detach.
263 int mountfd = open(parent_path, O_RDONLY | O_DIRECTORY | O_ADMIN);
299 // Try re-opening the root without O_ADMIN. We shouldn't be able to umount.
308 // Try opening a non-root directory without O_ADMIN. We shouldn't be able
317 // Try opening a new directory with O_ADMIN. It shouldn't open.
318 weak_subdir_fd.reset(openat(weak_root_fd.get(), "subdir", O_RDONLY | O_DIRECTORY | O_ADMIN));
322 // that has "O_ADMIN" set.
356 int mount_fd = open(mount_path, O_RDONLY | O_NOREMOTE | O_ADMIN);
366 mount_fd = open(mount_path, O_RDONLY | O_ADMIN);
439 fbl::unique_fd mountfd(open(mount_path, O_RDONLY | O_ADMIN));
457 mountfd.reset(open(mount_path, O_RDONLY | O_ADMIN));
478 mountfd.reset(open(mount_path, O_RDONLY | O_ADMIN));