Commit 5ecebde
committed
Implement auditd network reconfigure
n src/auditd-listen.c, auditd_tcp_listen_reconfigure() updates some network
configuration parameters but leaves a FIXME when the TCP listener port or queue
changes.
Safe Reconfiguration Strategy
1. Enable networking – When tcp_listen_port changes from 0 to a valid
port, call auditd_tcp_listen_init() so the daemon begins accepting
connections.
2. Disable networking – If a listener is active and the new configuration
sets tcp_listen_port to 0, keep the current listener running and log via
audit_msg() that disabling networking requires a daemon restart.
3. Port or transport changes – If tcp_listen_port changes to a different
port or the transport value changes, log to syslog that a restart is needed
because clients cannot discover the new settings. Continue using the
existing listener.
4. Queue length changes – If tcp_listen_queue changes while the port stays
the same, restart the listener (auditd_tcp_listen_uninit() then
auditd_tcp_listen_init()). Notify via audit_msg() that existing
connections were dropped and should reconnect.
5. Unchanged settings – Continue updating other parameters (e.g.,
tcp_client_max_idle) without restarting the listener.1 parent 4cc7065 commit 5ecebde
1 file changed
+48
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1188 | 1188 | | |
1189 | 1189 | | |
1190 | 1190 | | |
1191 | | - | |
| 1191 | + | |
1192 | 1192 | | |
| 1193 | + | |
1193 | 1194 | | |
1194 | | - | |
| 1195 | + | |
1195 | 1196 | | |
1196 | 1197 | | |
1197 | | - | |
1198 | | - | |
| 1198 | + | |
| 1199 | + | |
1199 | 1200 | | |
1200 | 1201 | | |
1201 | 1202 | | |
1202 | 1203 | | |
1203 | | - | |
1204 | | - | |
| 1204 | + | |
| 1205 | + | |
1205 | 1206 | | |
1206 | 1207 | | |
1207 | 1208 | | |
1208 | 1209 | | |
1209 | 1210 | | |
| 1211 | + | |
1210 | 1212 | | |
1211 | | - | |
1212 | | - | |
1213 | | - | |
1214 | | - | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
1215 | 1250 | | |
| 1251 | + | |
1216 | 1252 | | |
1217 | | - | |
1218 | | - | |
| 1253 | + | |
| 1254 | + | |
1219 | 1255 | | |
1220 | 1256 | | |
1221 | 1257 | | |
0 commit comments