[Bug 655058] Re: freshclam apparmour error : type=1502 operation=inode_permission requested_mask=r:: denied_mask=r:: name=/proc/28071/status

2010-10-06 Thread Martin West
Hmm, one more this morning but its on the clamd executable

Oct  6 08:10:51 lenovo2 kernel: [160702.723615]
audit(1286349051.332:38): type=1502 operation=inode_permission
requested_mask=r:: denied_mask=r:: name=/proc/28617/status
pid=28617 profile=/usr/sbin/clamd namespace=default

but its probably the same problem, just havent done the apparmor_parser
-r on clamd config.

just done 
apparmor_parser -r /etc/apparmor.d/usr.sbin.clamd 
Replacement succeeded for /usr/sbin/clamd.

Thanks for the super fast response btw.

-- 
freshclam apparmour error : type=1502 operation=inode_permission 
requested_mask=r:: denied_mask=r:: name=/proc/28071/status 
https://bugs.launchpad.net/bugs/655058
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to clamav in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 655058] Re: freshclam apparmour error : type=1502 operation=inode_permission requested_mask=r:: denied_mask=r:: name=/proc/28071/status

2010-10-06 Thread Jamie Strandboge
The maverick package has:
./clamav-daemon.postinst.in:apparmor_parser -r -T -W $APP_PROFILE 
|| true
./clamav-freshclam.postinst.in:apparmor_parser -r -T -W 
$APP_PROFILE || true

Both -T and -W will need to be stripped for hardy and jaunty when doing
the backport. Karmic and later support -W and -T.

** Changed in: clamav (Ubuntu)
   Status: Incomplete = Triaged

** Changed in: clamav (Ubuntu)
 Assignee: Jamie Strandboge (jdstrand) = (unassigned)

** Summary changed:

- freshclam apparmour error : type=1502 operation=inode_permission 
requested_mask=r:: denied_mask=r:: name=/proc/28071/status 
+ freshclam apparmor error : type=1502 operation=inode_permission 
requested_mask=r:: denied_mask=r:: name=/proc/28071/status on 
hardy-backports

** Tags removed: lucid

-- 
freshclam apparmor error : type=1502 operation=inode_permission 
requested_mask=r:: denied_mask=r:: name=/proc/28071/status on 
hardy-backports
https://bugs.launchpad.net/bugs/655058
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to clamav in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 655058] Re: freshclam apparmour error : type=1502 operation=inode_permission requested_mask=r:: denied_mask=r:: name=/proc/28071/status

2010-10-06 Thread Scott Kitterman
@jdstrand: I'm mostly offline the next few days, so please take this as
whatever blessing you need from ubuntu-backporters to upload a fix for
this to hardy and jaunty backports.

-- 
freshclam apparmor error : type=1502 operation=inode_permission 
requested_mask=r:: denied_mask=r:: name=/proc/28071/status on 
hardy-backports
https://bugs.launchpad.net/bugs/655058
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to clamav in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 655058] Re: freshclam apparmour error : type=1502 operation=inode_permission requested_mask=r:: denied_mask=r:: name=/proc/28071/status

2010-10-05 Thread Scott Kitterman
@jdstrand: would you please have a look at this?  This is from hardy-
backports.

-- 
freshclam apparmour error : type=1502 operation=inode_permission 
requested_mask=r:: denied_mask=r:: name=/proc/28071/status 
https://bugs.launchpad.net/bugs/655058
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to clamav in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 655058] Re: freshclam apparmour error : type=1502 operation=inode_permission requested_mask=r:: denied_mask=r:: name=/proc/28071/status

2010-10-05 Thread Jamie Strandboge
Can you please attach /etc/apparmor.d/usr.bin.freshclam?

** Changed in: clamav (Ubuntu)
   Status: New = Incomplete

** Changed in: clamav (Ubuntu)
 Assignee: (unassigned) = Jamie Strandboge (jdstrand)

-- 
freshclam apparmour error : type=1502 operation=inode_permission 
requested_mask=r:: denied_mask=r:: name=/proc/28071/status 
https://bugs.launchpad.net/bugs/655058
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to clamav in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 655058] Re: freshclam apparmour error : type=1502 operation=inode_permission requested_mask=r:: denied_mask=r:: name=/proc/28071/status

2010-10-05 Thread Martin West
cut and paste of the above file


# vim:syntax=apparmor
# Author: Jamie Strandboge ja...@ubuntu.com
# Last Modified: Sun Aug  3 09:39:03 2008

#include tunables/global

