[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 04/16] proc: make the function check_owner available
From: |
Justus Winter |
Subject: |
[PATCH 04/16] proc: make the function check_owner available |
Date: |
Mon, 5 Aug 2013 12:06:28 +0200 |
Make the function check_owner available for use in other files.
* proc/info.c (check_owner): Drop attributes static and inline.
* proc/proc.h (check_owner): Add prototype.
---
proc/info.c | 2 +-
proc/proc.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/proc/info.c b/proc/info.c
index 40f9d21..0d502c6 100644
--- a/proc/info.c
+++ b/proc/info.c
@@ -37,7 +37,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA
02139, USA. */
/* Returns true if PROC1 has `owner' privileges over PROC2 (and can thus get
its task port &c). If PROC2 has an owner, then PROC1 must have that uid;
otherwise, both must be in the same login collection. */
-static inline int
+int
check_owner (struct proc *proc1, struct proc *proc2)
{
return
diff --git a/proc/proc.h b/proc/proc.h
index 368b743..0af84fc 100644
--- a/proc/proc.h
+++ b/proc/proc.h
@@ -159,6 +159,7 @@ process_drop (struct proc *p)
/* Forward declarations */
void complete_wait (struct proc *, int);
int check_uid (struct proc *, uid_t);
+int check_owner (struct proc *, struct proc *);
void addalltasks (void);
void prociterate (void (*)(struct proc *, void *), void *);
void count_up (void *);
--
1.7.10.4
- Make sysvinit pid 1, fix killall5, Justus Winter, 2013/08/05
- [PATCH 02/16] Define and use symbolic names for important processes, Justus Winter, 2013/08/05
- [PATCH 01/16] hurd: add missing routines in process_reply.defs, Justus Winter, 2013/08/05
- [PATCH 04/16] proc: make the function check_owner available,
Justus Winter <=
- [PATCH 03/16] Add proc_set_init_task, make runsystem pid 1, Justus Winter, 2013/08/05
- [PATCH 05/16] proc: add proc_mark_important server code, Justus Winter, 2013/08/05
- [PATCH 06/16] hurd: add proc_mark_important, Justus Winter, 2013/08/05
- [PATCH 07/16] init: Mark all of inits children and init itself as important, Justus Winter, 2013/08/05
- [PATCH 08/16] libdiskfs: register libdiskfs-based translators as important, Justus Winter, 2013/08/05
- [PATCH 09/16] libnetfs: register libnetfs-based translators as important, Justus Winter, 2013/08/05
- [PATCH 10/16] libtrivfs: register libtrivfs-based translators as important, Justus Winter, 2013/08/05
- [PATCH 11/16] mach-defpager: register mach-defpager translators as important, Justus Winter, 2013/08/05
- [PATCH 12/16] trans: register symlink translators as important, Justus Winter, 2013/08/05
- [PATCH 13/16] proc: keep track of {start,end}_code, Justus Winter, 2013/08/05