[Ovirt-devel] [PATCH server] secure the perissions on the ovirt.pp manifest file

Joey Boggs jboggs at redhat.com
Wed Feb 25 21:04:35 UTC 2009


Secures the permissions on ovirt.pp to only allow only root read/write access all other 000
---
 installer/bin/ovirt-installer |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/installer/bin/ovirt-installer b/installer/bin/ovirt-installer
index 3ba9813..4832cde 100755
--- a/installer/bin/ovirt-installer
+++ b/installer/bin/ovirt-installer
@@ -295,7 +295,7 @@ FileUtils.mkdir_p("/usr/share/ace/appliances/ovirt")
 config_file = File.new("/usr/share/ace/appliances/ovirt/ovirt.pp", "w")
 config_file.write(ERB.new(template, 0, "%>").result)
 config_file.close()
-
+File.chmod 0700, '/usr/share/ace/appliances/ovirt/ovirt.pp'
 
 # Give a friendly reminder about what to do next
 puts "\nTo start the installation run:    ace install ovirt"
-- 
1.6.0.6




More information about the ovirt-devel mailing list