summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2009-11-03 15:26:00 -0500
committerJason Gerard DeRose <jderose@redhat.com>2009-11-04 04:07:38 -0700
commitda58b0cc75ffd59e34729d3caedaa715d8dd2584 (patch)
treec8c806cc8e143bbbce7943ad3e481fb0985327df /install
parent5782b882a725a0a626630cd361c6c4d3455449be (diff)
downloadfreeipa-da58b0cc75ffd59e34729d3caedaa715d8dd2584.tar.gz
freeipa-da58b0cc75ffd59e34729d3caedaa715d8dd2584.tar.xz
freeipa-da58b0cc75ffd59e34729d3caedaa715d8dd2584.zip
Add SELinux policy for UI assets
This also removes the Index option of /ipa-assets as well as the deprecated IPADebug option. No need to build or install ipa_webgui anymore. Leaving in the code for reference purposes for now.
Diffstat (limited to 'install')
-rw-r--r--install/conf/ipa.conf6
-rwxr-xr-xinstall/tools/ipa-server-install4
2 files changed, 5 insertions, 5 deletions
diff --git a/install/conf/ipa.conf b/install/conf/ipa.conf
index b23fc0256..81a6bc695 100644
--- a/install/conf/ipa.conf
+++ b/install/conf/ipa.conf
@@ -39,7 +39,6 @@ Alias /ipa/crl "/var/lib/pki-ca/publish"
PythonInterpreter main_interpreter
PythonHandler ipaserver::xmlrpc
PythonDebug Off
- PythonOption IPADebug Off
PythonOption SCRIPT_NAME /ipa/xml
PythonAutoReload Off
</Location>
@@ -49,7 +48,6 @@ Alias /ipa/crl "/var/lib/pki-ca/publish"
PythonInterpreter main_interpreter
PythonHandler ipaserver::jsonrpc
PythonDebug Off
- PythonOption IPADebug Off
PythonOption SCRIPT_NAME /ipa/json
PythonAutoReload Off
</Location>
@@ -59,7 +57,6 @@ Alias /ipa/crl "/var/lib/pki-ca/publish"
PythonInterpreter main_interpreter
PythonHandler ipaserver::webui
PythonDebug Off
- PythonOption IPADebug Off
PythonOption SCRIPT_NAME /ipa/ui
PythonAutoReload Off
</Location>
@@ -68,7 +65,8 @@ Alias /ipa-assets/ "/var/cache/ipa/assets/"
<Directory "/var/cache/ipa/assets">
Allow from all
AllowOverride None
- Options Indexes FollowSymLinks
+ # add Indexes to Options to allow browsing
+ Options FollowSymLinks
ExpiresActive On
ExpiresDefault A31536000
</Directory>
diff --git a/install/tools/ipa-server-install b/install/tools/ipa-server-install
index 462db64e7..a2e9c7a38 100755
--- a/install/tools/ipa-server-install
+++ b/install/tools/ipa-server-install
@@ -674,7 +674,8 @@ def main():
krb = krbinstance.KrbInstance(fstore)
krb.create_instance(ds_user, realm_name, host_name, domain_name, dm_password, master_password)
- # Render webui assets:
+ # Render webui assets:
+ ipautil.run(["/sbin/restorecon", ASSETS_DIR])
render_assets()
# Create a HTTP instance
@@ -691,6 +692,7 @@ def main():
os.remove(pw_name)
else:
http.create_instance(realm_name, host_name, domain_name, autoconfig=True, self_signed_ca=not options.ca)
+ ipautil.run(["/sbin/restorecon", "/var/cache/ipa/sessions"])
# Create the config file
fstore.backup_file("/etc/ipa/ipa.conf")