Function report |
Source Code:security\apparmor\lsm.c |
Create Date:2022-07-28 19:53:04 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:apparmor_path_rename
Proto:static int apparmor_path_rename(const struct path *old_dir, struct dentry *old_dentry, const struct path *new_dir, struct dentry *new_dentry)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
const struct path * | old_dir | |
struct dentry * | old_dentry | |
const struct path * | new_dir | |
struct dentry * | new_dentry |
357 | error = 0 |
359 | If Not path_mediated_fs(old_dentry) Then Return 0 |
363 | If Not unconfined(label) Then |
372 | error = aa_path_perm(OP_RENAME_SRC, label, & old_path, 0, MAY_READ | meta read | MAY_WRITE | meta write | AA_MAY_DELETE, & cond) |
376 | If Not error Then error = aa_path_perm(OP_RENAME_DEST, label, & new_path, 0, MAY_WRITE | meta write | AA_MAY_CREATE, & cond) |
384 | Return error |
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 |