[gdm] worker: Open standard output O_WRONLY
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] worker: Open standard output O_WRONLY
- Date: Fri, 17 Feb 2012 19:30:45 +0000 (UTC)
commit 3cc05da94447bd541619a460c2690f788cad34ec
Author: Ray Strode <rstrode redhat com>
Date: Fri Feb 17 14:27:09 2012 -0500
worker: Open standard output O_WRONLY
This makes SELinux happier.
See downstream report: https://bugzilla.redhat.com/show_bug.cgi?id=790144
https://bugzilla.gnome.org/show_bug.cgi?id=670317
daemon/gdm-session-worker.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c
index acf820c..45a06ce 100644
--- a/daemon/gdm-session-worker.c
+++ b/daemon/gdm-session-worker.c
@@ -1711,7 +1711,7 @@ _open_program_session_log (const char *filename)
rotate_logs (filename, MAX_LOGS);
- fd = g_open (filename, O_RDWR | O_APPEND | O_CREAT, 0600);
+ fd = g_open (filename, O_WRONLY | O_APPEND | O_CREAT, 0600);
if (fd < 0) {
char *temp_name;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]