Commit 1cdeca6
ksmbd: move leading slash check to smb2_get_name()
If the directory name in the root of the share starts with
character like 镜(0x955c) or Ṝ(0x1e5c), it (and anything inside)
cannot be accessed. The leading slash check must be checked after
converting unicode to nls string.
Cc: [email protected]
Signed-off-by: Namjae Jeon <[email protected]>
Signed-off-by: Steve French <[email protected]>1 parent 83a7eef commit 1cdeca6
1 file changed
+6
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
633 | 639 | | |
634 | 640 | | |
635 | 641 | | |
| |||
2842 | 2848 | | |
2843 | 2849 | | |
2844 | 2850 | | |
2845 | | - | |
2846 | | - | |
2847 | | - | |
2848 | | - | |
2849 | | - | |
2850 | | - | |
2851 | | - | |
2852 | 2851 | | |
2853 | 2852 | | |
2854 | 2853 | | |
2855 | 2854 | | |
2856 | 2855 | | |
2857 | | - | |
2858 | | - | |
2859 | 2856 | | |
2860 | 2857 | | |
2861 | 2858 | | |
| |||
0 commit comments