mirror of https://github.com/mkerrisk/man-pages
keyctl.2: Improve KEYCTL_CHOWN details
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
f8aead6a94
commit
14694cb5b2
|
@ -185,7 +185,8 @@ via the function
|
||||||
.BR keyctl_revoke (3).
|
.BR keyctl_revoke (3).
|
||||||
.TP
|
.TP
|
||||||
.B KEYCTL_CHOWN
|
.B KEYCTL_CHOWN
|
||||||
Change the ownership of a key.
|
Change the ownership (user and group ID) of a key.
|
||||||
|
|
||||||
The
|
The
|
||||||
.I arg2
|
.I arg2
|
||||||
argument (cast to
|
argument (cast to
|
||||||
|
@ -201,18 +202,21 @@ The
|
||||||
argument (cast to
|
argument (cast to
|
||||||
.IR gid_t )
|
.IR gid_t )
|
||||||
contains the new group ID (or \-1 in case the group ID shouldn't be changed).
|
contains the new group ID (or \-1 in case the group ID shouldn't be changed).
|
||||||
|
|
||||||
The key must grant the caller
|
The key must grant the caller
|
||||||
.I setattr
|
.I setattr
|
||||||
permission.
|
permission.
|
||||||
|
|
||||||
For the UID to be changed, or for the GID to be changed to a group
|
For the UID to be changed, or for the GID to be changed to a group
|
||||||
the caller is not a member of, the caller must have the
|
the caller is not a member of, the caller must have the
|
||||||
.B CAP_SYS_ADMIN
|
.B CAP_SYS_ADMIN
|
||||||
capability (see
|
capability (see
|
||||||
.BR capabilities (7)).
|
.BR capabilities (7)).
|
||||||
|
|
||||||
If the UID is to be changed, the new user must have sufficient
|
If the UID is to be changed, the new user must have sufficient
|
||||||
quota to accept the key.
|
quota to accept the key.
|
||||||
The quota deduction will be removed from the old user
|
The quota deduction will be removed from the old user
|
||||||
to the new user should the attribute be changed.
|
to the new user should the UID be changed.
|
||||||
|
|
||||||
The
|
The
|
||||||
.I arg5
|
.I arg5
|
||||||
|
|
Loading…
Reference in New Issue