Age | Commit message (Collapse) | Author |
|
|
|
Prepend "_diskfs" to uses of NOSUID & NOEXEC.
|
|
|
|
Prepend "_diskfs" to uses of NOSUID & NOEXEC.
|
|
Rename definitions from ..._OPT.
(set_opts):
Prepend "_diskfs" to uses of NOSUID & NOEXEC.
|
|
|
|
Declaration removed.
(_diskfs_nosuid, _diskfs_noexec):
Renamed from nosuid & noexec.
|
|
|
|
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.
|
|
* 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.
|
|
* diskfs.h: Doc fix.
* io-map.c (diskfs_S_io_map): Cope with error return from
diskfs_get_filemap.
* rdwr-internal.c (_diskfs_rdwr_internal): Likewise.
|
|
* disk-pager.c (service_paging_requests): New args for
ports_manage_port_operations_multithread.
* init-first.c (master_thread_function): Likewise.
|
|
|
|
|
|
* name-cache.c (find_cache): Grammar doc fix.
|
|
|
|
Turn off synchronous mode when setting a sync interval.
|
|
* file-exec.c: Include <fcntl.h> instead of <fcntlbits.h>.
Suggested by Marcus G. Daniels (marcus@cathcart.sysc.pdx.edu).
Mon Jun 30 17:26:38 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
* diskfs.h (diskfs_hard_readonly): New variable.
(diskfs_readonly): Doc change.
* readonly.c (diskfs_readonly): Provide initialized declaration.
(diskfs_check_readonly): If we cannot write the media and so we
switch to readonly, set diskfs_hard_readonly too.
(diskfs_set_readonly): If diskfs_hard_readonly is set, then
inhibit any attempt to clear readonly status.
|
|
* diskfs.h (diskfs_hard_readonly): New variable.
(diskfs_readonly): Doc change.
* readonly.c (diskfs_readonly): Provide initialized declaration.
(diskfs_check_readonly): If we cannot write the media and so we
switch to readonly, set diskfs_hard_readonly too.
(diskfs_set_readonly): If diskfs_hard_readonly is set, then
inhibit any attempt to clear readonly status.
|
|
|
|
Initialize the ROOT_PARENT, SHADOW_ROOT, and SHADOW_ROOT_PARENT fields.
|
|
|
|
Use fshelp_translated rather than fshelp_fetch_control.
|
|
* Makefile (LCLHDRS): Add fhandle.h.
|
|
* file-chmod.c (diskfs_S_file_chmod): Turn off S_ITRANS bits too.
|
|
* dir-rmdir.c (diskfs_S_dir_rmdir): Check EBUSY-when-translated
error before ENOTDIR-when-not-dir.
|
|
|
|
Pass CRED's shadow root inode number to fshelp_get_identity when creating a
shadow root fsid, not INUM.
|
|
|
|
|
|
Mark shadow roots with S_IROOT.
|
|
Return different fsys ids for different shadow roots.
|
|
|
|
Use CRED->po as LOOKUPCRED's po, so that root detection works (and doesn't
crash).
|
|
Don't deadlock if PO's shadow_root is also it's node.
|
|
Don't release a reference to any old shadow_root if it was == NODE.
Don't aquire a new reference for NODE.
|
|
Support reading from sylinks.
|
|
Allow symlinks to be opened for O_READ.
|
|
|
|
|
|
dir-reparent.c replaced by file-reparent.c.
|
|
|
|
|
|
Pass COOKIE directly to diskfs_make_peropen instead of unpacking each arg.
|
|
Type removed.
|
|
Finalize new state.
|
|
Add & use CONTEXT param.
Remove DOTDOT & DEPTH params.
|
|
Remove DEPTH & NEW_DEPTH params.
Check CRED->po->shadow_root for root traversals, and get rid of assert that
EAGAIN isn't returned from diskfs_lookup_hard.
|
|
Pass a prototype peropen instead of the dotdotport and depth to
diskfs_make_peropen.
|