[CONC-405] connection socket has no close-on-exec flag set Created: 2019-04-29 Updated: 2019-04-29 |
|
| Status: | Open |
| Project: | MariaDB Connector/C |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Krzysztof MaĆysa | Assignee: | Georg Richter |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Linux archlinux 5.0.9-arch1-1-ARCH #1 SMP PREEMPT Sat Apr 20 15:00:46 UTC 2019 x86_64 GNU/Linux Installed mariadb packages:
|
||
| Description |
|
After opening connection with mysql_real_connect(), the connection socket (the one that mysql_get_socket() returns) has no close-on-exec flag set. The following code is needed after calling mysql_real_connect() to get this flag set:
I suppose that this flag should be set by the connector, for security reasons. |