~yolanda.robla/ubuntu/saucy/clamav/dep-8-tests

« back to all changes in this revision

Viewing changes to debian/usr.bin.freshclam

  • Committer: Bazaar Package Importer
  • Author(s): Jamie Strandboge
  • Date: 2008-09-18 22:06:59 UTC
  • Revision ID: james.westby@ubuntu.com-20080918220659-40n4cr9qt6yklpzm
Tags: 0.94.dfsg-1ubuntu1
* Follow ApparmorProfileMigration and force apparmor complain mode on some
  upgrades (LP: #264817)
  - debian/control: Recommends apparmor >= 2.1+1075-0ubuntu6 for
    clamav-daemon and clamav-freshclam
  - add debian/usr.bin.freshclam and debian/usr.sbin.clamd
  - debian/clamav-(daemon|freshclam).dirs: add etc/apparmor.d/force-complain
  - debian/clamav-(daemon|freshclam).install: install profiles
  - debian/clamav-(daemon|freshclam).preinst: create symlink for
    force-complain/ on pre-feisty upgrades, upgrades where apparmor-profiles
    profile is unchanged (ie non-enforcing) and upgrades where the profile
    doesn't exist.
  - debian/clamav-(daemon|freshclam).postrm: remove symlink in
    force-complain/ on purge.
  - debian/clamav-(daemon|freshclam).postinst.in: reload apparmor
  - update README.Debian with note on Apparmor

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# vim:syntax=apparmor
 
2
# Author: Jamie Strandboge <jamie@ubuntu.com>
 
3
# Last Modified: Sun Aug  3 09:39:03 2008
 
4
 
 
5
#include <tunables/global>
 
6
 
 
7
/usr/bin/freshclam {
 
8
  #include <abstractions/base>
 
9
  #include <abstractions/nameservice>
 
10
 
 
11
  capability setgid,
 
12
  capability setuid,
 
13
 
 
14
  /etc/clamav/clamd.conf r,
 
15
  /etc/clamav/freshclam.conf r,
 
16
  /etc/clamav/onerrorexecute.d/* mr,
 
17
  /etc/clamav/onupdateexecute.d/* mr,
 
18
  /etc/clamav/virusevent.d/* mr,
 
19
 
 
20
  /usr/bin/freshclam mr,
 
21
 
 
22
  /var/lib/clamav/ r,
 
23
  /var/lib/clamav/** krw,
 
24
 
 
25
  /var/log/clamav/* kw,
 
26
  /var/run/clamav/freshclam.pid w,
 
27
  /var/run/clamav/clamd.ctl w,
 
28
}