Commit 3873fa4
committed
fix: accept unimplemented socket options instead of erroring
The 0.2.0 setsockopt/getsockopt hardening changed silent no-ops into
errors for unrecognised options. This broke DNS resolution because
musl's resolver sets IP_RECVERR (level=0, opt=11) on its UDP socket
and aborts when the setsockopt fails.
Revert to accepting unknown options silently — for a socket-proxy
pattern the guest OS manages its own socket semantics, so unknown
options are harmless configuration hints, not security boundaries.
Signed-off-by: danbugs <danilochiarlone@gmail.com>1 parent cb048d7 commit 3873fa4
1 file changed
Lines changed: 19 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1176 | 1176 | | |
1177 | 1177 | | |
1178 | 1178 | | |
1179 | | - | |
1180 | | - | |
1181 | | - | |
1182 | | - | |
1183 | | - | |
1184 | | - | |
1185 | | - | |
1186 | | - | |
1187 | | - | |
1188 | | - | |
1189 | | - | |
1190 | | - | |
1191 | | - | |
1192 | | - | |
1193 | | - | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
1194 | 1190 | | |
1195 | 1191 | | |
1196 | 1192 | | |
| |||
1203 | 1199 | | |
1204 | 1200 | | |
1205 | 1201 | | |
1206 | | - | |
1207 | | - | |
1208 | | - | |
1209 | | - | |
1210 | | - | |
1211 | | - | |
1212 | | - | |
1213 | | - | |
1214 | | - | |
1215 | | - | |
1216 | | - | |
1217 | | - | |
1218 | | - | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
1219 | 1210 | | |
1220 | 1211 | | |
1221 | 1212 | | |
| |||
0 commit comments