diff options
author | gallatin <gallatin@FreeBSD.org> | 2000-10-26 15:49:35 +0000 |
---|---|---|
committer | gallatin <gallatin@FreeBSD.org> | 2000-10-26 15:49:35 +0000 |
commit | 7826865b469a96c8b888d211141fad8c12248c2e (patch) | |
tree | 8db5328b077a7f2b5f63a03c1634e2c9e3613a20 /sys | |
parent | cbeb05491d80f6c5f2ae7fd13cd99bc84f43bcb8 (diff) | |
download | FreeBSD-src-7826865b469a96c8b888d211141fad8c12248c2e.zip FreeBSD-src-7826865b469a96c8b888d211141fad8c12248c2e.tar.gz |
unstaticize change_ruid() because it is needed by osf1_setuid()
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_prot.c | 4 | ||||
-rw-r--r-- | sys/sys/ucred.h | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c index 8c21107..d8f7570 100644 --- a/sys/kern/kern_prot.c +++ b/sys/kern/kern_prot.c @@ -58,8 +58,6 @@ static MALLOC_DEFINE(M_CRED, "cred", "credentials"); -static void change_ruid(struct proc *p, uid_t ruid); - #ifndef _SYS_SYSPROTO_H_ struct getpid_args { int dummy; @@ -1286,7 +1284,7 @@ change_euid(p, euid) * The per-uid process count for this process is transfered from * the old uid to the new uid. */ -static void +void change_ruid(p, ruid) struct proc *p; uid_t ruid; diff --git a/sys/sys/ucred.h b/sys/sys/ucred.h index e53e8ec..7857d16 100644 --- a/sys/sys/ucred.h +++ b/sys/sys/ucred.h @@ -60,6 +60,7 @@ struct ucred { struct proc; void change_euid __P((struct proc *p, uid_t euid)); +void change_ruid __P((struct proc *p, uid_t ruid)); struct ucred *crcopy __P((struct ucred *cr)); struct ucred *crdup __P((struct ucred *cr)); void crfree __P((struct ucred *cr)); |