Lines Matching defs:opts
241 * Set @opts to mount options specified in @data. If an option is not
246 static int parse_mount_options(char *data, int op, struct pts_mount_opts *opts)
252 opts->setuid = 0;
253 opts->setgid = 0;
254 opts->uid = GLOBAL_ROOT_UID;
255 opts->gid = GLOBAL_ROOT_GID;
256 opts->mode = DEVPTS_DEFAULT_MODE;
257 opts->ptmxmode = DEVPTS_DEFAULT_PTMX_MODE;
258 opts->max = NR_UNIX98_PTY_MAX;
264 opts->reserve =
283 opts->uid = uid;
284 opts->setuid = 1;
292 opts->gid = gid;
293 opts->setgid = 1;
298 opts->mode = option & S_IALLUGO;
303 opts->ptmxmode = option & S_IALLUGO;
311 opts->max = option;
330 struct pts_mount_opts *opts = &fsi->mount_opts;
361 mode = S_IFCHR|opts->ptmxmode;
388 struct pts_mount_opts *opts = &fsi->mount_opts;
390 err = parse_mount_options(data, PARSE_REMOUNT, opts);
406 struct pts_mount_opts *opts = &fsi->mount_opts;
408 if (opts->setuid)
410 from_kuid_munged(&init_user_ns, opts->uid));
411 if (opts->setgid)
413 from_kgid_munged(&init_user_ns, opts->gid));
414 seq_printf(seq, ",mode=%03o", opts->mode);
415 seq_printf(seq, ",ptmxmode=%03o", opts->ptmxmode);
416 if (opts->max < NR_UNIX98_PTY_MAX)
417 seq_printf(seq, ",max=%d", opts->max);
568 struct pts_mount_opts *opts;
572 opts = &fsi->mount_opts;
579 inode->i_uid = opts->setuid ? opts->uid : current_fsuid();
580 inode->i_gid = opts->setgid ? opts->gid : current_fsgid();
582 init_special_inode(inode, S_IFCHR|opts->mode, MKDEV(UNIX98_PTY_SLAVE_MAJOR, index));