Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/audit/files/
Date: Mon, 13 Feb 2017 22:37:11
Message-Id: 1487025419.17ff67b00883b6f1a2cd5fc63e673f9f15e122dc.robbat2@gentoo
1 commit: 17ff67b00883b6f1a2cd5fc63e673f9f15e122dc
2 Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Sun Feb 12 15:59:59 2017 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 13 22:36:59 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17ff67b0
7
8 sys-process/audit: remove unused files
9
10 (cherry picked from commit b1294a19f5879c04c8088582b781a50dc3e01e9a)
11 Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
12
13 sys-process/audit/files/auditd-conf.d-1.2.3 | 16 -----
14 sys-process/audit/files/auditd-init.d-1.7.17 | 58 -----------------
15 sys-process/audit/files/auditd-init.d-2.1.3 | 97 ----------------------------
16 3 files changed, 171 deletions(-)
17
18 diff --git a/sys-process/audit/files/auditd-conf.d-1.2.3 b/sys-process/audit/files/auditd-conf.d-1.2.3
19 deleted file mode 100644
20 index a8250c5fd2..0000000000
21 --- a/sys-process/audit/files/auditd-conf.d-1.2.3
22 +++ /dev/null
23 @@ -1,16 +0,0 @@
24 -# Copyright 1999-2005 Gentoo Foundation
25 -# Distributed under the terms of the GNU General Public License v2
26 -# $Id$
27 -
28 -# Configuration options for auditd
29 -# -f for foreground mode
30 -# There are some other options as well, but you'll have to look in the source
31 -# code to find them as they aren't ready for use yet.
32 -EXTRAOPTIONS=''
33 -
34 -# Audit rules file to run after starting auditd
35 -RULEFILE_STARTUP=/etc/audit/audit.rules
36 -
37 -# Audit rules file to run before and after stopping auditd
38 -RULEFILE_STOP_PRE=/etc/audit/audit.rules.stop.pre
39 -RULEFILE_STOP_POST=/etc/audit/audit.rules.stop.post
40
41 diff --git a/sys-process/audit/files/auditd-init.d-1.7.17 b/sys-process/audit/files/auditd-init.d-1.7.17
42 deleted file mode 100644
43 index 7a78e015e9..0000000000
44 --- a/sys-process/audit/files/auditd-init.d-1.7.17
45 +++ /dev/null
46 @@ -1,58 +0,0 @@
47 -#!/sbin/openrc-run
48 -# Copyright 1999-2005 Gentoo Foundation
49 -# Distributed under the terms of the GNU General Public License v2
50 -# $Id$
51 -
52 -start_auditd() {
53 - ebegin "Starting auditd"
54 - start-stop-daemon \
55 - --start --quiet --pidfile /var/run/auditd.pid \
56 - --exec /sbin/auditd -- ${EXTRAOPTIONS}
57 - local ret=$?
58 - eend $ret
59 - return $ret
60 -}
61 -
62 -stop_auditd() {
63 - ebegin "Stopping auditd"
64 - start-stop-daemon \
65 - --stop --quiet --pidfile /var/run/auditd.pid
66 - local ret=$?
67 - eend $ret
68 - return $ret
69 -}
70 -
71 -
72 -loadfile() {
73 - local rules="$1"
74 - if [ -n "${rules}" -a -f "${rules}" ]; then
75 - einfo "Loading audit rules from ${rules}"
76 - /sbin/auditctl -R "${rules}" 1>/dev/null
77 - return $?
78 - else
79 - return 0
80 - fi
81 -}
82 -
83 -start() {
84 - start_auditd
85 - local ret=$?
86 - if [ $ret -eq 0 -a "${RC_CMD}" != "restart" ]; then
87 - loadfile "${RULEFILE_STARTUP}"
88 - fi
89 - return $ret
90 -}
91 -
92 -stop() {
93 - [ "${RC_CMD}" != "restart" ] && loadfile "${RULEFILE_STOP_PRE}"
94 - stop_auditd
95 - local ret=$?
96 - [ "${RC_CMD}" != "restart" ] && loadfile "${RULEFILE_STOP_POST}"
97 - return $ret
98 -}
99 -
100 -# This is a special case, we do not want to touch the rules at all
101 -restart() {
102 - stop_auditd
103 - start_auditd
104 -}
105
106 diff --git a/sys-process/audit/files/auditd-init.d-2.1.3 b/sys-process/audit/files/auditd-init.d-2.1.3
107 deleted file mode 100644
108 index b918ab6705..0000000000
109 --- a/sys-process/audit/files/auditd-init.d-2.1.3
110 +++ /dev/null
111 @@ -1,97 +0,0 @@
112 -#!/sbin/openrc-run
113 -# Copyright 1999-2011 Gentoo Foundation
114 -# Distributed under the terms of the GNU General Public License v2
115 -# $Id$
116 -
117 -extra_started_commands='reload reload_auditd reload_rules'
118 -description='Linux Auditing System'
119 -description_reload='Reload daemon configuration and rules'
120 -description_reload_rules='Reload daemon rules'
121 -description_reload_auditd='Reload daemon configuration'
122 -
123 -name='auditd'
124 -pidfile='/var/run/auditd.pid'
125 -command='/sbin/auditd'
126 -
127 -start_auditd() {
128 - # Env handling taken from the upstream init script
129 - if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
130 - unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
131 - else
132 - LANG="$AUDITD_LANG"
133 - LC_TIME="$AUDITD_LANG"
134 - LC_ALL="$AUDITD_LANG"
135 - LC_MESSAGES="$AUDITD_LANG"
136 - LC_NUMERIC="$AUDITD_LANG"
137 - LC_MONETARY="$AUDITD_LANG"
138 - LC_COLLATE="$AUDITD_LANG"
139 - export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
140 - fi
141 - unset HOME MAIL USER USERNAME
142 -
143 - ebegin "Starting ${name}"
144 - start-stop-daemon \
145 - --start --quiet --pidfile ${pidfile} \
146 - --exec ${command} -- ${EXTRAOPTIONS}
147 - local ret=$?
148 - eend $ret
149 - return $ret
150 -}
151 -
152 -stop_auditd() {
153 - ebegin "Stopping ${name}"
154 - start-stop-daemon --stop --quiet --pidfile ${pidfile}
155 - local ret=$?
156 - eend $ret
157 - return $ret
158 -}
159 -
160 -
161 -loadfile() {
162 - local rules="$1"
163 - if [ -n "${rules}" -a -f "${rules}" ]; then
164 - einfo "Loading audit rules from ${rules}"
165 - /sbin/auditctl -R "${rules}" 1>/dev/null
166 - return $?
167 - else
168 - return 0
169 - fi
170 -}
171 -
172 -start() {
173 - start_auditd
174 - local ret=$?
175 - if [ $ret -eq 0 -a "${RC_CMD}" != "restart" ]; then
176 - touch /var/lock/subsys/${name}
177 - loadfile "${RULEFILE_STARTUP}"
178 - fi
179 - return $ret
180 -}
181 -
182 -reload_rules() {
183 - loadfile "${RULEFILE_STARTUP}"
184 -}
185 -
186 -reload_auditd() {
187 - [ -f ${pidfile} ] && kill -HUP `cat ${pidfile}`
188 -}
189 -
190 -reload() {
191 - reload_auditd
192 - reload_rules
193 -}
194 -
195 -stop() {
196 - [ "${RC_CMD}" != "restart" ] && loadfile "${RULEFILE_STOP_PRE}"
197 - stop_auditd
198 - rm -f /var/lock/subsys/${name}
199 - local ret=$?
200 - [ "${RC_CMD}" != "restart" ] && loadfile "${RULEFILE_STOP_POST}"
201 - return $ret
202 -}
203 -
204 -# This is a special case, we do not want to touch the rules at all
205 -restart() {
206 - stop_auditd
207 - start_auditd
208 -}