Ticket #23 (new defect)

Opened 1 year ago

Last modified 1 year ago

Rules are not reloaded (within vuurmuur_conf), when they are changed on disk

Reported by: tigerp@tigerp.net Assigned to: victor
Priority: major Milestone: undecided
Component: vuurmuur-conf Version: 0.5.72
Keywords: rules Cc:

Description

When a user keeps vuurmuur_conf open and changes the rules on the disk, then all the things that are done via vuurmuur_conf will overwrite the changes that were made on the disk.

Change History

09/17/07 23:58:52 changed by victor

Ideally, there would be a single process (server) having all data. But this is not the case, and all programs and program instances keep their own data. Vuurmuur and vuurmuur_log reload the data from disk on the SIGHUP signal. Vuurmuur even compares the new file from disk with the data in memory to signal changes. I think for vuurmuur_conf a simpler approach is possible. Just check if the rules/zone/service/etc file has been changed since it was loaded and if so reload it. The only problem when two ppl are editing the same file at the same time... what happens then?