diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-01-13 22:15:52 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-01-13 22:15:52 +0100 |
commit | 21cbcc1a8a5900af9e820b10d5c1b28fc803f947 (patch) | |
tree | 18c6cf18e2f96a18cce20936799c3ec1f3e249df /src/pulse/client-conf.c | |
parent | 3d6cc026e25ea3015ea989273ba69336a26ab686 (diff) |
client: introduce auto-connect-display= following the scheme of auto-connect-localhost=
Just connecting to a PA server just because X11's $DISPLAY is set might
be a security hole.
Diffstat (limited to 'src/pulse/client-conf.c')
-rw-r--r-- | src/pulse/client-conf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pulse/client-conf.c b/src/pulse/client-conf.c index 6c97802b..18fafe34 100644 --- a/src/pulse/client-conf.c +++ b/src/pulse/client-conf.c @@ -63,7 +63,8 @@ static const pa_client_conf default_conf = { .cookie_file = NULL, .cookie_valid = FALSE, .shm_size = 0, - .auto_connect_localhost = FALSE + .auto_connect_localhost = FALSE, + .auto_connect_display = FALSE }; pa_client_conf *pa_client_conf_new(void) { @@ -107,6 +108,7 @@ int pa_client_conf_load(pa_client_conf *c, const char *filename) { { "enable-shm", pa_config_parse_not_bool, &c->disable_shm, NULL }, { "shm-size-bytes", pa_config_parse_size, &c->shm_size, NULL }, { "auto-connect-localhost", pa_config_parse_bool, &c->auto_connect_localhost, NULL }, + { "auto-connect-display", pa_config_parse_bool, &c->auto_connect_display, NULL }, { NULL, NULL, NULL, NULL }, }; |