Lines Matching refs:cc
735 static int ovl_prep_cu_creds(struct dentry *dentry, struct ovl_cu_creds *cc) in ovl_prep_cu_creds() argument
739 cc->old = cc->new = NULL; in ovl_prep_cu_creds()
740 err = security_inode_copy_up(dentry, &cc->new); in ovl_prep_cu_creds()
744 if (cc->new) in ovl_prep_cu_creds()
745 cc->old = override_creds(cc->new); in ovl_prep_cu_creds()
750 static void ovl_revert_cu_creds(struct ovl_cu_creds *cc) in ovl_revert_cu_creds() argument
752 if (cc->new) { in ovl_revert_cu_creds()
753 revert_creds(cc->old); in ovl_revert_cu_creds()
754 put_cred(cc->new); in ovl_revert_cu_creds()
768 struct ovl_cu_creds cc; in ovl_copy_up_workdir() local
777 err = ovl_prep_cu_creds(c->dentry, &cc); in ovl_copy_up_workdir()
784 ovl_revert_cu_creds(&cc); in ovl_copy_up_workdir()
869 struct ovl_cu_creds cc; in ovl_copy_up_tmpfile() local
872 err = ovl_prep_cu_creds(c->dentry, &cc); in ovl_copy_up_tmpfile()
879 ovl_revert_cu_creds(&cc); in ovl_copy_up_tmpfile()