diff options
author | marcel <marcel@FreeBSD.org> | 2000-07-16 21:23:34 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2000-07-16 21:23:34 +0000 |
commit | a29e7f6acfd9683396422fda28bc72a5eecb7586 (patch) | |
tree | 8808eac4df6e4ebf2a4550cca473492ed3bf800d /sys/compat/linux | |
parent | c1b4384a1c7a6cd217b1ceec4aa486bb3a2b63ad (diff) | |
download | FreeBSD-src-a29e7f6acfd9683396422fda28bc72a5eecb7586.zip FreeBSD-src-a29e7f6acfd9683396422fda28bc72a5eecb7586.tar.gz |
Implement setfsuid and setfsgid. Implementation derived from patch
in PR.
PR: 16993
Submitted by: Bjoern Groenvall <bg@sics.se>
Diffstat (limited to 'sys/compat/linux')
-rw-r--r-- | sys/compat/linux/linux_misc.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 1adea54..87faf63 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -1466,3 +1466,23 @@ 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; +} |