X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=security%2Fdummy.c;h=19d813d5e0837beaa6c332254c8538ff1d2b63d8;hb=1a9b85e6b36cdd046b0a354c38af20a7155272b8;hp=558795b237d6d873d5f729faf2208779a5db384e;hpb=67f83cbf081a70426ff667e8d14f94e13ed3bdca;p=safe%2Fjmp%2Flinux-2.6 diff --git a/security/dummy.c b/security/dummy.c index 558795b..19d813d 100644 --- a/security/dummy.c +++ b/security/dummy.c @@ -130,7 +130,7 @@ static void dummy_bprm_free_security (struct linux_binprm *bprm) static void dummy_bprm_apply_creds (struct linux_binprm *bprm, int unsafe) { if (bprm->e_uid != current->uid || bprm->e_gid != current->gid) { - current->mm->dumpable = suid_dumpable; + set_dumpable(current->mm, suid_dumpable); if ((unsafe & ~LSM_UNSAFE_PTRACE_CAP) && !capable(CAP_SETUID)) { bprm->e_uid = current->uid; @@ -420,8 +420,12 @@ static int dummy_file_ioctl (struct file *file, unsigned int command, static int dummy_file_mmap (struct file *file, unsigned long reqprot, unsigned long prot, - unsigned long flags) + unsigned long flags, + unsigned long addr, + unsigned long addr_only) { + if (addr < mmap_min_addr) + return -EACCES; return 0; } @@ -907,7 +911,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; }