aboutsummaryrefslogtreecommitdiff
path: root/libdiskfs/opts-std-startup.c
Commit message (Collapse)AuthorAgeFilesLines
* (parse_startup_opt):Miles Bader1997-09-191-2/+2
| | | | Prepend "_diskfs" to uses of NOSUID & NOEXEC.
* Tue Sep 16 14:37:51 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1997-09-161-1/+6
| | | | | | | | | | | | | | | | | | | | | | | * priv.h (nosuid, noexec): New variables. * init-init.c (nosuid, noexec): New variables, initialized to zero. * file-exec.c (diskfs_S_file_exec): If noexec is on, then prohibit all execution with EACCES. If nosuid is on, then prohibit setuid or setgid execution by silently omitting the uid substitution. * opts-std-startup.c (parse_startup_opt): Implement --no-suid and --no-exec. * opts-common.c (diskfs_common_options): Add --no-suid and --no-exec. * opts-std-runtime.c (struct parse_hook): Add nosuid and noexec. (parse_opt) [cases 'S', 'E', OPT_SUID_OK, OPT_EXEC_OK] Understand --no-suid, --no-exec, --suid-ok, and --exec-ok. (parse_opt) [case ARGP_KEY_INIT]: Initialize H->nosuid and H->noexec. (OPT_SUID_OK, OPT_EXEC_OK): New macros. (std_runtime_options): Add --suid-ok and --exec-ok. (set_opts): Set nosuid and noexec from H->nosuid and H->noexec. * opts-common.c (diskfs_common_options): Rename --nosync to --no-sync; leave --nosync as an alias.
* (store_argp_children, startup_argp_children):Miles Bader1996-10-241-6/+6
| | | | | | | | | | New variables. (diskfs_store_startup_argp): Use STORE_ARGP_CHILDREN instead of STORE_ARGP_PARENTS. (store_argp_parents, startup_argp_children): Variable removed. (diskfs_startup_argp): Use STARTUP_ARGP_CHILDREN instead of STARTUP_ARGP_PARENTS.
* (store_argp_parents):Miles Bader1996-09-231-35/+19
| | | | | | | | | | | | | Use diskfs_startup_argp, not diskfs_std_startup_argp. (diskfs_use_mach_device, diskfs_device_arg, dev_startup_options, dev_startup_argp_parents, diskfs_std_device_startup_argp): Variables removed. (diskfs_startup_argp): Renamed from diskfs_std_startup_argp. (parse_dev_startup_opt): Function removed. <hurd/store.h>: New include.
* (startup_options, parse_startup_opt): Remove the --version option, which isMiles Bader1996-07-201-6/+0
| | | | handled elsewhere now.
* (parse_dev_startup_opt): Use argp_error.Miles Bader1996-06-201-9/+11
| | | | | | (diskfs_std_startup_argp): Renamed from startup_argp, exported. (diskfs_std_device_startup_argp): Renamed from dev_startup_argp, exported. (diskfs_startup_arg, diskfs_device_startup_arg): Variable removed.
* (parse_dev_startup_opt, parse_startup_opt):Miles Bader1996-05-111-2/+3
| | | | Use ARGP_ERR_UNKNOWN instead of EINVAL.
* (startup_options, dev_startup_options, dev_start_argp_parents,Miles Bader1996-02-071-10/+10
| | | | | | dev_startup_argp, startup_common_argp, startup_argp_parents, startup_argp, diskfs_startup_argp): Make const.
* (startup_options): Put boot options in a separate group with a header.Miles Bader1996-01-231-1/+2
|
* (startup_options): Remove options common to both runtime and startup.Miles Bader1995-10-191-11/+7
| | | | | (startup_common_argp, startup_argp_parents): New variables. (startup_argp): Include parents.
* (std_startup_options): Renamed from std_long_options; converted to argp format.Miles Bader1995-10-131-22/+76
| | | | | | | | | | (std_startup_arg): Renamed from std_startp_argp, converted argp fmt. (diskfs_standard_startup_argp): Renamed from diskfs_standard_startup_options. (parse_startup_opt): Set DISKFS_ARGV. (diskfs_use_mach_device, diskfs_device_arg, dev_startup_options, dev_startup_argp_parents, dev_startup_argp, diskfs_device_startup_argp): New variables. (parse_dev_startup_opt): New function.
* (OPT_BOOTFLAGS, OPT_EXEC_SERVER_TASK, OPT_HOST_PRIV_PORT,Miles Bader1995-10-071-0/+26
| | | | | | OPT_DEVICE_MASTER_PORT): New defines. (std_long_opts, parse_std_startup_opt): Add the --device-master-port, --host-priv-port, --exec-server-task, and --bootflags options.
* Initial revisionMiles Bader1995-05-201-0/+77