summaryrefslogtreecommitdiffstats
path: root/src/monitor
Commit message (Collapse)AuthorAgeFilesLines
* monitor: set debug level when unable to load configurationPavel Březina2012-08-071-0/+6
| | | | | | | | | https://fedorahosted.org/sssd/ticket/1345 When the monitor is unable to load configuration and non debug level is set (e.g. when sssd is started via 'service'), none message was saved into logs. This patch forces debug messages to be written in this scenario.
* Add end of line to debug messagePavel Březina2012-08-071-2/+2
|
* PAC responder: add basic infrastructureSumit Bose2012-06-211-1/+1
| | | | | This adds only the basic outline of the PAC responder, it won't support any operations, it will just start and initialize itself.
* Move some debug lines to new debug log levelsStef Walter2012-06-201-2/+2
| | | | | | | * These are common lines of debug output when starting up sssd https://bugzilla.redhat.com/show_bug.cgi?id=811113
* Convert read and write operations to sss_atomic_readJakub Hrozek2012-04-202-32/+29
| | | | https://fedorahosted.org/sssd/ticket/1209
* Make the monitor SIGKILL time configurableJakub Hrozek2012-04-201-3/+23
| | | | https://fedorahosted.org/sssd/ticket/1119
* netlink integration: ensure that interface name is NULL-terminatedJakub Hrozek2012-04-091-1/+2
| | | | | | In the unlikely case that the interface name was IFNAMSIZ bytes long or longer, strncpy wouldn't NULL-terminate the buffer. Copy one byte less to ensure the buffer is NULL-terminated.
* libnl: fix the path to phy80211 subdirectoryJakub Hrozek2012-02-231-4/+20
|
* Don't give memory context in confdb where not neededJan Zeleny2012-02-212-5/+5
|
* remove unused functionJakub Hrozek2012-02-211-20/+0
|
* SSH: ResponderJan Cholasta2012-02-071-1/+2
|
* AUTOFS: responderJakub Hrozek2012-02-051-1/+1
|
* MONITOR: use sigchld handler for monitoring SSSD servicesStephen Gallagher2011-12-201-177/+159
|
* SUDO Integration - responderPavel Březina2011-12-161-1/+1
|
* Cancel ping_check if service goes awayJakub Hrozek2011-12-131-1/+14
| | | | https://fedorahosted.org/sssd/ticket/1090
* Added sssd --version optionPavel Březina2011-12-081-2/+10
| | | | https://fedorahosted.org/sssd/ticket/953
* Set more strict permissions on keyringSimo Sorce2011-11-221-0/+27
| | | | | We want to confine access to the keyring to the current process and not let root easily peek into the keyring contents.
* MONITOR: fix timeout conversionStephen Gallagher2011-10-171-1/+1
|
* Append PID to sbus server socket name, let clients use a symlinkJakub Hrozek2011-10-131-1/+1
| | | | https://fedorahosted.org/sssd/ticket/1034
* Add option to follow symlinks to check_file()Jakub Hrozek2011-10-131-1/+1
|
* Multiline macro cleanupJakub Hrozek2011-09-281-1/+2
| | | | | | | | | | This is mostly a cosmetic patch. The purpose of wrapping a multi-line macro in a do { } while(0) is to make the macro usable as a regular statement, not a compound statement. When the while(0) is terminated with a semicolon, the do { } while(0); block becomes a compound statement again.
* Fix wrong buffer size in has_phy_80211_subdir()Jakub Hrozek2011-09-201-2/+3
| | | | https://fedorahosted.org/sssd/ticket/1002
* MONITOR: Correctly detect lack of response from servicesStephen Gallagher2011-09-151-21/+26
| | | | | | | | | | We were incorrectly using DBUS_ERROR_TIMEOUT here. The correct behaviour is to check for DBUS_ERROR_NO_REPLY. This way we will properly handle the three-tries in the tasks_check_handler(). Additionally, we weren't properly handling failure counts correctly, meaning we weren't restarting stuck services in a timely manner.
* DEBUG timestamps offer higher precisionPavel Březina2011-09-081-2/+26
| | | | | | | https://fedorahosted.org/sssd/ticket/956 Added: --debug-microseconds=0/1 Added: debug_microseconds to sssd.conf
* Subscribe to netlink route and addr messagesJakub Hrozek2011-09-061-5/+244
| | | | | | | | https://fedorahosted.org/sssd/ticket/955 In addition to carrier up messages, also subscribe to any messages describing that an address has been added or removed or routing table changed.
* Discard carrier messages from non-ethernet devicesJakub Hrozek2011-09-061-3/+155
| | | | | | | | | IFF_LOWER_UP has no meaning for wireless interfaces, it can mean that an association has been made with an access point, but it does not mean that an addressing has been completed. This patch discards "carrier up" messages from interfaces that do not look like ethernet devices.
* Change libnl monitor callback to only signal going onlineJakub Hrozek2011-09-063-14/+5
| | | | | | This feature was not used and would probably never be used, because it is much safer to rely on online actions to time out. Moreover, it would make implementing the new features more complex.
* Add option to specify the kerberos replay cache dirStephen Gallagher2011-09-021-0/+31
| | | | | | | Adds a configure option to set the distribution default as well as an sssd.conf option to override it. https://fedorahosted.org/sssd/ticket/980
* --debug-timestamps=1 is not passed to providersPavel Březina2011-08-251-44/+69
| | | | | | https://fedorahosted.org/sssd/ticket/972 --debug-timestamps=1 is now passed to providers
* New DEBUG facility - SSSDBG_UNRESOLVED changed from -1 to 0Pavel Březina2011-08-251-3/+7
| | | | | | | | | | | | | | | | | | | | | Removed: SSS_UNRESOLVED_DEBUG_LEVEL (completely replaced with SSSDBG_UNRESOLVED) Added new macro: CONVERT_AND_SET_DEBUG_LEVEL(new_value) Changes unresolved debug level value (SSSDBG_UNRESOLVED) from -1 to 0 so DEBUG macro could be reduced by one condition. Anyway, it has a minor effect, every time you want to load debug_level from command line parameters, you have to use following pattern: /* Set debug level to invalid value so we can deside if -d 0 was used. */ debug_level = SSSDBG_INVALID; pc = poptGetContext(argv[0], argc, argv, long_options, 0); while((opt = poptGetNextOpt(pc)) != -1) { ... } CONVERT_AND_SET_DEBUG_LEVEL(debug_level);
* New DEBUG facility - conversionPavel Březina2011-08-252-3/+5
| | | | | | | | | | https://fedorahosted.org/sssd/ticket/925 Conversion of the old debug_level format to the new one. (only where it was necessary) Removed: SSS_DEFAULT_DEBUG_LEVEL (completely replaced with SSSDBG_DEFAULT)
* Fall back to polling when inotify failsJan Zeleny2011-06-241-28/+68
|
* Import config.h earlierStephen Gallagher2011-05-231-2/+1
| | | | | | On RHEL 5 and other older platforms, failing to set _GNU_SOURCE early would cause some functions - such as strndup() - to be unavailable.
* Set _GNU_SOURCE globallySumit Bose2011-05-231-1/+0
|
* Fixed --debug-to-files for nss and pam servicesJan Zeleny2011-05-161-4/+4
| | | | | This error caused that monitor didn't pass --debug-to-files option to nss and pam services when creating them.
* Allow changing the log level without restartStephen Gallagher2011-05-063-7/+28
| | | | | | We will now re-read the confdb debug_level value when processing the monitor_common_logrotate() function, which occurs when the monitor receives a SIGHUP.
* Create common sss_monitor_init()Stephen Gallagher2011-05-062-0/+49
| | | | | | | | This was implemented almost identically for both the responders and the providers. It is easier to maintain as a single routine. This patch also adds the ability to provide a private context to attach to the sbus_connection for later use.
* Override config file debug_level with command-lineStephen Gallagher2011-05-041-13/+50
| | | | | | | | | | | This patch also makes the following changes: 1) The [sssd] debug_level setting no longer acts as a default for all other sections. 2) We will now skip passing the debug argument to the child processes from the master unless the SSSD was run with a command-line argument for the debug level. https://fedorahosted.org/sssd/ticket/764
* Remove support for pre-1.1 netlinkStephen Gallagher2011-01-171-32/+0
| | | | | | | Netlink 1.0 and older is buggy and unreliable, occasionally causing tight-loops. We're no longer going to try to support it. https://fedorahosted.org/sssd/ticket/755
* Clarify nscd warningStephen Gallagher2011-01-171-4/+5
| | | | | | Removes the level-zero DEBUG message and modifies the syslog message to explain that NSCD is safe for maps that SSSD does not (yet) support.
* Prevent uninitialized value error in monitor_quitStephen Gallagher2010-12-141-0/+1
| | | | https://fedorahosted.org/sssd/ticket/724
* Set up signal handlers before initializing sysdbStephen Gallagher2010-12-021-38/+38
| | | | | | | | | | | A temporary signal handler for SIGTERM is set up in server_setup() that calls exit() from within a pure signal handler. This causes a race condition where it's possible that if the SSSD is restarted immediately while it is still initializing the sysdb caches for the first time, it can leave the cache in a corrupt and unusable state. https://bugzilla.redhat.com/show_bug.cgi?id=658444
* Resend SIGTERM if child doesn't terminateStephen Gallagher2010-12-021-24/+40
| | | | | | | | | There is a race condition where if we send a SIGTERM before the kernel has scheduled the child, it may be lost, and the child will not terminate and will leave the monitor hung in wait(). This patch alters this behavior so that we will send the SIGTERM again every 10ms and check the wait() in a nonblocking manner.
* Daemonize by defaultSumit Bose2010-12-011-0/+4
|
* Fix a typo on setup_netlink()Sumit Bose2010-11-241-1/+1
|
* Add SIGUSR2 to reset offline statusSumit Bose2010-11-221-0/+29
|
* Wait for all children to exitStephen Gallagher2010-11-181-2/+61
| | | | | Previously, there was a race-condition where the monitor might terminate before its children.
* Log startup errors to syslogStephen Gallagher2010-11-161-7/+9
|
* Handle errors during log reopening betterStephen Gallagher2010-11-051-1/+2
|
* Write log opening failures to the syslogStephen Gallagher2010-10-191-1/+1
| | | | | If there is a problem with reopening the logs, it can be an audit trail issue.