diff options
author | cperciva <cperciva@FreeBSD.org> | 2004-07-17 15:21:34 +0000 |
---|---|---|
committer | cperciva <cperciva@FreeBSD.org> | 2004-07-17 15:21:34 +0000 |
commit | ddcdcc894f4f972ad1f4d5acf1c3ee91d821a1b9 (patch) | |
tree | 03055a0fd71720da0f1b8a11cf0cf1611f6659c6 /share | |
parent | 4c108fff2d1121b7d82506e01d6e97fb730f21c9 (diff) | |
download | FreeBSD-src-ddcdcc894f4f972ad1f4d5acf1c3ee91d821a1b9.zip FreeBSD-src-ddcdcc894f4f972ad1f4d5acf1c3ee91d821a1b9.tar.gz |
Document the SUSER_RUID flag.
Reminded by: pjd
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man9/suser.9 | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/share/man/man9/suser.9 b/share/man/man9/suser.9 index cb4dd6b..c8be714 100644 --- a/share/man/man9/suser.9 +++ b/share/man/man9/suser.9 @@ -62,8 +62,9 @@ circumstances dictate otherwise. The .Fn suser_cred function should be used when the credentials to be checked are -not the thread's own, when there is no thread, or when superuser -powers should be extended to imprisoned roots. +not the thread's own, when there is no thread, when superuser +powers should be extended to imprisoned roots, or when the credential +to be checked is the real user rather than the effective user. .Pp By default, a process does not command superuser powers if it has been imprisoned by the @@ -85,6 +86,17 @@ implicit in the .Xr jail 2 call should such powers be granted. .Pp +By default, the credential checked is the effective user. There are cases +where it is instead necessary to check the real user (for example, when +determining if resource limits should be applied), and this can be done +by passing the +.Dv SUSER_RUID +flag in the +.Fa flag +argument to the +.Fn suser_cred +function. +.Pp The .Fn suser and |