Function report |
Source Code:fs\crypto\policy.c |
Create Date:2022-07-28 20:24:14 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:fscrypt_ioctl_set_policy
Proto:int fscrypt_ioctl_set_policy(struct file *filp, const void __user *arg)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | filp | |
const void __user * | arg |
316 | inode = file_inode(filp) |
324 | size = Return the size expected for the given fscrypt_policy based on its version* number, or 0 if the policy version is unrecognized. |
340 | If copy_from_user( & policy, arg, size) Then Return -EFAULT |
351 | inode_lock(inode) |
353 | ret = fscrypt_get_policy(inode, & existing_policy) |
357 | Else if IS_DEADDIR(inode) Then ret = -ENOENT |
361 | Else ret = set_encryption_policy(inode, & policy) |
363 | Else if ret == -EINVAL || ret == 0 && Not scrypt_policies_equal - check whether two encryption policies are the same* Return: %true if equal, else %false Then |
370 | inode_unlock(inode) |
372 | mnt_drop_write_file(filp) |
373 | Return ret |
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 |