aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Krempa <pkrempa@redhat.com>2011-11-25 16:25:14 +0100
committerPeter Krempa <pkrempa@redhat.com>2012-02-27 15:05:17 +0100
commit3f4238d7719ac6862490416ec9568074feded9de (patch)
treebe6e9b74f8a5c0844bfb9bcc63b296aebfa42f19 /po/POTFILES.in
parentfdstream: Add internal callback on stream close (diff)
downloadlibvirt-3f4238d7719ac6862490416ec9568074feded9de.tar.gz
libvirt-3f4238d7719ac6862490416ec9568074feded9de.tar.bz2
libvirt-3f4238d7719ac6862490416ec9568074feded9de.zip
util: Add helpers for safe domain console operations
This patch adds a set of functions used in creating console streams for domains using PTYs and ensures mutually exclusive access to the PTYs. If mutually exclusive access is not used, two clients may open the same console, which results in corruption on both clients as both of them race to read data from the PTY. Two approaches are used to ensure this: 1) Internal data structure holding open PTYs. This is used internally and enables the user to forcibly terminate another console connection eg. when somebody leaves the console open on another host. 2) UUCP style lock files: This uses UUCP lock files according to the FHS ( http://www.pathname.com/fhs/pub/fhs-2.3.html#VARLOCKLOCKFILES ) to check if other programs (like minicom) are not using the pty device of the console. This feature is disabled by default and may be enabled using configure parameter --with-console-lock-files=/path/to/lock/file/directory or --with-console-lock-files=auto (which tries to infer the location from OS used (currently only linux). On usual linux systems, normal users may not write to the /var/lock directory containing the locks. This poses problems while in session mode. If the current user has no access to the lockfile directory, check for presence of the file is still done, but no lock file is created. This does NOT result in an error.
Diffstat (limited to 'po/POTFILES.in')
-rw-r--r--po/POTFILES.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 0eff13bcb..16a3f9e36 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -17,6 +17,7 @@ src/conf/nwfilter_params.c
src/conf/secret_conf.c
src/conf/storage_conf.c
src/conf/storage_encryption_conf.c
+src/conf/virconsole.c
src/cpu/cpu.c
src/cpu/cpu_generic.c
src/cpu/cpu_map.c