Lines Matching refs:mode

76         MountMode mode:5;  member
280 return p->read_only || IN_SET(p->mode, READONLY, INACCESSIBLE, PRIVATE_TMP_READONLY); in mount_entry_read_only()
286 return p->noexec || IN_SET(p->mode, NOEXEC, INACCESSIBLE, SYSFS, PROCFS); in mount_entry_noexec()
292 return p->exec || p->mode == EXEC; in mount_entry_exec()
317 static int append_access_mounts(MountEntry **p, char **strv, MountMode mode, bool forcibly_require_… in append_access_mounts() argument
342 .mode = mode, in append_access_mounts()
361 .mode = EMPTY_DIR, in append_empty_dir_mounts()
380 .mode = b->recursive ? BIND_MOUNT_RECURSIVE : BIND_MOUNT, in append_bind_mounts()
399 .mode = MOUNT_IMAGES, in append_mount_images()
478 .mode = EXTENSION_IMAGES, in append_extensions()
532 .mode = EXTENSION_DIRECTORIES, in append_extensions()
551 .mode = OVERLAY_MOUNT, in append_extensions()
589 .mode = TMPFS, in append_tmpfs_mounts()
608 .mode = mounts[i].mode, in append_static_mounts()
664 d = -CMP(a->mode == EXTENSION_IMAGES, b->mode == EXTENSION_IMAGES); in mount_path_compare()
667 d = -CMP(a->mode == EXTENSION_DIRECTORIES, b->mode == EXTENSION_DIRECTORIES); in mount_path_compare()
677 return CMP((int) a->mode, (int) b->mode); in mount_path_compare()
716 … log_debug("%s (%s) is duplicate.", mount_entry_path(f), mount_mode_to_string(f->mode)); in drop_duplicates()
753 clear = f->mode == INACCESSIBLE ? mount_entry_path(f) : NULL; in drop_inaccessible()
774 if (IN_SET(f->mode, READONLY, READWRITE, READWRITE_IMPLICIT)) { in drop_nop()
785 if (found && found->mode == f->mode) { in drop_nop()
787 mount_entry_path(f), mount_mode_to_string(f->mode), in drop_nop()
788 … mount_entry_path(found), mount_mode_to_string(found->mode)); in drop_nop()
816 …if (!IN_SET(f->mode, EXTENSION_IMAGES, EXTENSION_DIRECTORIES) && !path_startswith(mount_entry_path… in drop_outside_root()
1206 if (m->mode == EXTENSION_IMAGES) { in mount_image()
1305 switch (m->mode) { in apply_one_mount()
1510 if (mount_entry_read_only(m) || m->mode == PRIVATE_DEV) { in make_read_only()
1529 !IN_SET(m->mode, EMPTY_DIR, TMPFS); in make_read_only()
1566 submounts = !IN_SET(m->mode, EMPTY_DIR, TMPFS); in make_noexec()
1588 submounts = !IN_SET(m->mode, EMPTY_DIR, TMPFS); in make_nosuid()
1769 … r = follow_symlink(!IN_SET(m->mode, EXTENSION_IMAGES, EXTENSION_DIRECTORIES) ? root : NULL, m); in apply_mounts()
1828 if (IN_SET((mounts+j)->mode, EXEC, NOEXEC)) in apply_mounts()
2181 .mode = ro ? PRIVATE_TMP_READONLY : PRIVATE_TMP, in setup_namespace()
2191 .mode = ro ? PRIVATE_TMP_READONLY : PRIVATE_TMP, in setup_namespace()
2207 .mode = PRIVATE_DEV, in setup_namespace()
2259 .mode = READONLY, in setup_namespace()
2285 .mode = READONLY, in setup_namespace()
2290 .mode = READONLY, in setup_namespace()
2298 .mode = MQUEUEFS, in setup_namespace()
2308 .mode = TMPFS, in setup_namespace()
2316 .mode = BIND_MOUNT, in setup_namespace()
2326 .mode = INACCESSIBLE, in setup_namespace()
2342 .mode = BIND_MOUNT_RECURSIVE, in setup_namespace()
2353 .mode = BIND_MOUNT, in setup_namespace()
2361 .mode = BIND_MOUNT, in setup_namespace()