File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change 55
55
SETARGETDIR=/etc/selinux/targeted/src/policy
56
56
SEDOMPROG=$SETARGETDIR /domains/program
57
57
SECONPROG=$SETARGETDIR /file_contexts/program
58
- if [ -f /etc/redhat-release ] ; then
59
- if grep ' \(Red Hat Enterprise Linux ..\|CentOS\) release 4' \
60
- /etc/redhat-release > /dev/null 2>&1 ; then
61
- echo
62
- echo
63
- echo ' Notes regarding SELinux on this platform:'
64
- echo ' ========================================='
65
- echo
66
- echo ' The default policy might cause server startup to fail because it is '
67
- echo ' not allowed to access critical files. In this case, please update '
68
- echo ' your installation. '
69
- echo
70
- echo ' The default policy might also cause inavailability of SSL related '
71
- echo ' features because the server is not allowed to access /dev/random '
72
- echo ' and /dev/urandom. If this is a problem, please do the following: '
73
- echo
74
- echo ' 1) install selinux-policy-targeted-sources from your OS vendor'
75
- echo ' 2) add the following two lines to ' $SEDOMPROG /mysqld.te' :'
76
- echo ' allow mysqld_t random_device_t:chr_file read;'
77
- echo ' allow mysqld_t urandom_device_t:chr_file read;'
78
- echo ' 3) cd to ' $SETARGETDIR ' and issue the following command:'
79
- echo ' make load'
80
- echo
81
- echo
82
- fi
83
- fi
84
58
85
59
if [ -x /usr/sbin/semodule ] ; then
86
60
/usr/sbin/semodule -i /usr/share/mysql/SELinux/mariadb.pp
You can’t perform that action at this time.
0 commit comments