Make inter-appviewer lock permissions consistent

Currently in gui-daemon/xside.c (only other holder of the lock):
    g->inter_appviewer_lock_fd = open("/var/run/qubes/appviewer.lock",
        O_RDWR | O_CREAT, 0666);
    ...
    /* ignore possible errors */
    fchmod(g->inter_appviewer_lock_fd, 0666);
This commit is contained in:
Jean-Philippe Ouellet 2016-11-26 14:38:38 -05:00
parent 88eedc1a43
commit f6e00adebe

View File

@ -74,7 +74,7 @@ def copy_text_to_qubes_clipboard(text):
#inter-appviewer lock
try:
fd = os.open("/var/run/qubes/appviewer.lock", os.O_RDWR|os.O_CREAT, 0600)
fd = os.open("/var/run/qubes/appviewer.lock", os.O_RDWR|os.O_CREAT, 0666)
fcntl.flock(fd, fcntl.LOCK_EX)
except IOError:
QMessageBox.warning (None, "Warning!", "Error while accessing Qubes clipboard!")