context: add XKB_CONTEXT_NO_SECURE_GETENV flag (#312)
authorRonan Pigott <ronan@rjp.ie>
Fri, 16 Dec 2022 08:26:25 +0000 (01:26 -0700)
committerGitHub <noreply@github.com>
Fri, 16 Dec 2022 08:26:25 +0000 (10:26 +0200)
commitb4e81ca17240281fc802a662f5ce4e78a767c2b9
treee8b622bdcce814fa82ba885512074ca2a5cc12f0
parent9d1043dcb5c698c5d9615b1b8d76a190f73d57bb
context: add XKB_CONTEXT_NO_SECURE_GETENV flag (#312)

This flag is useful for clients that may have relatively benign capabilities
set, like CAP_SYS_NICE, that also want to use the xkb configuration from the
environment and user configs in XDG_CONFIG_HOME.

Fixes: https://github.com/xkbcommon/libxkbcommon/issues/308
Fixes: https://github.com/xkbcommon/libxkbcommon/issues/129
Signed-off-by: Ran Benita <ran@unusedvar.com>
include/xkbcommon/xkbcommon.h
include/xkbcommon/xkbregistry.h
src/compose/parser.c
src/compose/paths.c
src/compose/paths.h
src/compose/table.c
src/context-priv.c
src/context.c
src/context.h
src/registry.c
src/xkbcomp/rules.c