Function report |
Source Code:security\selinux\hooks.c |
Create Date:2022-07-28 18:55:02 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Check whether a task has a particular permission to an inode.The 'adp' parameter is optional and allows other auditdata to be passed (e.g. the dentry).
Proto:static int inode_has_perm(const struct cred *cred, struct inode *inode, unsigned int perms, struct common_audit_data *adp)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
const struct cred * | cred | |
struct inode * | inode | |
unsigned int | perms | |
struct common_audit_data * | adp |
1676 | validate_creds(cred) |
1678 | If Value for the false possibility is greater at compile time(IS_PRIVATE(inode)) Then Return 0 |
1682 | isec = selinux_inode(inode) |
Name | Describe |
---|---|
dentry_has_perm | Same as inode_has_perm, but pass explicit audit data containingthe dentry to help the auditing code to more easily generate thepathname if needed. |
path_has_perm | Same as inode_has_perm, but pass explicit audit data containingthe path to help the auditing code to more easily generate thepathname if needed. |
file_path_has_perm | Same as path_has_perm, but uses the inode from the file struct. |
file_has_perm | Check whether a task can use an open file descriptor toaccess an inode in a given way. Check access to thedescriptor itself, and then use dentry_has_perm tocheck a particular permission to the file.Access to the descriptor is implicitly granted if it |
selinux_mmap_file |
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 |