summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
1995-12-29(diskfs_S_file_exec):Miles Bader
Always reauth the proc port, as exec does not do it, even in the secure case. Set the proc's owner too.
1995-12-28(setid):Miles Bader
Don't touch the return params unless we succeed. Add SETID parameter, and just copy old into new unless it's set. Handle the NOLDGENIDS == 0 case correctly. (diskfs_S_file_exec): Use the new setid() properly. Make sure that {GEN,AUX}{UIDS,GIDS} are always in a state where they can be freed.
1995-12-28(ports_interrupt_rpc_on_notification): If NEW_REQ is not needed, put it onRoland McGrath
the free list, don't call free on it.
1995-12-28Gratuitous dithering.Miles Bader
1995-12-28(ports_interrupt_self_on_dead_port): New macro.Miles Bader
1995-12-28(ports_interrupt_notified_rpcs):Miles Bader
Only bother to lock _PORTS_LOCK if there are notifications.
1995-12-28(end_using_protid_port): Don't calls ports_port_deref if CRED is null.Roland McGrath
1995-12-28(setid): New function.Miles Bader
(scan_ids): Moved out of diskfs_S_file_exec. (diskfs_S_file_exec): Move duplicated code into setid(). Make the bogus auth port case work correctly. Deleted old ifdefed-out code. Enable setuid code.
1995-12-27(diskfs_register_memory_fault_area):Miles Bader
Register both preempter1 and preempter2 in REC instead of preempter1 twice.
1995-12-27(SRCS): Add interrupt-on-notify.c, interrupt-notified-rpcs.c, and dead-name.c.Miles Bader
1995-12-27(struct rpc_info): Add notifies field.Miles Bader
(struct ports_notify): New structure. (struct rpc_notify): New structure. (_ports_notifications, _ports_free_rpc_notifies, _ports_free_ports_notifies): New variable declarations. (ports_interrupt_self_on_notification, ports_interrupt_rpc_on_notification, ports_interrupt_notified_rpcs, _ports_remove_notified_rpc): New functiondeclarations. Include <mach/notify.h>.
1995-12-27(ports_do_mach_notify_dead_name): Call ports_dead_name().Miles Bader
1995-12-27(ports_no_senders): Interrupt any rpcs requesting such.Miles Bader
1995-12-27(ports_end_rpc): Get rid of any rpc notifications.Miles Bader
1995-12-27(ports_begin_rpc): Initialize the notifies field.Miles Bader
1995-12-27Initial revisionMiles Bader
1995-12-27entered into RCSMiles Bader
1995-12-23Entire file rewritten to use libc signal preemption facility.Michael I. Bushnell
1995-12-21entered into RCSMichael I. Bushnell
1995-12-21Initial revisionMichael I. Bushnell
1995-12-21(proc_getsidport): Make SESSPORT's type mach_port_send_t;Miles Bader
1995-12-21(ptyopen, nptyperopens, pktnostop, output_stopped): Initialize to 0.Miles Bader
1995-12-21(S_term_get_nodename, S_term_set_nodename):Miles Bader
Get the node name from our cred->po->cntl->hook rather than NODENAME.
1995-12-21(nodename): Variable removed.Miles Bader
1995-12-21(main): Put the nodename on ourcntl->hook rather than NODENAME, and also putMiles Bader
our peer's nodname on peercntl->hook.
1995-12-21(free_session): Correctly get rid of the receive right we're holding.Miles Bader
(S_proc_getsidport): Add and use new arg sessport_type. Return errors.
1995-12-21(libutil-libsubst): New hack.Miles Bader
(login): Depend on -lutil.
1995-12-21(argp_default_options): Put --help in group -1.Miles Bader
1995-12-21(make_hol):Miles Bader
Use the new GROUP field in struct argp_option to initialize sort_classes. (HEADER_COL): New macro. (hol_entry_help): Deal with group headers.
1995-12-21(struct argp_option): Add the GROUP field. Twiddle doc.Miles Bader
(_option_is_end): Be more pessimistic about what constitutes `the end'.
1995-12-21(SRCS): Remove options.c. Rename ivec.c to idvec.c.Miles Bader
(LCLHDRS): Remove options.h. Rename ivec.h to idvec.h.
1995-12-21(struct idvec): Renamed from struct ivec. `ints' field renamed to `ids'.Miles Bader
(make_idvec, idvec_insert, idvec_add, idvec_contains): All renamed from the corresponding `ivec' declaration, and types, variable names, etc, changed accordingly.
1995-12-21(make_idvec, idvec_insert, idvec_add, idvec_contains):Miles Bader
All renamed from the corresponding `ivec' routine, and types, variable names, etc, changed accordingly.
1995-12-21(argz_insert): Instead of an integer position N, take a pointer BEFORE intoMiles Bader
ARGZ to insert before. (argz_next): New inline function.
1995-12-21(argz_insert):Miles Bader
Instead of an integer position N, take a pointer into ARGZ to insert before.
1995-12-21Everything changed.Miles Bader
1995-12-21(main, options): If the specified sort field begins with `-', reverse the sort.Miles Bader
(main): If there is no current uid, don't try to filter with it. (FILTER_NOT_LEADER): Renamed from FILTER_NSESSLDR. (main): Rename ps_not_leader_filter from ps_not_sess_leader_filter. (main): Use idvec routines instead of ids. Use argz functions to store tty_names instead of our own. (make_ids, ids_add, ids_contains): Routines deleted. Include <idvec.h>.
1995-12-21Initial revisionMiles Bader
1995-12-21(ps_emit_nz_int):Miles Bader
Write `-' when the value is 0, rather than mangling the output. (ps_emit_uid): Use an int uid, and emit "-" for none. (ps_emit_uname, ps_cmp_uids, ps_cmp_unames, ps_nominal_user): Handle NULL users. (ps_owner_uid_getter): New variable. (ps_get_owner_uid, ps_nominal_uid): New functions. (ps_std_fmt_specs): Make "UID" use owner_uid rather than owner. (own_uid): New variable (was function local).
1995-12-21(ps_not_leader_p): Renamed from ps_not_sess_leader_p.Miles Bader
(ps_not_leader_filter): Renamed from ps_not_sess_leader_filter. (ps_unorphaned_p): Include login leaders as well as session leaders. (ps_own_filter): Depend on PSTAT_OWNER_UID. (ps_own_p): Account for there being no uid.
1995-12-20(S_proc_reassign):Miles Bader
Have notifications sent to the correct request port. Once we've given STUBP's request port to P, don't leave it in STUBP, so process_has_exited() doesn't dealloc it.
1995-12-20(proc_stat_set_flags): If there's no owner, set the uid to -1 (and the ownerMiles Bader
to null), instead of failing. (proc_stat_set_flags): Add support for PROC_OWNER_UID. (add_preconditions): Add preconditions for owner_uid (& owner).
1995-12-20(proc_stat_owner_uid): New macro.Miles Bader
(PSTAT_OWNER_UID): New macro. (struct proc_stat): Add owner_uid field. (ps_not_leader_filter): Renamed from ps_not_sess_leader_filter.
1995-12-20(diskfs_S_fsys_init): Call proc_mark_exec on EXECPROCESS.Roland McGrath
1995-12-20(new_proc): Don't set P->p_noowner for processes 0 and 1.Michael I. Bushnell
1995-12-20(get_vector): Rewritten without arbitrary limits.Roland McGrath
1995-12-20(trivfs_S_io_read): After a block on the input queue, don't go backMichael I. Bushnell
and check the input queue if there is a signal in progress; wait for the signal to complete first. (send_signal): Release global_lock around signal RPC. Call report_sig_start and report_sig_end around signal RPC. (call_asyncs): Likewise. (report_sig_start, report_sig_end): New functions. (sigs_in_progress, input_sig_wait, input_sig_wakeup): New variables.
1995-12-20(send_signal): Release global_lock around signal RPC.Michael I. Bushnell
(call_asyncs): Likewise.
1995-12-20(main): Never mind.Michael I. Bushnell
1995-12-20Never mind.Michael I. Bushnell