qrexec: make the log writable by qubes group

Otherwise if VM was started as root, it will never start as normal user
again.
This commit is contained in:
Marek Marczykowski-Górecki 2015-03-20 03:06:06 +01:00
parent 04816e014b
commit b07475efea

View File

@ -273,7 +273,7 @@ void init(int xid)
umask(0007); // make the log readable by the "qubes" group
logfd =
open(qrexec_error_log_name, O_WRONLY | O_CREAT | O_TRUNC,
0640);
0660);
if (logfd < 0) {
perror("open");