/usr/bin/freshclam {
  #include abstractions/base
  #include abstractions/nameservice
  #include abstractions/user-tmp

  capability setgid,
  capability setuid,

  @{PROC}/filesystems r,
  owner @{PROC}/[0-9]*/status r,

  /etc/clamav/clamd.conf r,
  /etc/clamav/freshclam.conf r,
  /etc/clamav/onerrorexecute.d/* mr,
  /etc/clamav/onupdateexecute.d/* mr,
  /etc/clamav/virusevent.d/* mr,

  owner @{HOME}/.clamtk/db/ rw,
  owner @{HOME}/.clamtk/db/** rwk,

  owner @{HOME}/.klamav/database/ rw,
  owner @{HOME}/.klamav/database/** rwk,

  /usr/bin/freshclam mr,

  /var/lib/clamav/ r,
  /var/lib/clamav/** krw,

  /var/log/clamav/* kw,
  /var/run/clamav/freshclam.pid w,
  /var/run/clamav/clamd.ctl w,

  # Site-specific additions and overrides. See local/README for details.
  #include local/usr.bin.freshclam
}

-- 
freshclam apparmour error : type=1502 operation=inode_permission 
requested_mask=r:: denied_mask=r:: name=/proc/28071/status 
https://bugs.launchpad.net/bugs/655058
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to clamav in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 655058] Re: freshclam apparmour error : type=1502 operation=inode_permission requested_mask=r:: denied_mask=r:: name=/proc/28071/status

2010-10-05 Thread Jamie Strandboge
owner @{PROC}/[0-9]*/status r, is present so this suggests the profile did 
not get reloaded on upgrade. What is the output of the following:
$ sudo apparmor_parser -r -T -W /etc/apparmor.d/usr.bin.freshclam

-- 
freshclam apparmour error : type=1502 operation=inode_permission 
requested_mask=r:: denied_mask=r:: name=/proc/28071/status 
https://bugs.launchpad.net/bugs/655058
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to clamav in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 655058] Re: freshclam apparmour error : type=1502 operation=inode_permission requested_mask=r:: denied_mask=r:: name=/proc/28071/status

2010-10-05 Thread Martin West
Did you see the error in the apt log for the clamav update on the -W
flag, similar with the above command ...


apparmor_parser -r -T -W /etc/apparmor.d/usr.bin.freshclam
apparmor_parser: invalid option -- T
Novell/SUSE AppArmor parser version 2.1
Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006 Novell Inc.

Usage: apparmor_parser [options] [profile]

Options:

-a, --add   Add apparmor definitions [default]
-d, --debug Debug apparmor definitions
-h, --help  Display this text and exit
-r, --replace   Replace apparmor definitions
-R, --removeRemove apparmor definitions
-v, --version   Display version info and exit
-p, --preprocessPreprocess only
-C, --Complain  Force the profile into complain mode
-I n, --Include n   Add n to the search path
-b n, --base n  Set base dir and cwd
-f n, --subdomainfs n   Set location of apparmor filesystem
-S, --stdoutWrite output to stdout
-m n, --match-string n  Use only match features n
-n n, --namespace n Set Namespace for the profile
-q, --quiet Don't emit warnings

-- 
freshclam apparmour error : type=1502 operation=inode_permission 
requested_mask=r:: denied_mask=r:: name=/proc/28071/status 
https://bugs.launchpad.net/bugs/655058
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to clamav in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 655058] Re: freshclam apparmour error : type=1502 operation=inode_permission requested_mask=r:: denied_mask=r:: name=/proc/28071/status

2010-10-05 Thread Martin West
This worked ( minus -T -W )


apparmor_parser -r  /etc/apparmor.d/usr.bin.freshclam
Replacement succeeded for /usr/bin/freshclam.

-- 
freshclam apparmour error : type=1502 operation=inode_permission 
requested_mask=r:: denied_mask=r:: name=/proc/28071/status 
https://bugs.launchpad.net/bugs/655058
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to clamav in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 655058] Re: freshclam apparmour error : type=1502 operation=inode_permission requested_mask=r:: denied_mask=r:: name=/proc/28071/status

2010-10-05 Thread Martin West

dpkg -l apparmor
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name  Version   Description
+++-=-=-==
ii  apparmor  2.1+1075-0ubuntu9 User-space parser utility for AppArmor

-- 
freshclam apparmour error : type=1502 operation=inode_permission 
requested_mask=r:: denied_mask=r:: name=/proc/28071/status 
https://bugs.launchpad.net/bugs/655058
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to clamav in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 655058] Re: freshclam apparmour error : type=1502 operation=inode_permission requested_mask=r:: denied_mask=r:: name=/proc/28071/status

2010-10-05 Thread Jamie Strandboge
I'm sorry, I forgot that Hardy does not support the -T and -W flags.
After performing this:

$ sudo apparmor_parser -r /etc/apparmor.d/usr.bin.freshclam

do you still see the errors in kern.log? Note you may have to do:
$ sudo sysctl -w kernel.printk_ratelimit=0

to turn off kernel rate limiting.

-- 
freshclam apparmour error : type=1502 operation=inode_permission 
requested_mask=r:: denied_mask=r:: name=/proc/28071/status 
https://bugs.launchpad.net/bugs/655058
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to clamav in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 655058] Re: freshclam apparmour error : type=1502 operation=inode_permission requested_mask=r:: denied_mask=r:: name=/proc/28071/status

2010-10-05 Thread Scott Kitterman
I caught the lack of -T on Hardy and dropped it. I didn't catch the lack
of -W. Is that in the current package?

-- 
freshclam apparmour error : type=1502 operation=inode_permission 
requested_mask=r:: denied_mask=r:: name=/proc/28071/status 
https://bugs.launchpad.net/bugs/655058
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to clamav in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 655058] Re: freshclam apparmour error : type=1502 operation=inode_permission requested_mask=r:: denied_mask=r:: name=/proc/28071/status

2010-10-05 Thread Martin West
Havent seen any errors since the apparmor_parser -r
/etc/apparmor.d/usr.bin.freshclam

-W is not in the help displayed above.

Thanks

-- 
freshclam apparmour error : type=1502 operation=inode_permission 
requested_mask=r:: denied_mask=r:: name=/proc/28071/status 
https://bugs.launchpad.net/bugs/655058
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to clamav in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs