diff options
author | marcel <marcel@FreeBSD.org> | 2000-07-20 05:37:41 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2000-07-20 05:37:41 +0000 |
commit | 2f1d9ab5d22b9d04095dc2cb7118a434c042020d (patch) | |
tree | d122555f408a173c75708229faff2ec497944427 /sys/i386 | |
parent | 35b42ab19e84a6a58a4b25c650301ced8a0b3c36 (diff) | |
download | FreeBSD-src-2f1d9ab5d22b9d04095dc2cb7118a434c042020d.zip FreeBSD-src-2f1d9ab5d22b9d04095dc2cb7118a434c042020d.tar.gz |
Revert implementation of setfsuid and setfsgid due to security
issues.
Requested by: rwatson
Backed by: kris
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/linux/linux_dummy.c | 2 | ||||
-rw-r--r-- | sys/i386/linux/linux_misc.c | 20 |
2 files changed, 2 insertions, 20 deletions
diff --git a/sys/i386/linux/linux_dummy.c b/sys/i386/linux/linux_dummy.c index 25615fd..7afe4b3 100644 --- a/sys/i386/linux/linux_dummy.c +++ b/sys/i386/linux/linux_dummy.c @@ -84,6 +84,8 @@ DUMMY(quotactl); DUMMY(bdflush); DUMMY(sysfs); DUMMY(afs_syscall); +DUMMY(setfsuid); +DUMMY(setfsgid); DUMMY(getsid); DUMMY(sysctl); DUMMY(getresuid); diff --git a/sys/i386/linux/linux_misc.c b/sys/i386/linux/linux_misc.c index 87faf63..1adea54 100644 --- a/sys/i386/linux/linux_misc.c +++ b/sys/i386/linux/linux_misc.c @@ -1466,23 +1466,3 @@ linux_modify_ldt(p, uap) return (error); } - -int -linux_setfsuid(p, uap) - struct proc *p; - struct linux_setfsuid_args *uap; -{ - p->p_retval[0] = p->p_ucred->cr_uid; - /* XXX - emit a diagnostics message */ - return 0; -} - -int -linux_setfsgid(p, uap) - struct proc *p; - struct linux_setfsgid_args *uap; -{ - p->p_retval[0] = p->p_ucred->cr_gid; - /* XXX - emit a diagnostics message */ - return 0; -} |