Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e7bfb21 authored by Heiko Carstens's avatar Heiko Carstens
Browse files

[CVE-2009-0029] System call wrappers part 27

parent c4ea37c2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -99,7 +99,7 @@ static inline void put_binfmt(struct linux_binfmt * fmt)
 *
 * Also note that we take the address to load from from the file itself.
 */
asmlinkage long sys_uselib(const char __user * library)
SYSCALL_DEFINE1(uselib, const char __user *, library)
{
	struct file *file;
	struct nameidata nd;
+1 −1
Original line number Diff line number Diff line
@@ -179,7 +179,7 @@ static int fs_maxindex(void)
/*
 * Whee.. Weird sysv syscall. 
 */
asmlinkage long sys_sysfs(int option, unsigned long arg1, unsigned long arg2)
SYSCALL_DEFINE3(sysfs, int, option, unsigned long, arg1, unsigned long, arg2)
{
	int retval = -EINVAL;

+2 −2
Original line number Diff line number Diff line
@@ -86,8 +86,8 @@ static struct {
	},
};

long
asmlinkage sys_nfsservctl(int cmd, struct nfsctl_arg __user *arg, void __user *res)
SYSCALL_DEFINE3(nfsservctl, int, cmd, struct nfsctl_arg __user *, arg,
		void __user *, res)
{
	struct file *file;
	void __user *p = &arg->u;
+1 −1
Original line number Diff line number Diff line
@@ -382,7 +382,7 @@ out:
	return error;
}

asmlinkage long sys_syslog(int type, char __user *buf, int len)
SYSCALL_DEFINE3(syslog, int, type, char __user *, buf, int, len)
{
	return do_syslog(type, buf, len);
}
+1 −1
Original line number Diff line number Diff line
@@ -574,7 +574,7 @@ struct task_struct *ptrace_get_task_struct(pid_t pid)
#define arch_ptrace_attach(child)	do { } while (0)
#endif

asmlinkage long sys_ptrace(long request, long pid, long addr, long data)
SYSCALL_DEFINE4(ptrace, long, request, long, pid, long, addr, long, data)
{
	struct task_struct *child;
	long ret;
Loading