Home
last modified time | relevance | path

Searched refs:old_cred (Results 1 – 12 of 12) sorted by relevance

/fs/overlayfs/
Dfile.c29 const struct cred *old_cred; in ovl_open_realfile() local
32 old_cred = ovl_override_creds(inode->i_sb); in ovl_open_realfile()
35 ovl_revert_creds(inode->i_sb, old_cred); in ovl_open_realfile()
148 const struct cred *old_cred; in ovl_llseek() local
177 old_cred = ovl_override_creds(inode->i_sb); in ovl_llseek()
179 ovl_revert_creds(inode->i_sb, old_cred); in ovl_llseek()
232 const struct cred *old_cred; in ovl_read_iter() local
242 old_cred = ovl_override_creds(file_inode(file)->i_sb); in ovl_read_iter()
245 ovl_revert_creds(file_inode(file)->i_sb, old_cred); in ovl_read_iter()
259 const struct cred *old_cred; in ovl_write_iter() local
[all …]
Dinode.c21 const struct cred *old_cred; in ovl_setattr() local
62 old_cred = ovl_override_creds(dentry->d_sb); in ovl_setattr()
64 ovl_revert_creds(dentry->d_sb, old_cred); in ovl_setattr()
147 const struct cred *old_cred; in ovl_getattr() local
157 old_cred = ovl_override_creds(dentry->d_sb); in ovl_getattr()
266 ovl_revert_creds(dentry->d_sb, old_cred); in ovl_getattr()
275 const struct cred *old_cred; in ovl_permission() local
292 old_cred = ovl_override_creds(inode->i_sb); in ovl_permission()
300 ovl_revert_creds(inode->i_sb, old_cred); in ovl_permission()
309 const struct cred *old_cred; in ovl_get_link() local
[all …]
Ddir.c539 const struct cred *old_cred, *hold_cred = NULL; in ovl_create_or_link() local
547 old_cred = ovl_override_creds(dentry->d_sb); in ovl_create_or_link()
567 old_cred ? old_cred : current_cred(), in ovl_create_or_link()
583 ovl_revert_creds(dentry->d_sb, old_cred ?: hold_cred); in ovl_create_or_link()
584 if (old_cred && hold_cred) in ovl_create_or_link()
656 const struct cred *old_cred; in ovl_set_link_redirect() local
659 old_cred = ovl_override_creds(dentry->d_sb); in ovl_set_link_redirect()
661 ovl_revert_creds(dentry->d_sb, old_cred); in ovl_set_link_redirect()
828 const struct cred *old_cred; in ovl_do_remove() local
852 old_cred = ovl_override_creds(dentry->d_sb); in ovl_do_remove()
[all …]
Dutil.c45 void ovl_revert_creds(struct super_block *sb, const struct cred *old_cred) in ovl_revert_creds() argument
47 if (old_cred) in ovl_revert_creds()
48 revert_creds(old_cred); in ovl_revert_creds()
761 const struct cred *old_cred; in ovl_nlink_start() local
794 old_cred = ovl_override_creds(dentry->d_sb); in ovl_nlink_start()
802 ovl_revert_creds(dentry->d_sb, old_cred); in ovl_nlink_start()
816 const struct cred *old_cred; in ovl_nlink_end() local
818 old_cred = ovl_override_creds(dentry->d_sb); in ovl_nlink_end()
820 ovl_revert_creds(dentry->d_sb, old_cred); in ovl_nlink_end()
Dnamei.c819 const struct cred *old_cred; in ovl_lookup() local
849 old_cred = ovl_override_creds(dentry->d_sb); in ovl_lookup()
1087 ovl_revert_creds(dentry->d_sb, old_cred); in ovl_lookup()
1114 ovl_revert_creds(dentry->d_sb, old_cred); in ovl_lookup()
1122 const struct cred *old_cred; in ovl_lower_positive() local
1138 old_cred = ovl_override_creds(dentry->d_sb); in ovl_lower_positive()
1168 ovl_revert_creds(dentry->d_sb, old_cred); in ovl_lower_positive()
Dreaddir.c272 const struct cred *old_cred; in ovl_check_whiteouts() local
274 old_cred = ovl_override_creds(rdd->dentry->d_sb); in ovl_check_whiteouts()
289 ovl_revert_creds(rdd->dentry->d_sb, old_cred); in ovl_check_whiteouts()
917 const struct cred *old_cred; in ovl_check_empty_dir() local
919 old_cred = ovl_override_creds(dentry->d_sb); in ovl_check_empty_dir()
921 ovl_revert_creds(dentry->d_sb, old_cred); in ovl_check_empty_dir()
Dcopy_up.c854 const struct cred *old_cred = ovl_override_creds(dentry->d_sb); in ovl_copy_up_flags() local
889 ovl_revert_creds(dentry->d_sb, old_cred); in ovl_copy_up_flags()
/fs/sdcardfs/
Dinode.c30 const struct cred *old_cred; in override_fsids() local
48 old_cred = override_creds(cred); in override_fsids()
50 return old_cred; in override_fsids()
53 void revert_fsids(const struct cred *old_cred) in revert_fsids() argument
58 revert_creds(old_cred); in revert_fsids()
Dsdcardfs.h130 void revert_fsids(const struct cred *old_cred);
/fs/
Dcoredump.c571 const struct cred *old_cred; in do_coredump() local
621 old_cred = override_creds(cred); in do_coredump()
805 revert_creds(old_cred); in do_coredump()
Dopen.c359 const struct cred *old_cred; in do_faccessat() local
406 old_cred = override_creds(override_cred); in do_faccessat()
449 revert_creds(old_cred); in do_faccessat()
Dio_uring.c1773 const struct cred *old_cred; in io_poll_complete_work() local
1776 old_cred = override_creds(ctx->creds); in io_poll_complete_work()
1801 revert_creds(old_cred); in io_poll_complete_work()
2174 const struct cred *old_cred; in io_sq_wq_submit_work() local
2179 old_cred = override_creds(ctx->creds); in io_sq_wq_submit_work()
2287 revert_creds(old_cred); in io_sq_wq_submit_work()
2693 const struct cred *old_cred; in io_sq_thread() local
2703 old_cred = override_creds(ctx->creds); in io_sq_thread()
2814 revert_creds(old_cred); in io_sq_thread()