aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/ice40-spi.c
diff options
context:
space:
mode:
authorHyunchul Lee <[email protected]>2021-09-24 15:06:16 +0000
committerSteve French <[email protected]>2021-09-25 02:25:23 +0000
commit265fd1991c1db85fbabaad4946ca0e63e2ae688d (patch)
treef243e175b7a357f16b0b8494268c2b1e82996d21 /drivers/fpga/ice40-spi.c
parentksmbd: remove follow symlinks support (diff)
downloadkernel-265fd1991c1db85fbabaad4946ca0e63e2ae688d.tar.gz
kernel-265fd1991c1db85fbabaad4946ca0e63e2ae688d.zip
ksmbd: use LOOKUP_BENEATH to prevent the out of share access
instead of removing '..' in a given path, call kern_path with LOOKUP_BENEATH flag to prevent the out of share access. ran various test on this: smb2-cat-async smb://127.0.0.1/homes/../out_of_share smb2-cat-async smb://127.0.0.1/homes/foo/../../out_of_share smbclient //127.0.0.1/homes -c "mkdir ../foo2" smbclient //127.0.0.1/homes -c "rename bar ../bar" Cc: Ronnie Sahlberg <[email protected]> Cc: Ralph Boehme <[email protected]> Tested-by: Steve French <[email protected]> Tested-by: Namjae Jeon <[email protected]> Acked-by: Namjae Jeon <[email protected]> Signed-off-by: Hyunchul Lee <[email protected]> Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'drivers/fpga/ice40-spi.c')
0 files changed, 0 insertions, 0 deletions