Revert implementation of setfsuid and setfsgid due to security

issues.

Requested by: rwatson
Backed by: kris
This commit is contained in:
Marcel Moolenaar 2000-07-20 05:37:41 +00:00
parent d37861da7a
commit a603fe5a07
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;
}