Re: [PATCH v10 5/5] overlayfs: override_creds=off option bypass creator_cred

2019-07-25 Thread Mark Salyzyn
On 7/24/19 11:14 PM, Amir Goldstein wrote: +void ovl_revert_creds(const struct cred *old_cred) +{ + if (old_cred) + revert_creds(old_cred); +} + Mark, Not sure if you have seen my "shutdown" patches: https://lore.kernel.org/linux-fsdevel/20190715133839.9878-4-amir7...@gmail.

Re: [PATCH v10 5/5] overlayfs: override_creds=off option bypass creator_cred

2019-07-24 Thread Amir Goldstein
On Wed, Jul 24, 2019 at 10:57 PM Mark Salyzyn wrote: > > By default, all access to the upper, lower and work directories is the > recorded mounter's MAC and DAC credentials. The incoming accesses are > checked against the caller's credentials. > > If the principles of least privilege are applied,

[PATCH v10 5/5] overlayfs: override_creds=off option bypass creator_cred

2019-07-24 Thread Mark Salyzyn
By default, all access to the upper, lower and work directories is the recorded mounter's MAC and DAC credentials. The incoming accesses are checked against the caller's credentials. If the principles of least privilege are applied, the mounter's credentials might not overlap the credentials of t