summaryrefslogtreecommitdiffstats
path: root/scripts/subarch.include
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2020-12-14 15:26:14 +0100
committerMiklos Szeredi <mszeredi@redhat.com>2020-12-14 15:26:14 +0100
commit89bdfaf93d9157499c3a0d61f489df66f2dead7f (patch)
tree3917eaff11b85be312054dfaf44b8a6a60e6b966 /scripts/subarch.include
parentovl: check privs before decoding file handle (diff)
downloadlinux-89bdfaf93d9157499c3a0d61f489df66f2dead7f.tar.xz
linux-89bdfaf93d9157499c3a0d61f489df66f2dead7f.zip
ovl: make ioctl() safe
ovl_ioctl_set_flags() does a capability check using flags, but then the real ioctl double-fetches flags and uses potentially different value. The "Check the capability before cred override" comment misleading: user can skip this check by presenting benign flags first and then overwriting them to non-benign flags. Just remove the cred override for now, hoping this doesn't cause a regression. The proper solution is to create a new setxflags i_op (patches are in the works). Xfstests don't show a regression. Reported-by: Dmitry Vyukov <dvyukov@google.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com> Reviewed-by: Amir Goldstein <amir73il@gmail.com> Fixes: dab5ca8fd9dd ("ovl: add lsattr/chattr support") Cc: <stable@vger.kernel.org> # v4.19
Diffstat (limited to 'scripts/subarch.include')
0 files changed, 0 insertions, 0 deletions