~ubuntu-branches/ubuntu/precise/rsyslog/precise-security

« back to all changes in this revision

Viewing changes to debian/rsyslog.rsyslog-kmsg.upstart

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant
  • Date: 2010-02-17 12:23:01 UTC
  • Revision ID: james.westby@ubuntu.com-20100217122301-3bugxd4cce0stl1n
Tags: 4.2.0-2ubuntu6
* debian/rsyslog.rsyslog-kmsg.upstart:
  - Drop this additional job; kernel changes have meant that rsyslog
    may read from /proc/kmsg directly after dropping privileges.
    LP: #517773
* debian/rsyslog.preinst:
  - Remove on upgrade 
* debian/rsyslog.conf:
  - Restore to reading from /proc/kmsg 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# rsyslog-kmsg - feed /proc/kmsg into rsyslog
2
 
#
3
 
# This service is used to feed output from /proc/kmsg into rsyslog so
4
 
# it does not need to be privileged.
5
 
 
6
 
description     "feed /proc/kmsg into rsyslog"
7
 
 
8
 
start on starting rsyslog
9
 
stop on stopped rsyslog
10
 
 
11
 
respawn
12
 
 
13
 
pre-start script
14
 
    mkdir -p /var/run/rsyslog
15
 
    chown syslog:syslog /var/run/rsyslog
16
 
 
17
 
    [ -e /var/run/rsyslog/kmsg ] || mkfifo -m 600 /var/run/rsyslog/kmsg
18
 
    chown syslog:syslog /var/run/rsyslog/kmsg
19
 
end script
20
 
 
21
 
exec dd bs=1 if=/proc/kmsg of=/var/run/rsyslog/kmsg
22
 
 
23
 
post-stop script
24
 
    rm /var/run/rsyslog/kmsg
25
 
end script