[PATCH] sanitize security_getprocattr() API

have it return the buffer it had allocated

Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Acked-by: James Morris <jmorris@namei.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Al Viro
2007-03-12 16:17:58 +00:00
committed by Linus Torvalds
parent c4823bce03
commit 04ff97086b
4 changed files with 17 additions and 22 deletions

View File

@@ -907,7 +907,7 @@ static void dummy_d_instantiate (struct dentry *dentry, struct inode *inode)
return;
}
static int dummy_getprocattr(struct task_struct *p, char *name, void *value, size_t size)
static int dummy_getprocattr(struct task_struct *p, char *name, char **value)
{
return -EINVAL;
}