diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-08-10 22:20:36 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-08-10 22:20:36 +0200 |
commit | 011c6ea6d9a4c5a61cd1a190eb48a0e4adb13aed (patch) | |
tree | 719e12106776af84a5c2cccce90cf86158637c07 | |
parent | e6c258d00582258ffd0448ad5d6a6ef0d3926cf6 (diff) | |
download | hurd-011c6ea6d9a4c5a61cd1a190eb48a0e4adb13aed.tar.gz hurd-011c6ea6d9a4c5a61cd1a190eb48a0e4adb13aed.tar.bz2 hurd-011c6ea6d9a4c5a61cd1a190eb48a0e4adb13aed.zip |
Rename proc_complete_reauthentication to proc_reauthenticate_complete
For coherency with the existing RPCs
-rw-r--r-- | exec/exec.c | 2 | ||||
-rw-r--r-- | hurd/process.defs | 6 | ||||
-rw-r--r-- | hurd/process_reply.defs | 2 | ||||
-rw-r--r-- | hurd/process_request.defs | 4 | ||||
-rw-r--r-- | libfshelp/start-translator-long.c | 2 | ||||
-rw-r--r-- | libshouldbeinlibc/exec-reauth.c | 2 | ||||
-rw-r--r-- | proc/mgt.c | 14 |
7 files changed, 16 insertions, 16 deletions
diff --git a/exec/exec.c b/exec/exec.c index 27d8abdf..026acf03 100644 --- a/exec/exec.c +++ b/exec/exec.c @@ -1400,7 +1400,7 @@ do_exec (file_t file, if (e.error) goto out; - e.error = proc_complete_reauthentication (newproc); + e.error = proc_reauthenticate_complete (newproc); if (e.error) { mach_port_deallocate (mach_task_self (), newproc); diff --git a/hurd/process.defs b/hurd/process.defs index cb17e631..9a8b3a1b 100644 --- a/hurd/process.defs +++ b/hurd/process.defs @@ -87,7 +87,7 @@ routine proc_register_version ( /* Change the current authentication of the process. The user should follow this call with a call to auth_user_authenticate, and then a - call to proc_complete_reauthentication on the port passed back + call to proc_reauthenticate_complete on the port passed back through the auth server, which becomes the new port for this process. The old process port is destroyed. */ simpleroutine proc_reauthenticate ( @@ -453,7 +453,7 @@ routine proc_waitid ( /* Change the current authentication of the process and assign a different task to it, atomically. The user should follow this call with a call to - auth_user_authenticate, and then a call to proc_complete_reauthentication + auth_user_authenticate, and then a call to proc_reauthenticate_complete on the port passed back through the auth server, which becomes the new port for this process. The old process port is destroyed. */ simpleroutine proc_reauthenticate_reassign ( @@ -464,5 +464,5 @@ simpleroutine proc_reauthenticate_reassign ( /* Complete reauthentication started with proc_reauthenticate or proc_reauthenticate_reassign. The process port must be the port that the user has received from auth_user_authenticate call. */ -simpleroutine proc_complete_reauthentication ( +simpleroutine proc_reauthenticate_complete ( process: process_t); diff --git a/hurd/process_reply.defs b/hurd/process_reply.defs index f0952ff9..58098fde 100644 --- a/hurd/process_reply.defs +++ b/hurd/process_reply.defs @@ -204,4 +204,4 @@ skip; /* proc_get_entry */ skip; /* proc_waitid */ skip; /* proc_reauthenticate_reassign */ -skip; /* proc_complete_reauthentication */ +skip; /* proc_reauthenticate_complete */ diff --git a/hurd/process_request.defs b/hurd/process_request.defs index 4ac57f6e..b12e2ca8 100644 --- a/hurd/process_request.defs +++ b/hurd/process_request.defs @@ -87,7 +87,7 @@ simpleroutine proc_register_version_request ( /* Change the current authentication of the process. The user should follow this call with a call to auth_user_authenticate, and then a - call to proc_complete_reauthentication on the port passed back + call to proc_reauthenticate_complete on the port passed back through the auth server, which becomes the new port for this process. The old process port is destroyed. */ simpleroutine proc_reauthenticate_request ( @@ -427,4 +427,4 @@ skip; /* proc_get_entry */ skip; /* proc_waitid */ skip; /* proc_reauthenticate_reassign */ -skip; /* proc_complete_reauthentication */ +skip; /* proc_reauthenticate_complete */ diff --git a/libfshelp/start-translator-long.c b/libfshelp/start-translator-long.c index e870767f..4bce337f 100644 --- a/libfshelp/start-translator-long.c +++ b/libfshelp/start-translator-long.c @@ -304,7 +304,7 @@ fshelp_start_translator_long (fshelp_open_fn_t underlying_open_fn, if (err) goto lose_task; - err = proc_complete_reauthentication (newport); + err = proc_reauthenticate_complete (newport); if (err) { mach_port_deallocate (mach_task_self (), newport); diff --git a/libshouldbeinlibc/exec-reauth.c b/libshouldbeinlibc/exec-reauth.c index 71e41b8b..b830f220 100644 --- a/libshouldbeinlibc/exec-reauth.c +++ b/libshouldbeinlibc/exec-reauth.c @@ -68,7 +68,7 @@ exec_reauth (auth_t auth, int secure, int must_reauth, if (isproc) { - err = proc_complete_reauthentication (newport); + err = proc_reauthenticate_complete (newport); if (err) { mach_port_deallocate (mach_task_self (), newport); @@ -119,7 +119,7 @@ S_proc_reauthenticate (struct proc *p, mach_port_t rendport) new_proc_port = mach_reply_port (); /* Ask to be told if the new port dies. We receive the notification - on the same port, and as it's not a proc_complete_reauthentication () + on the same port, and as it's not a proc_reauthenticate_complete () call, consider it an error. */ err = mach_port_request_notification (mach_task_self (), new_proc_port, MACH_NOTIFY_NO_SENDERS, 1, @@ -142,7 +142,7 @@ S_proc_reauthenticate (struct proc *p, mach_port_t rendport) &aux_gids, &naux_gids); while (err == EINTR); - /* Wait for a proc_complete_reauthentication () call + /* Wait for a proc_reauthenticate_complete () call on the new port before proceeding. */ if (!err) { @@ -157,7 +157,7 @@ S_proc_reauthenticate (struct proc *p, mach_port_t rendport) goto out; /* Check if what we have received was indeed a - proc_complete_reauthentication () call. */ + proc_reauthenticate_complete () call. */ if (msg.msgh_id != 24064) err = EINVAL; mach_msg_destroy (&msg); @@ -379,7 +379,7 @@ S_proc_reauthenticate_reassign (struct proc *p, new_proc_port = mach_reply_port (); /* Ask to be told if the new port dies. We receive the notification - on the same port, and as it's not a proc_complete_reauthentication () + on the same port, and as it's not a proc_reauthenticate_complete () call, consider it an error. */ err = mach_port_request_notification (mach_task_self (), new_proc_port, MACH_NOTIFY_NO_SENDERS, 1, @@ -407,7 +407,7 @@ S_proc_reauthenticate_reassign (struct proc *p, &aux_gids, &naux_gids); while (err == EINTR); - /* Wait for a proc_complete_reauthentication () call + /* Wait for a proc_reauthenticate_complete () call on the new port before proceeding. */ if (!err) { @@ -422,7 +422,7 @@ S_proc_reauthenticate_reassign (struct proc *p, goto out; /* Check if what we have received was indeed a - proc_complete_reauthentication () call. */ + proc_reauthenticate_complete () call. */ if (msg.msgh_id != 24064) err = EINVAL; mach_msg_destroy (&msg); @@ -510,7 +510,7 @@ S_proc_setowner (struct proc *p, } kern_return_t -S_proc_complete_reauthentication (struct proc *p) +S_proc_reauthenticate_complete (struct proc *p) { /* Regular calls of this routine always fail. */ return EOPNOTSUPP; |