mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 02:20:12 +01:00
core: increase limit of open file descriptors for NetworkManager.service
Note that POSIX select() can only handle up to 1024 descriptors. That
means, our code (and the libraries that we use) must not use select().
Note that libndp uses select(), which means NetworkManager will crash
when using file descriptors larger than 1023. On the other hand,
depriving NetworkManager of file descriptors will also crash it.
So libndp must be fixed ([1]).
[1] https://listman.redhat.com/archives/libndp-list/2021-February/msg00000.html
https://bugzilla.redhat.com/show_bug.cgi?id=1926599
(cherry picked from commit a708a172a6)
This commit is contained in:
parent
f7873997c7
commit
2ca405fa9b
1 changed files with 4 additions and 0 deletions
|
|
@ -19,6 +19,10 @@ CapabilityBoundingSet=CAP_NET_ADMIN CAP_DAC_OVERRIDE CAP_NET_RAW CAP_NET_BIND_SE
|
|||
ProtectSystem=true
|
||||
ProtectHome=read-only
|
||||
|
||||
# We require file descriptors for DHCP etc. When activating many interfaces,
|
||||
# the default limit of 1024 is easily reached.
|
||||
LimitNOFILE=65536
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Also=NetworkManager-dispatcher.service
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue