diff options
author | attilio <attilio@FreeBSD.org> | 2008-09-17 15:49:44 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2008-09-17 15:49:44 +0000 |
commit | 23ff3dbeb88f559906401e0fc17cf66554a620ab (patch) | |
tree | cf10ffc60d6ce4ed9af75e25eb64a81244564299 /share/man/man9/vfs_suser.9 | |
parent | 30605e1eb117a4e8f8f43b22d297ee4594992fde (diff) | |
download | FreeBSD-src-23ff3dbeb88f559906401e0fc17cf66554a620ab.zip FreeBSD-src-23ff3dbeb88f559906401e0fc17cf66554a620ab.tar.gz |
Remove the suser(9) interface from the kernel. It has been replaced from
years by the priv_check(9) interface and just very few places are left.
Note that compatibility stub with older FreeBSD version
(all above the 8 limit though) are left in order to reduce diffs against
old versions. It is responsibility of the maintainers for any module, if
they think it is the case, to axe out such cases.
This patch breaks KPI so __FreeBSD_version will be bumped into a later
commit.
This patch needs to be credited 50-50 with rwatson@ as he found time to
explain me how the priv_check() works in detail and to review patches.
Tested by: Giovanni Trematerra <giovanni dot trematerra at gmail dot com>
Reviewed by: rwatson
Diffstat (limited to 'share/man/man9/vfs_suser.9')
-rw-r--r-- | share/man/man9/vfs_suser.9 | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/share/man/man9/vfs_suser.9 b/share/man/man9/vfs_suser.9 index 749557a..df68bc2 100644 --- a/share/man/man9/vfs_suser.9 +++ b/share/man/man9/vfs_suser.9 @@ -46,7 +46,7 @@ It will check to see if the thread passed in has the same credentials as the user that mounted the file system. If so, it returns 0, otherwise it returns what -.Xr suser 9 +.Xr priv_check 9 would have returned. .Sh RETURN VALUES The @@ -61,8 +61,7 @@ of some other implementations of in which a TRUE response indicates superuser powers. .Sh SEE ALSO .Xr chroot 2 , -.Xr jail 2 , -.Xr suser 9 +.Xr jail 2 .Sh HISTORY The .Fn vfs_suser |