Age | Commit message (Collapse) | Author |
|
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.
|
|
the free list, don't call free on it.
|
|
|
|
|
|
Only bother to lock _PORTS_LOCK if there are notifications.
|
|
|
|
(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.
|
|
Register both preempter1 and preempter2 in REC instead of preempter1 twice.
|
|
|
|
(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>.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Get the node name from our cred->po->cntl->hook rather than NODENAME.
|
|
|
|
our peer's nodname on peercntl->hook.
|
|
(S_proc_getsidport): Add and use new arg sessport_type. Return errors.
|
|
(login): Depend on -lutil.
|
|
|
|
Use the new GROUP field in struct argp_option to initialize sort_classes.
(HEADER_COL): New macro.
(hol_entry_help): Deal with group headers.
|
|
(_option_is_end): Be more pessimistic about what constitutes `the end'.
|
|
(LCLHDRS): Remove options.h. Rename ivec.h to idvec.h.
|
|
(make_idvec, idvec_insert, idvec_add, idvec_contains):
All renamed from the corresponding `ivec' declaration, and types, variable
names, etc, changed accordingly.
|
|
All renamed from the corresponding `ivec' routine, and types, variable
names, etc, changed accordingly.
|
|
ARGZ to insert before.
(argz_next): New inline function.
|
|
Instead of an integer position N, take a pointer into ARGZ to insert before.
|
|
|
|
(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>.
|
|
|
|
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).
|
|
(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.
|
|
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.
|
|
to null), instead of failing.
(proc_stat_set_flags): Add support for PROC_OWNER_UID.
(add_preconditions): Add preconditions for owner_uid (& owner).
|
|
(PSTAT_OWNER_UID): New macro.
(struct proc_stat): Add owner_uid field.
(ps_not_leader_filter): Renamed from ps_not_sess_leader_filter.
|
|
|
|
|
|
|
|
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.
|
|
(call_asyncs): Likewise.
|
|
|
|
|
|
|