ia64/xen-unstable
changeset 14918:58e98e803378
Remove execute permission from xend-debug.log
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>
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>
author | Keir Fraser <keir@xensource.com> |
---|---|
date | Tue Apr 24 21:48:09 2007 +0100 (2007-04-24) |
parents | fcf5a7ff0c53 |
children | b43bd71ee65b |
files | tools/python/xen/xend/server/SrvDaemon.py |
line diff
1.1 --- a/tools/python/xen/xend/server/SrvDaemon.py Tue Apr 24 21:44:41 2007 +0100 1.2 +++ b/tools/python/xen/xend/server/SrvDaemon.py Tue Apr 24 21:48:09 2007 +0100 1.3 @@ -119,7 +119,7 @@ class Daemon: 1.4 try: 1.5 parent = os.path.dirname(XEND_DEBUG_LOG) 1.6 mkdir.parents(parent, stat.S_IRWXU) 1.7 - fd = os.open(XEND_DEBUG_LOG, os.O_WRONLY|os.O_CREAT|os.O_APPEND) 1.8 + fd = os.open(XEND_DEBUG_LOG, os.O_WRONLY|os.O_CREAT|os.O_APPEND, 0600) 1.9 except Exception, exn: 1.10 print >>sys.stderr, exn 1.11 print >>sys.stderr, ("Xend failed to open %s. Exiting!" %