2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-07-31 18:19:40 +00:00

6 Commits

Author SHA1 Message Date
Vinícius Ferrão 9261a765bd fix(httpd): harden the xCAT Apache configuration
Add standard security response headers (X-Frame-Options, X-Content-Type-
Options, Content-Security-Policy, X-Permitted-Cross-Domain-Policies) to the
/install and /tftpboot directories, mask the server banner with
"ServerTokens Prod", and drop the Includes (SSI) and MultiViews options from
those file-serving directories. Indexes on /install/postscripts, /install/post
and the doc directory are left intact so directory browsing still works where
xCAT relies on it.

The Header directives are wrapped in <IfModule mod_headers.c> so a server
whose mod_headers is not loaded still starts cleanly instead of failing on an
unknown directive. On Debian/Ubuntu, where mod_headers is not enabled by
default, the xCAT and xCATsn package postinst scripts run "a2enmod headers"
before restarting Apache so the headers take effect there as well; on
RHEL/SLES the module is loaded by default and needs no action.

Recovered from the unmerged lenovobuild branch (originals 7ee0c129, 85c8bc09,
d4d1783a), adapted: the deprecated X-XSS-Protection header and the
mod_allowmethods-dependent AllowMethods directive are omitted, and the Header
directives use "set" rather than "append".

Co-authored-by: Jarrod Johnson <10814490+jjohnson42@users.noreply.github.com>
2026-07-27 17:18:57 -03:00
Vinícius Ferrão d829be9e94 fix(packaging): make xcatd callers init-agnostic 2026-07-16 01:41:38 -03:00
GONG Jie 3bda36a1e9 Remove trailing spaces in file xCATsn/debian/postinst 2017-12-31 23:59:59 +00:00
immarvin 84712be32c support apache2.4 in ubuntu 2014-11-11 19:04:52 -08:00
yinle 225a2564bd fix bug #3973 Ubuntu 13.10 diskful installation fails 2014-01-20 13:36:27 -08:00
hamzy df4d2ab93a This is the first draft of building packages under Debian. Take 2. :)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9437 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-04-29 21:20:55 +00:00