client/tools/osad/src/jabber_lib.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit b5495e93327076e60a7667e6491ead05d6528673
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Mon Aug 3 15:46:49 2009 +0200
514320 - on F10, write_files_pattern does not give us write.
The pid file does not need O_RDWR anyway, so let's just make it
O_APPEND.
Addressing:
avc: denied { read } for pid=3169 comm="osa-dispatcher"
name="osa-dispatcher.pid" dev=dm-0 ino=516358
scontext=unconfined_u:system_r:osa_dispatcher_t:s0
tcontext=unconfined_u:object_r:osa_dispatcher_var_run_t:s0 tclass=file
diff --git a/client/tools/osad/src/jabber_lib.py b/client/tools/osad/src/jabber_lib.py
index a5b2ae9..5c615ae 100644
--- a/client/tools/osad/src/jabber_lib.py
+++ b/client/tools/osad/src/jabber_lib.py
@@ -217,7 +217,7 @@ class Runner:
raise
try:
# Make sure we don't create the file world-writable (#162619)
- fd = os.open(pid_file, os.O_RDWR | os.O_CREAT, 0644)
+ fd = os.open(pid_file, os.O_WRONLY| os.O_APPEND | os.O_CREAT, 0644)
os.write(fd, str(os.getpid()))
os.write(fd, "\n")
os.close(fd)
Show replies by date