Re: [apparmor] [patch 10/11] utils: add very limited dbus rule support

2014-03-06 Thread Seth Arnold
On Wed, Mar 05, 2014 at 05:44:44PM -0800, Steve Beattie wrote: This patch adds very limited support for very dumb parsing of dbus rules. Basically, it stores dbus rules as raw strings wrapped in a class. There's class structure to indicate how I'd like to see fuller future support for dbus

Re: [apparmor] [patch 09/11] utils: split out aa-genprof command

2014-03-06 Thread Christian Boltz
Hello, Am Mittwoch, 5. März 2014 schrieb Steve Beattie: This patch splits out the genprof tool functionality into a separate command function, merging with the use_autodep function that already existed. Signed-off-by: Steve Beattie st...@nxnw.org ... Index: b/utils/apparmor/tools.py

Re: [apparmor] [patch 09/11] utils: split out aa-genprof command [v2]

2014-03-06 Thread Seth Arnold
On Thu, Mar 06, 2014 at 10:58:26AM -0800, Steve Beattie wrote: How about the attached patch? Subject: utils: split out aa-genprof command [v2] This patch splits out the genprof tool functionality into a separate command function, merging with the use_autodep function that already existed.

Re: [apparmor] [patch 06/11] utils: split out aa-enforce function

2014-03-06 Thread Steve Beattie
On Wed, Mar 05, 2014 at 11:06:21PM -0800, Seth Arnold wrote: On Wed, Mar 05, 2014 at 05:44:40PM -0800, Steve Beattie wrote: +apparmor.read_profiles() +output_name = profile if program is None else program If there's more than one profile returned from

Re: [apparmor] [patch 11/11] utils: add simple parsing of multi-line rules

2014-03-06 Thread Christian Boltz
Hello, Am Mittwoch, 5. März 2014 schrieb Steve Beattie: D-Bus rules in particular seem to get written as multi-line rules. This patch adds very simple hackish support for multiple lines. Essentially, what it does is if the parsing of a line doesn't match anything and falls all the way

Re: [apparmor] [patch 09/11] utils: split out aa-genprof command [v2]

2014-03-06 Thread Christian Boltz
Hello, Am Donnerstag, 6. März 2014 schrieb Steve Beattie: On Thu, Mar 06, 2014 at 09:41:02AM -0800, Steve Beattie wrote: On Thu, Mar 06, 2014 at 01:29:41PM +0100, Christian Boltz wrote: Am Mittwoch, 5. März 2014 schrieb Steve Beattie: This patch splits out the genprof tool functionality

Re: [apparmor] [patch 11/11] utils: add simple parsing of multi-line rules

2014-03-06 Thread Steve Beattie
On Thu, Mar 06, 2014 at 10:10:16PM +0100, Christian Boltz wrote: Am Mittwoch, 5. März 2014 schrieb Steve Beattie: D-Bus rules in particular seem to get written as multi-line rules. This patch adds very simple hackish support for multiple lines. Essentially, what it does is if the parsing of

Re: [apparmor] [patch 11/11] utils: add simple parsing of multi-line rules

2014-03-06 Thread Seth Arnold
On Thu, Mar 06, 2014 at 11:02:24PM -0800, Steve Beattie wrote: Subject: utils: add simple parsing of multi-line rules [v2] D-Bus rules in particular seem to get written as multi-line rules. This patch adds very simple hackish support for multiple lines. Essentially, what it does is if the