summaryrefslogtreecommitdiffstats
path: root/proxy/src/gssproxy.c
Commit message (Collapse)AuthorAgeFilesLines
* Add options to specify a debug levelSimo Sorce2015-12-011-4/+7
| | | | | | | | Print only messages that are at that level or lower. Also add timestamps to debug messages. Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Robbie Harwood <rharwood@redhat.com>
* Fix several leaksRobbie Harwood2015-11-191-0/+1
| | | | | Signed-off-by: Robbie Harwood <rharwood@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
* Reload config on SIGHUPRobbie Harwood2015-09-151-33/+144
| | | | | | | | For sockets, we will only reinitialize those that have changed. Additionally, the old text about SIGHUP behavior was incorrect. Signed-off-by: Robbie Harwood <rharwood@redhat.com> Ticket: https://fedorahosted.org/gss-proxy/ticket/125
* Allow configdir and configfile to be specified togetherRobbie Harwood2015-09-141-7/+0
| | | | | | | Not being able to do this is a relic of a previous design. Signed-off-by: Robbie Harwood <rharwood@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
* Fix formatting on noncompliant copyright linesRobbie Harwood2015-09-041-24/+1
| | | | | Signed-off-by: Robbie Harwood <rharwood@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
* Add support for config directoriesRobbie Harwood (frozencemetery)2015-09-041-0/+11
| | | | | | | | | | Option '-C|--configdir' has been added, and defaults to /etc/gssproxy. File "gssproxy.conf" and all files of the form "##-foo.conf" will be read from that directory. Ticket: https://fedorahosted.org/gss-proxy/ticket/122 Signed-off-by: Robbie Harwood <rharwood@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
* Add cmdline option to override default socketSimo Sorce2014-09-151-1/+6
| | | | | | | | This is especially useful for testing, but can be useful for custom configurations of gss-proxy as well (containers, chroots, etc..) Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Guenther Deschner <gdeschner@redhat.com>
* Block parent process until child is initialized.Simo Sorce2014-01-151-2/+9
| | | | | | | | | | | | This way the init system will not proceed starting dependencies until gssproxy is actually ready to serve requests. In particular this is used to make sure the nfsd proc file has been touched before the nfsd server is started. Resolves: https://fedorahosted.org/gss-proxy/ticket/114 Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Günther Deschner <gdeschner@redhat.com>
* Add support for dropping privilegesSimo Sorce2014-01-141-0/+5
| | | | | | | | | | | | | | If the 'proxy user' configuation option is set in the [gssproxy] section then GSS Proxy will drop privileges to the specified after setting up all the sockets. Care must be taken to make sure all the resources the daemon need access to (keytabs, ccache directories, etc..) are accessible as the proxy user. Implements: https://fedorahosted.org/gss-proxy/ticket/102 Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Günther Deschner <gdeschner@redhat.com>
* gssproxy: report an error message on event loop failure.Günther Deschner2013-06-031-0/+2
| | | | | Signed-off-by: Günther Deschner <gdeschner@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
* Add support for per-service socketsSimo Sorce2013-04-231-11/+30
| | | | | | | | This way different processes running as the same user can be configured as different servervices Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Günther Deschner <gdeschner@redhat.com>
* Fix resource leaks found by CoveritySimo Sorce2013-04-031-1/+1
| | | | Signed-off-by: Simo Sorce <simo@redhat.com>
* Write pid file at startup.Simo Sorce2013-03-221-0/+2
|
* Enable kernel support.Simo Sorce2013-03-221-0/+3
| | | | | | | | The Linux kernel now requires the gss-proxy to signal when it is available. This is done by writing 1 to the file /proc/net/rpc/use-gss-proxy Once this happens the kernel will try to attach to the gss-proxy socket and use it instead of the classic rpc.svcgssd daemon.
* Add free_config() and call it when server shuts down.Günther Deschner2012-06-251-0/+2
| | | | | | Guenther Signed-off-by: Simo Sorce <simo@redhat.com>
* Fix popt usage message for -d option.Günther Deschner2012-05-311-1/+1
| | | | | | Guenther Signed-off-by: Simo Sorce <simo@redhat.com>
* Debug: Add debugging macro and config optionsSimo Sorce2012-04-021-0/+7
| | | | Ticket #43
* Split gp_utils.h into proxy headers and commonly useful headersSimo Sorce2012-01-291-1/+1
|
* Refactor workers init so we can pass down gpctxSimo Sorce2012-01-191-2/+4
|
* Add worker threadsSimo Sorce2012-01-171-0/+7
|
* Add gssproxy_ctxSimo Sorce2012-01-171-4/+11
| | | | And store configuration context within it.
* add support for demonization optionSimo Sorce2012-01-141-1/+1
|
* Add utils to read a configuration fileSimo Sorce2012-01-141-12/+7
|
* Socket helpersSimo Sorce2012-01-041-0/+6
|
* Server initialization helpersSimo Sorce2012-01-041-3/+21
|
* Intial skeleton gssproxy daemonSimo Sorce2012-01-041-0/+91