mirror of https://github.com/torvalds/linux.git
When creating new files the security layer expects the original
credentials to be passed. When cleaning up the code this was accidently
changed to pass the mounter's credentials by relying on current->cred
which is already overriden at this point. Pass the original credentials
directly.
Reported-by: Ondrej Mosnacek <omosnace@redhat.com>
Reported-by: Paul Moore <paul@paul-moore.com>
Fixes:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| copy_up.c | ||
| dir.c | ||
| export.c | ||
| file.c | ||
| inode.c | ||
| namei.c | ||
| overlayfs.h | ||
| ovl_entry.h | ||
| params.c | ||
| params.h | ||
| readdir.c | ||
| super.c | ||
| util.c | ||
| xattrs.c | ||