blob: 56241e8115685b8b6aaf1559d5e7552410233800 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
#
# Created by Wolfram Schlich <wschlich@gentoo.org>
# Feedback is greatly appreciated!
#
depend() {
after modules
before net.*
}
checkconfig() {
if [[ ! -f /etc/grsec/sysctl.conf ]]; then
eerror
eerror "The grsecurity sysctl.conf file is missing!"
eerror " -> /etc/grsec/sysctl.conf"
eerror
return 1
fi
}
start() {
checkconfig || return 1
ebegin "Configuring grsecurity kernel parameters"
sysctl -q -p /etc/grsec/sysctl.conf
eend $?
}
stop() {
: NOP
}
|