Age | Commit message (Collapse) | Author |
|
Rename definitions from ..._OPT.
(set_opts):
Prepend "_diskfs" to uses of NOSUID & NOEXEC.
|
|
RR should be RL.
Assign 0's type-correctly to NP->dn->translator and ->translen.
(diskfs_node_norefs):
The translator field is in NP->dn, not NP.
|
|
|
|
Declaration removed.
(_diskfs_nosuid, _diskfs_noexec):
Renamed from nosuid & noexec.
|
|
ER->lenid should be ER->len_id.
Remove unused variable C.
|
|
Make value a string.
|
|
* Makefile (DIST_FILES): Add, referring to EXTENSIONS.
* EXTENSIONS: New file.
|
|
* rr.c (gnuext_live): New variable.
(rrip_work): Comprehend AU, TR, MD, and FL, all as GNU
extensions. Recognize GNU extension id field when processing ER
fields.
(release_rrip): Free RR->trans if it's live.
* inode.c (read_disknode): Interpret and install the values set by
AU, TR, MD, and FL extensions.
(diskfs_node_norefs): Free NP->translator if it's set.
* isofs.h (struct disknode): New members `translen' and
`translator'.
* rr.h (struct gn_au, struct gn_tr, struct gn_md, struct gn_fl):
New strucures.
(GNUEXT_SRC, GNUEXT_DES, GNUEXT_ID, GNUEXT_VERS): New macros.
(struct rrip_lookup): New members author, translen, trans,
allmode, flags.
(VALID_AU, VALID_TR, VALID_MD, VALID_FL): New macros.
* Makefile (DIST_FILES): Add, referring to EXTENSIONS.
* EXTENSIONS: New file.
|
|
|
|
Add --no-suid and --no-exec options.
Don't deallocate ARGZ when we get an error.
|
|
* opts-append-std.c (diskfs_append_std_options): Add --no-suid and
--no-exec when appropriate.
|
|
* host.c (hostid, hostname, hostnamelen): Delete variables.
(S_proc_sethostid, S_proc_gethostid, S_proc_sethostname,
S_proc_gethostname): Delete functions.
|
|
* process.defs: Delete proc_sethostid, proc_gethostid,
proc_sethostname, and proc_gethostname.
|
|
|
|
* 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.
|
|
|
|
|
|
Fix printed name of --node-cache-size.
(parse_runtime_opt):
New function.
(runtime_argp):
Use it.
|
|
|
|
Immediately free entries without nodes.
|
|
Fix type signature of short_circuited_callback1.
|
|
|
|
Re-aquire the lock on DNP when looping to follow a symlink.
|
|
|
|
|
|
Clear *NODE on errors.
Check for lookup permission.
Re-arrange code to correctly handle errors.
|
|
If the underlying node isn't a directory, propagate read permission to
execute permission.
|
|
|
|
Fix typo.
|
|
|
|
New macro.
(ftp_conn_validate_syshooks):
Use FTP_CONN_EI instead of `static inline'.
Protect with __OPTIMIZE__.
|
|
Don't cleanup CONN->actv_data_conn_queue.
|
|
Don't initialize CONN->actv_data_conn_queue.
|
|
|
|
Remove ACTV_DATA_CONN_QUEUE field.
|
|
Close the data queue socket.
(ftp_conn_finish_open_actv_data):
Close the listen queue after looking for a connection.
(ftp_conn_start_open_actv_data):
Always generate a new data connection (it doesn't work to always listen on a
single address).
|
|
|
|
Add the ACTV_DATA_ADDR and ACTV_DATA_CONN_QUEUE fields.
Add USE_PASSIVE field.
|
|
Close CONN->actv_data_conn_queue if necessary.
(ftp_conn_open):
Set SIN_LEN field correctly.
|
|
Free the ACTV_DATA_ADDR field.
(ftp_conn_create):
Initialiaze the ACTV_DATA_ADDR & ACTV_DATA_CONN_QUEUE fields.
Initialize USE_PASSIVE field.
|
|
ftp_conn_start_open_actv_data, ftp_conn_finish_open_actv_data):
New functions.
(ftp_conn_start_open_data):
Renamed from ftp_conn_open_data.
Use an active data connection if passive doesn't work.
(ftp_conn_start_transfer):
Use ftp_conn_start_open_data and ftp_conn_finish_open_data instead of
ftp_conn_open_data.
|
|
|
|
Use a copy of CRED->user when creating NEW_CRED.
|
|
Always update CC->max to something reasonable after a transfer.
Use ports_self_interrupted to check for interrupts.
|
|
|
|
Turn on debugging when there *aren't* any errors...
|
|
|
|
Don't lock DNP or assume it's locked when it shouldn't be.
|
|
|
|
Negate linux error codes before returning.
|