Lines Matching refs:cc
629 static int ovl_prep_cu_creds(struct dentry *dentry, struct ovl_cu_creds *cc) in ovl_prep_cu_creds() argument
633 cc->old = cc->new = NULL; in ovl_prep_cu_creds()
634 err = security_inode_copy_up(dentry, &cc->new); in ovl_prep_cu_creds()
638 if (cc->new) in ovl_prep_cu_creds()
639 cc->old = override_creds(cc->new); in ovl_prep_cu_creds()
644 static void ovl_revert_cu_creds(struct ovl_cu_creds *cc) in ovl_revert_cu_creds() argument
646 if (cc->new) { in ovl_revert_cu_creds()
647 revert_creds(cc->old); in ovl_revert_cu_creds()
648 put_cred(cc->new); in ovl_revert_cu_creds()
663 struct ovl_cu_creds cc; in ovl_copy_up_workdir() local
677 err = ovl_prep_cu_creds(c->dentry, &cc); in ovl_copy_up_workdir()
682 ovl_revert_cu_creds(&cc); in ovl_copy_up_workdir()
742 struct ovl_cu_creds cc; in ovl_copy_up_tmpfile() local
745 err = ovl_prep_cu_creds(c->dentry, &cc); in ovl_copy_up_tmpfile()
750 ovl_revert_cu_creds(&cc); in ovl_copy_up_tmpfile()