TOMOYO: Don't abuse sys_getpid(), sys_getppid()
System call entry functions sys_*() are never to be called from general kernel code. The fact that they aren't declared in header files should have been a clue. These functions also don't exist on Alpha since it has sys_getxpid() instead. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Acked-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Signed-off-by: James Morris <jmorris@namei.org>
This commit is contained in:

committed by
James Morris

parent
91e71c12c5
commit
c8da96e87d
@@ -689,9 +689,6 @@ struct tomoyo_profile {
|
||||
|
||||
/********** Function prototypes. **********/
|
||||
|
||||
extern asmlinkage long sys_getpid(void);
|
||||
extern asmlinkage long sys_getppid(void);
|
||||
|
||||
/* Check whether the given string starts with the given keyword. */
|
||||
bool tomoyo_str_starts(char **src, const char *find);
|
||||
/* Get tomoyo_realpath() of current process. */
|
||||
|
Reference in New Issue
Block a user