All of lore.kernel.org
 help / color / mirror / Atom feed
* PATCH: Remove execute permission from xend-debug.log
@ 2007-04-24 19:22 Daniel P. Berrange
  2007-04-24 21:39 ` Aron Griffis
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel P. Berrange @ 2007-04-24 19:22 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 726 bytes --]

The file /var/log/xen/xend-debug.log is currently being created with 
executable permission bits set. This is because the os.open() method
defaults to using a mode of 0777 if no third parameter is provided.
The attached patch changes the mode to 0600 to ensure that the file
permissions come out as -rw-------  instead of -rwxr-xr-x

    Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

Regards,
Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 

[-- Attachment #2: xen-log-perms.patch --]
[-- Type: text/plain, Size: 675 bytes --]

diff -r 3afefd64e392 tools/python/xen/xend/server/SrvDaemon.py
--- a/tools/python/xen/xend/server/SrvDaemon.py	Mon Mar 26 09:13:03 2007 +0000
+++ b/tools/python/xen/xend/server/SrvDaemon.py	Tue Apr 24 15:15:52 2007 -0400
@@ -118,7 +118,7 @@ class Daemon:
         try:
             parent = os.path.dirname(XEND_DEBUG_LOG)
             mkdir.parents(parent, stat.S_IRWXU)
-            fd = os.open(XEND_DEBUG_LOG, os.O_WRONLY|os.O_CREAT|os.O_APPEND)
+            fd = os.open(XEND_DEBUG_LOG, os.O_WRONLY|os.O_CREAT|os.O_APPEND, 0600)
         except Exception, exn:
             print >>sys.stderr, exn
             print >>sys.stderr, ("Xend failed to open %s.  Exiting!" %

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-04-24 22:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-24 19:22 PATCH: Remove execute permission from xend-debug.log Daniel P. Berrange
2007-04-24 21:39 ` Aron Griffis
2007-04-24 21:45   ` Aron Griffis
2007-04-24 22:08     ` Keir Fraser
2007-04-24 22:15       ` Aron Griffis
2007-04-24 22:30         ` Keir Fraser
2007-04-24 22:35           ` Daniel P. Berrange

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.