[Freeipa-devel] [PATCHES][SSSD] Config monitoring patches

Stephen Gallagher sgallagh at redhat.com
Wed Jun 24 12:24:32 UTC 2009


Patch 0001: Improvements to config file updates
1) Some text editors will create a new file and move it into place
on top of the existing file. When this happens, the kernel issues
an IN_IGNORE inotify event and automatically removes the watch
descriptor for that file. We'll handle the event and create a new
watch descriptor for the new file.

2) Some scripts may append new data to the config file in several
steps (such as calling echo "foo" >> sssd.conf several times). In
order to handle these scripts safely, we'll defer processing of
inotify events for one second after the first is detected. This
should be ample time for the remainder of the script to complete.
* This patch was submitted several days ago, but has not yet
been reviewed. I'm including it here because the other two
patches depend on it

Patch 0002: Monitor resolv.conf for changes

This patch updates the monitor_config_file() functions so that
they can monitor any number of files and invoke a specified
callback whenever they are modified.

When inotify is available, we will add an additional watch
descriptor to the inotify file descriptor.

When inotify is not available, the polling function will simply
loop to check each file in the monitor list.

When changes are discovered in resolv.conf, the monitor will send
a "resInit" signal to all of its known children. They are only
required to handle this function if they need updated DNS
information. Services that do not implement resInit should return
DBUS_ERROR_UNKNOWN_METHOD (rather than timing out) with no ill
effects.

Patch 0003: Implement resInit for monitor, NSS, PAM, DP and the backends
-- 
Stephen Gallagher
RHCE 804006346421761

Looking to carve out IT costs?
www.redhat.com/carveoutcosts/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Improvements-to-config-file-updates.patch
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20090624/a930cedc/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0002-Monitor-resolv.conf-for-changes.patch
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20090624/a930cedc/attachment-0001.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0003-Implement-resInit-for-monitor-NSS-PAM-DP-and-the.patch
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20090624/a930cedc/attachment-0002.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20090624/a930cedc/attachment.sig>


More information about the Freeipa-devel mailing list