Pārlūkot izejas kodu

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);
Jean-Philippe Ouellet 7 gadi atpakaļ
vecāks
revīzija
f6e00adebe
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      qubesmanager/log_dialog.py

+ 1 - 1
qubesmanager/log_dialog.py

@@ -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!")