Preliminary info - not sure if all steps are necessary.
symptoms: client cannot connect with @ERROR: chroot failed
rsyncd.log on server:
rsync: chdir /data/rsync_direcory failed: Permission denied (13)
first try (no visible effect):
setsebool -P allow_rsync_anon_write on
next (agaiin, no effect):
semanage fcontext -a -t public_content_t /data/rsync_directory
does not make sense, as we are on server:
setsebool -P rsync_client on
finally - after this it works:
cat /var/log/audit/audit.log | audit2allow -M rsync
semodule -i rsync-.pp
Zobrazují se příspěvky se štítkemSElinux. Zobrazit všechny příspěvky
Zobrazují se příspěvky se štítkemSElinux. Zobrazit všechny příspěvky
pondělí 15. září 2014
pátek 4. dubna 2014
non-standard SSL port for apache (on CentOs) and owncloud
The procedure is not limited to owncloud installation, of course.
Install SElinux tools:
check available (i.e. already allowed) http port
For custom ports, see RedHat docs. In short, the correct command for port 12345 is
then change port in conf.d/ssl.conf, or add a "virtual host: for owncoud:
Install SElinux tools:
# yum install setools-gui setroubleshoot checkpolicy
check available (i.e. already allowed) http port
# semanage port -l | grep http
http_port_t tcp 80, 81, 443, 488, 8008, 8009, 8443, 9000
For custom ports, see RedHat docs. In short, the correct command for port 12345 is
# semanage port -a -t http_port_t -p tcp 12345
then change port in conf.d/ssl.conf, or add a "virtual host: for owncoud:
vim /etc/httpd/conf.d/owncloud.conf:
<Directory /var/www/html/owncloud> AllowOverride All </Directory> Listen 12345and include the Virtual host part from the ssl.conf
<VirtualHost *:12345>
DocumentRoot "/var/www/html/owncloud"
ErrorLog logs/ssl_oc_error_log
TransferLog logs/ssl_oc_access_log
LogLevel warn
SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM
SSLCertificateFile /etc/pki/tls/certs/ca.crt
SSLCertificateKeyFile /etc/pki/tls/private/ca.key
CustomLog logs/ssl_oc_request_log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>
Přihlásit se k odběru:
Příspěvky (Atom)