Commit d73c167
socket: Split out a getsockname helper for io_uring
Similar to getsockopt, split out a helper to check security and issue
the operation from the main handler that can be used by io_uring.
Signed-off-by: Gabriel Krisman Bertazi <krisman@suse.de>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 4677e78 commit d73c167
2 files changed
Lines changed: 22 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
| 456 | + | |
| 457 | + | |
456 | 458 | | |
457 | 459 | | |
458 | 460 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2127 | 2127 | | |
2128 | 2128 | | |
2129 | 2129 | | |
2130 | | - | |
2131 | | - | |
2132 | | - | |
2133 | | - | |
2134 | | - | |
2135 | | - | |
| 2130 | + | |
| 2131 | + | |
2136 | 2132 | | |
2137 | | - | |
2138 | 2133 | | |
2139 | | - | |
2140 | 2134 | | |
2141 | 2135 | | |
2142 | | - | |
2143 | | - | |
2144 | | - | |
2145 | | - | |
2146 | | - | |
2147 | | - | |
2148 | 2136 | | |
2149 | 2137 | | |
2150 | 2138 | | |
2151 | 2139 | | |
2152 | 2140 | | |
2153 | 2141 | | |
2154 | | - | |
2155 | 2142 | | |
2156 | 2143 | | |
2157 | 2144 | | |
2158 | | - | |
2159 | 2145 | | |
2160 | 2146 | | |
2161 | 2147 | | |
2162 | 2148 | | |
| 2149 | + | |
| 2150 | + | |
| 2151 | + | |
| 2152 | + | |
| 2153 | + | |
| 2154 | + | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
| 2159 | + | |
| 2160 | + | |
| 2161 | + | |
| 2162 | + | |
| 2163 | + | |
| 2164 | + | |
| 2165 | + | |
| 2166 | + | |
2163 | 2167 | | |
2164 | 2168 | | |
2165 | 2169 | | |
| |||
0 commit comments