aboutsummaryrefslogtreecommitdiff
path: root/libfshelp/exec-reauth.c
Commit message (Collapse)AuthorAgeFilesLines
* libfshelp: Port to x86_64Sergey Bugaev2023-05-101-2/+2
| | | | Message-Id: <20230508213136.608575-5-bugaevc@gmail.com>
* Remove the concept of process ownerSergey Bugaev2022-08-101-3/+6
| | | | | | | | | | Now that it's completely unused. procinfo.owner is now simply set to the first UID that a process has. proc_setowner () is kept for compatibility, but now does nothing. The clients still try to call it, though, for compatibility with older proc server versions.
* libshouldbeinlibc: Do not reauthenticate proc port when secureSergey Bugaev2022-08-101-6/+7
| | | | | | | | | | | | | | exec_reauth () is supposed to reauthenticate the given ports and file descriptors with a new authentication. If the secure flag is set, this reauthentication is happening for a future exec with the EXEC_SECURE flag. Now that the exec server uses proc_reauthenticate_reassign (), the process reauthentication is done atomically with task reassignment by the exec server. So stop doing it inside exec_reauth (). This fixes a vulnerability where a process was able to use its reauthenticated proc port before it got exec'ed over.
* Fix setgid behaviorSamuel Thibault2009-12-131-1/+1
| | | | | * libfshelp/exec-reauth.c (fshelp_exec_reauth): Set gid in eff_gids and avail_gids instead of in eff_uids, and avail_uids.
* 2002-05-10 Roland McGrath <roland@frob.com>Roland McGrath2002-05-281-8/+8
| | | | | * exec-reauth.c (fshelp_exec_reauth): Always set *SECURE if nonnull, as the comment says we do.
* Tue Jul 1 16:45:27 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1997-07-091-3/+4
| | | | | | * exec-reauth.c (fshelp_exec_reauth): If the new set of eff_uids is empty, then still do proc_setowner, but this time to set it to "unowned" status.
* (fshelp_exec_reauth): Provide new third arg to proc_setowner.Michael I. Bushnell1996-05-091-2/+2
|
* (fshelp_exec_reauth): Don't setgid the uids.Miles Bader1996-01-191-1/+1
|
* Use exec_reauth() instead of doing it ourselves.Miles Bader1996-01-021-50/+9
|
* Initial revisionMiles Bader1996-01-011-0/+192