diff options
| author | Vinicius Costa Gomes <vinicius.gomes@intel.com> | 2024-11-05 11:35:13 -0800 |
|---|---|---|
| committer | Amir Goldstein <amir73il@gmail.com> | 2024-11-11 10:45:04 +0100 |
| commit | fc5a1d2287bf23f67da1fc7a178cf26c5e6ba9d0 (patch) | |
| tree | fd28954219ab7b03dca47b63b4dff89488cd81b7 /fs/overlayfs/overlayfs.h | |
| parent | fs/backing-file: Convert to revert/override_creds_light() (diff) | |
| download | linux-fc5a1d2287bf23f67da1fc7a178cf26c5e6ba9d0.tar.gz linux-fc5a1d2287bf23f67da1fc7a178cf26c5e6ba9d0.zip | |
ovl: use wrapper ovl_revert_creds()
Introduce ovl_revert_creds() wrapper of revert_creds() to
match callers of ovl_override_creds().
Suggested-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Diffstat (limited to 'fs/overlayfs/overlayfs.h')
| -rw-r--r-- | fs/overlayfs/overlayfs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/overlayfs/overlayfs.h b/fs/overlayfs/overlayfs.h index 0bfe35da4b7b..7b7a6e3a43e2 100644 --- a/fs/overlayfs/overlayfs.h +++ b/fs/overlayfs/overlayfs.h @@ -429,6 +429,7 @@ int ovl_want_write(struct dentry *dentry); void ovl_drop_write(struct dentry *dentry); struct dentry *ovl_workdir(struct dentry *dentry); const struct cred *ovl_override_creds(struct super_block *sb); +void ovl_revert_creds(const struct cred *old_cred); static inline const struct cred *ovl_creds(struct super_block *sb) { |
