Revert implementation of setfsuid and setfsgid due to security

issues.

Requested by: rwatson
Backed by: kris
This commit is contained in:
marcel 2000-07-20 05:37:41 +00:00
parent 35b42ab19e
commit 2f1d9ab5d2
4 changed files with 4 additions and 40 deletions

View File

@ -84,6 +84,8 @@ DUMMY(quotactl);
DUMMY(bdflush);
DUMMY(sysfs);
DUMMY(afs_syscall);
DUMMY(setfsuid);
DUMMY(setfsgid);
DUMMY(getsid);
DUMMY(sysctl);
DUMMY(getresuid);

View File

@ -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;
}

View File

@ -84,6 +84,8 @@ DUMMY(quotactl);
DUMMY(bdflush);
DUMMY(sysfs);
DUMMY(afs_syscall);
DUMMY(setfsuid);
DUMMY(setfsgid);
DUMMY(getsid);
DUMMY(sysctl);
DUMMY(getresuid);

View File

@ -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;
}