Home
last modified time | relevance | path

Searched refs:old_path (Results 1 – 5 of 5) sorted by relevance

/security/apparmor/
Dmount.c425 struct path old_path; in aa_bind_mount() local
436 error = kern_path(dev_name, LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT, &old_path); in aa_bind_mount()
442 match_mnt(profile, path, buffer, &old_path, old_buffer, in aa_bind_mount()
445 path_put(&old_path); in aa_bind_mount()
478 struct path old_path; in aa_move_mount() local
487 error = kern_path(orig_name, LOOKUP_FOLLOW, &old_path); in aa_move_mount()
493 match_mnt(profile, path, buffer, &old_path, old_buffer, in aa_move_mount()
496 path_put(&old_path); in aa_move_mount()
609 const struct path *old_path, in build_pivotroot() argument
620 AA_BUG(!old_path); in build_pivotroot()
[all …]
Dlsm.c354 struct path old_path = { .mnt = old_dir->mnt, in apparmor_path_rename() local
362 error = aa_path_perm(OP_RENAME_SRC, label, &old_path, 0, in apparmor_path_rename()
561 static int apparmor_sb_pivotroot(const struct path *old_path, in apparmor_sb_pivotroot() argument
569 error = aa_pivotroot(label, old_path, new_path); in apparmor_sb_pivotroot()
/security/apparmor/include/
Dmount.h47 int aa_pivotroot(struct aa_label *label, const struct path *old_path,
/security/tomoyo/
Dtomoyo.c426 static int tomoyo_sb_pivotroot(const struct path *old_path, const struct path *new_path) in tomoyo_sb_pivotroot() argument
428 return tomoyo_path2_perm(TOMOYO_TYPE_PIVOT_ROOT, new_path, old_path); in tomoyo_sb_pivotroot()
/security/
Dsecurity.c868 int security_sb_pivotroot(const struct path *old_path, const struct path *new_path) in security_sb_pivotroot() argument
870 return call_int_hook(sb_pivotroot, 0, old_path, new_path); in security_sb_pivotroot()