Function report |
Source Code:security\keys\keyctl.c |
Create Date:2022-07-28 18:20:22 |
| Last Modify:2020-03-18 07:59:52 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Change the permission mask on a key.* The key must grant the caller Setattr permission for this to work, though* the key need not be fully instantiated yet. If the caller does not have
Proto:long keyctl_setperm_key(key_serial_t id, key_perm_t perm)
Type:long
Parameter:
| Type | Parameter | Name |
|---|---|---|
| key_serial_t | id | |
| key_perm_t | perm |
| 1004 | If perm & ~( KEY_POS_ALL | KEY_USR_ALL | KEY_GRP_ALL | KEY_OTH_ALL) Then Go to error |
| 1014 | key = key_ref_to_ptr(key_ref) |
| 1018 | lock for writing |
| 1021 | If Check operation authority || uid_eq(uid, current_fsuid()) Then |
| 1022 | access permissions = perm |
| 1023 | ret = 0 |
| 1026 | lease a write lock |
| 1028 | error : |
| 1029 | Return ret |
| Name | Describe |
|---|---|
| SYSCALL_DEFINE5 | The key control system call |
| COMPAT_SYSCALL_DEFINE5 | The key control system call, 32-bit compatibility version for 64-bit archs |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |