Re: [apparmor] [patch] merge in some translations from old utils de.po

2014-09-10 Thread Seth Arnold
On Wed, Sep 10, 2014 at 11:58:26PM +0200, Christian Boltz wrote: > Hello, > > Am Mittwoch, 10. September 2014 schrieb Seth Arnold: > > On Wed, Sep 10, 2014 at 10:51:26PM +0200, Christian Boltz wrote: > > > a side effect of not including utils/apparmor/*.py in the .pot

Re: [apparmor] [patch] merge in some translations from old utils de.po

2014-09-10 Thread Seth Arnold
On Wed, Sep 10, 2014 at 10:51:26PM +0200, Christian Boltz wrote: > Hello, > > a side effect of not including utils/apparmor/*.py in the .pot file was > that some translations were lost. This patch includes backported > translations from r2186. It's not a simple merge, I reviewed everything > I

Re: [apparmor] Fwd: Bug#760378: apparmor: FTBFS on x32 due to use of sysctl

2014-09-09 Thread Seth Arnold
Thanks for forwarding this along; the #include dates from the ancient times, probably Linux 2.0 or 2.2 days. The attached patch removes the header unconditionally; the parser builds and passes "make check USE_SYSTEM=1" on my Ubuntu 14.04 LTS laptop. I propose this patch for tru

Re: [apparmor] phpsysinfo policy updates

2014-09-08 Thread Seth Arnold
want /etc/udev/** as well. Acked-by: Seth Arnold Thanks > Author: Jamie Strandboge > Description: miscellaneous updates for phpsysinfo on Ubuntu 14.10 > Forwarded: yes > > Index: apparmor-2.8.96~2652/

Re: [apparmor] apache2 profile update

2014-09-08 Thread Seth Arnold
On Mon, Sep 08, 2014 at 04:27:27PM -0500, Jamie Strandboge wrote: > > The usr.sbin.apache2 profile has some instructions on how to use the > phpsysinfo > profile. Update those to make it easier for people. > > -- > Jamie Strandboge http://www.ubuntu.com/

Re: [apparmor] [patch] add missing --display to aa-notify.pod

2014-09-08 Thread Seth Arnold
On Sun, Sep 07, 2014 at 01:36:18PM +0200, Christian Boltz wrote: > Hello, > > I just noticed aa-notify.pod does not mention the --display option. This > patch adds it. > > I propose this patch for trunk and the 2.8 branch. Acked-by: Seth Arnold Thanks > > >

Re: [apparmor] [Branch ~apparmor-dev/apparmor/master] Rev 2657: Allow dnsmasq read access to IPv6 config

2014-09-08 Thread Seth Arnold
On Sun, Sep 07, 2014 at 12:38:05PM +0200, Christian Boltz wrote: > Hello, > What's the best solution to fix this? > > a) delete the wrong revision from bzr (I'd prefer if someone does that >for me, I don't know bzr good enough) > > b) add a commit on top that really changes ** to * I like '

Re: [apparmor] [PATCH 6/6] tests: Update unix_socket to test for unnamed sockets

2014-09-06 Thread Seth Arnold
ned-off-by: Tyler Hicks Acked-by: Seth Arnold This is fine as it is but I've got a few suggestions inline: Thanks > --- > tests/regression/apparmor/unix_socket.c| 88 > +++--- > tests/regression/apparmor/unix_socket.sh | 48 +++--- &

Re: [apparmor] [PATCH 5/6] tests: Add abstract socket tests to unix_socket.sh

2014-09-05 Thread Seth Arnold
On Thu, Sep 04, 2014 at 06:55:45AM -0500, Tyler Hicks wrote: > Tests abstract UNIX domain sockets with various combinations of implied > permissions, explicit permissions, and conditionals. It also tests with > bad permissions and conditionals. > > Signed-off-by: Tyler Hicks I didn't see any def

Re: [apparmor] [PATCH 4/6] tests: Migrate unix_socket tests from poll to sock IO timeouts

2014-09-05 Thread Seth Arnold
> > This patch updates the existing v7 policy generation to allow the getopt > and setopt accesses. > > Signed-off-by: Tyler Hicks Acked-by: Seth Arnold Thanks > --- > tests/regression/apparmor/unix_socket.c| 43 > +++--- > tests/regressio

Re: [apparmor] [PATCH 3/6] tests: Update unix_socket.sh pathname based socket tests for v7

2014-09-05 Thread Seth Arnold
the address type of a socket is not yet known when socket(2) is called. > > Signed-off-by: Tyler Hicks Acked-by: Seth Arnold Thanks > --- > tests/regression/apparmor/unix_socket.sh | 13 ++--- > 1 file changed, 10 insertions(+), 3 deletions(-) > > diff --git a/te

Re: [apparmor] [PATCH 2/6] tests: Update mkprofile.pl to accept unix rules

2014-09-05 Thread Seth Arnold
n accept) addr=@foo peer=(label=bar),\n" > > Signed-off-by: Tyler Hicks Acked-by: Seth Arnold Thanks > --- > tests/regression/apparmor/mkprofile.pl | 12 > tests/regression/apparmor/unix_socket.sh | 1 - > 2 files changed, 12 insertions(+), 1 deletion

Re: [apparmor] [PATCH 1/6] tests: Create lists of unix_socket perm tests

2014-09-05 Thread Seth Arnold
tional tests to the list based upon > conditions such as kernel ABI, address type, etc. > > Signed-off-by: Tyler Hicks Acked-by: Seth Arnold Thanks > --- > tests/regression/apparmor/unix_socket.sh | 90 > +--- > 1 file changed, 35 insertions(+

Re: [apparmor] [patch] dnsmasq profile - allow to read /proc/sys/...../mtu

2014-09-05 Thread Seth Arnold
changes we can adapt. > > I also propose this patch for the 2.8 branch. Acked-by: Seth Arnold for both trunk and 2.8 Thanks > > > > > Allow dnsmasq read access to IPv6 config > > The IPv6 Neighbor Discovery protocol (RFC 2461) suggests > implementation

Re: [apparmor] [patch 17/12] v3 unix socket rules

2014-09-04 Thread Seth Arnold
On Thu, Sep 04, 2014 at 09:19:53AM -0700, John Johansen wrote: > Fix the permission encoding output of getopt/setopt > > Signed-off-by: John Johansen Acked-by: Seth Arnold Thanks > > --- > > === modified file 'parser/af_unix.cc' > --- parser/af

Re: [apparmor] [patch 4/3] libapparmor: adjust %pure-parser directive

2014-09-04 Thread Seth Arnold
On Thu, Sep 04, 2014 at 09:17:11AM -0700, Steve Beattie wrote: > On Wed, Sep 03, 2014 at 06:04:59PM -0700, Seth Arnold wrote: > > On Wed, Sep 03, 2014 at 07:39:39AM -0700, Steve Beattie wrote: > > > [Sorry, meant this patch to go out with the others.] > > > > > &

Re: [apparmor] [patch 2/8] utils: convert raw rules classes to subclass from _Raw_Rule

2014-09-03 Thread Seth Arnold
On Thu, Aug 28, 2014 at 05:04:06PM -0700, Steve Beattie wrote: > The patch that adds support for af_unix rules added a _Raw_Rule base > class to inherit from in rules.py. This patch converts the rest of the > raw rules classes to use the same. > > Signed-off-by: Steve Beattie

Re: [apparmor] [patch 4/3] libapparmor: adjust %pure-parser directive

2014-09-03 Thread Seth Arnold
were introduced in 2.3 but there's no mention of 'true'...) This patch is probably fine as-is but we might be back here again soon. Acked-by: Seth Arnold Thanks > > Signed-off-by: Steve Beattie > --- > libraries/libapparmor/src/grammar.y |2 +- >

Re: [apparmor] [patch 3/3] libaalogparse: support missing mount keywords

2014-09-03 Thread Seth Arnold
On Wed, Sep 03, 2014 at 12:40:23AM -0700, Steve Beattie wrote: > This patch adds support for the mount and pivotroot related keywords, > fstype, flags, and srcname. > > Signed-off-by: Steve Beattie Acked-by: Seth Arnold Thanks > --- > libraries/libapparmor/in

Re: [apparmor] [patch 2/3] libaalogparse: add signal and peer keyword support

2014-09-03 Thread Seth Arnold
t different in the logging, > should they map to the same field in the structure generated by > aalogparse? > > Signed-off-by: Steve Beattie Acked-by: Seth Arnold Thanks > --- > libraries/libapparmor/include/aalogparse.h|2 + >

Re: [apparmor] [patch 1/3] libaalogparse: fix for new kernel dmesg format

2014-09-03 Thread Seth Arnold
mmar and lexer to > compensate for this change. > > Signed-off-by: Steve Beattie Acked-by: Seth Arnold Thanks > --- > libraries/libapparmor/src/grammar.y|2 + > libraries/libapparmor/src/scanner.l|1 > li

Re: [apparmor] [patch] fix "dictionary changed size during iteration" in cleanprof.py delete_net_duplicates()

2014-09-03 Thread Seth Arnold
/utils/apparmor/cleanprofile.py", line > 147, in delete_net_duplicates > for sock_type in netrules_other['rule'][fam].keys(): > RuntimeError: dictionary changed size during iteration > Acked-by: Seth Arnold Thanks > >

Re: [apparmor] [patch 0/3] libapparmor: a few aalogparse fixes

2014-09-03 Thread Seth Arnold
On Wed, Sep 03, 2014 at 12:40:20AM -0700, Steve Beattie wrote: > In preparation for adding support for the new af_unix abstract socket > log messages, the following patch series addresses some currently > existing bugs in libapprmor's aalogparse functionality. > > I have an un-included patch that

Re: [apparmor] [patch] aa-mergeprof: add warning about syntax changes, remove --auto

2014-09-03 Thread Seth Arnold
he warning for translation because > it will go away soon (hopefully). > > BTW @Kshitij: Any news on the aa-mergeprof patch to change the syntax? > Acked-by: Seth Arnold Thanks > > === modified file 'utils/aa-mergeprof' > --- utils/aa-mergeprof 2014-08-04 18:

Re: [apparmor] [PATCH] 04/04 mdnsd update for fine-grained netlink mediation

2014-09-03 Thread Seth Arnold
dnsd for fine-grained netlink mediation. A mdnsd binary was not > available to test but code inspection showed it set up the socket the same as > avahi, which uses SOCK_DGRAM type instead of SOCK_RAW with netlink. > > Acked-By: Jamie Strandboge Acked-by: Seth Arnold Thanks

Re: [apparmor] [PATCH] 03/04 update kde abstraction for /etc/xdg/Trolltech.conf

2014-09-03 Thread Seth Arnold
etc/xdg/Trolltech.conf > > Acked-By: Jamie Strandboge Acked-by: Seth Arnold Thanks > > -- > Jamie Strandboge http://www.ubuntu.com/ > Author: Jamie Strandboge > Description: allow read of /etc/xdg/Trolltech.conf > > I

Re: [apparmor] [PATCH] 02/04 identd pid file location on Debian/Ubuntu

2014-09-03 Thread Seth Arnold
for pid file location on Debian/Ubuntu > > Acked-By: Jamie Strandboge Acked-by: Seth Arnold Thanks > > -- > Jamie Strandboge http://www.ubuntu.com/ > Author: Jamie Strandboge > Description: update for pid file location on Debian/Ubuntu > &g

Re: [apparmor] [PATCH] 01/04 dovecot access to /usr/share/dovecot/protocols.d/**

2014-09-03 Thread Seth Arnold
allow /usr/sbin/dovecot access to /usr/share/dovecot/protocols.d/** > > Acked-By: Jamie Strandboge Acked-by: Seth Arnold Thanks > > -- > Jamie Strandboge http://www.ubuntu.com/ > Author: Jamie Strandboge > Description: update to allow /usr/sbin/dovec

Re: [apparmor] [PATCH] 02/04 abstraction updates for abstract, anonymous and netlink

2014-09-03 Thread Seth Arnold
t; Jamie Strandboge http://www.ubuntu.com/ Acked-by: Seth Arnold Thanks > Author: Jamie Strandboge > Description: update policy for abstract sockets. Man page updates > Forwarded: yes > > Conversion of s/path/addr/ in rules by Steve Beattie > >

Re: [apparmor] [PATCH] 04/04 policy syslog unix socket policy updates

2014-09-03 Thread Seth Arnold
meone > can > confirm or even confirm that type=stream should *not* be used with either/both > of these, I can adjust the policy as needed. > > -- > Jamie Strandboge http://www.ubuntu.com/ Acked-by: Seth Arnold Thanks > Auth

Re: [apparmor] [PATCH] 03/04 avahi profile update for netlink

2014-09-03 Thread Seth Arnold
CK_DGRAM type instead of SOCK_RAW with netlink, > so > add rule for that. Acked-by: Seth Arnold Thanks > > > -- > Jamie Strandboge http://www.ubuntu.com/ > Author: Jamie Strandboge > Description: update avahi-daemon for fine-grained net

Re: [apparmor] [patch 16/12] v3 unix socket rules

2014-09-02 Thread Seth Arnold
n this check? > > Signed-off-by: John Johansen Acked-by: Seth Arnold Thanks > > --- > > === modified file 'parser/af_unix.cc' > --- parser/af_unix.cc 2014-08-31 02:13:35 + > +++ parser/af_unix.cc 2014-08-31 17:15:54 + > @@ -115,12 +115,10 @@

Re: [apparmor] [patch 15/12] v3 unix socket rules

2014-09-02 Thread Seth Arnold
o to the end of the copied data. > Instead the write head is set to the beginning so that when the > new data for the command is written it overwrites the begging of > the command instead of appending to it. > > Signed-off-by: John Johansen > Acked-by: Seth Arnold Thanks >

Re: [apparmor] [patch 14/12] v3 unix socket rules

2014-08-29 Thread Seth Arnold
o allow specifying the unix perm with peer perms. This is allowed now > and even supported, since for unix sockets the peer accept is mediated in > the unix_stream_connect hook (something that is not possible in the > lsm accept hook). Acked-by: Seth Arnold Heh, "yes", "

Re: [apparmor] [patch] utils/tests: fix bashisms in runtests-py2.sh

2014-08-29 Thread Seth Arnold
On Fri, Aug 29, 2014 at 02:29:48PM -0700, Steve Beattie wrote: > Bleah, sorry, I managed to not refresh the patch before sending it out. > Here's v2 of the patch. > > Signed-off-by: Steve Beattie Acked-by: Seth Arnold Thanks > --- > utils/test/runtests-py2.sh |2

Re: [apparmor] [patch 12/12] map the net permission set into a form compatible with the old dfa table

2014-08-29 Thread Seth Arnold
On Fri, Aug 29, 2014 at 01:23:42PM -0700, John Johansen wrote: > >> +static uint32_t map_perms(uint32_t mask) > >> +{ > >> + return (mask & 0x7f) | > >> + ((mask & (AA_NET_GETATTR | AA_NET_SETATTR)) << (AA_OTHER_SHIFT > >> - 8)) | > >> + ((mask & (AA_NET_ACCEPT | AA_NET_BIND | A

Re: [apparmor] [patch 13/12] v3 unix socket rules

2014-08-29 Thread Seth Arnold
On Fri, Aug 29, 2014 at 12:40:37PM -0700, John Johansen wrote: > This changes/fixes the encoding for unix socket rules. > > the changes look larger than they are because it refactors the code, instead > of duplicating. > > The major changes are: > - it changes where the accept perm is stored > -

Re: [apparmor] Fwd: Bug#756807: apparmor: FTBFS with clang instead of gcc

2014-08-29 Thread Seth Arnold
This patch adds 'static' to all inlined functions in the parser_interface.c file to address Debian bug 756807. The parser still passed 'make check' when compiled with gcc. I haven't compiled the package with clang to ensure that this is sufficient. Signed-off

Re: [apparmor] Fwd: Bug#756807: apparmor: FTBFS with clang instead of gcc

2014-08-29 Thread Seth Arnold
On Thu, Aug 28, 2014 at 05:37:45PM -0700, intrigeri wrote: > Hi, > > here's a bug that was reported on Debian. I guess that's an upstream > issue. I've not checked if the problem and/or patch applies to the > 2.9.x series. > Interesting reading, I hadn't heard this before: In C99, inline me

Re: [apparmor] [PATCH] tests: Add dbus tests for unrequested reply messages

2014-08-28 Thread Seth Arnold
when it detects that a message is an unrequested reply. > > Signed-off-by: Tyler Hicks Acked-by: Seth Arnold There's some small suggestions for usability improvements inline: Thanks > --- > tests/regression/apparmor/Makefile | 7 +- > tests/regressio

Re: [apparmor] [Merge] lp:~intrigeri/apparmor-profiles/gstreamer-abstraction into lp:apparmor-profiles

2014-08-27 Thread Seth Arnold
On Thu, Aug 28, 2014 at 12:42:36AM -, intrigeri wrote: > Ping? Thanks for the reminder! Merged. Thanks signature.asc Description: Digital signature -- AppArmor mailing list AppArmor@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/apparmor

Re: [apparmor] [PATCH 2/2] parser: Don't write the stream's address to the rule buffer

2014-08-27 Thread Seth Arnold
On Wed, Aug 27, 2014 at 05:01:46PM -0500, Tyler Hicks wrote: > The writeu16() function was returning the address of the passed in > std::ostringstream and then the callers of that function were > incorrectly writing that address to the rule buffer. > > Signed-off-by: Tyler Hicks

Re: [apparmor] [PATCH 1/2] parser: Adjust writeu16() to output escaped byte sequences

2014-08-27 Thread Seth Arnold
ses u8 pointers, instead of char pointers, when writing out > the big endian u16 value. More importantly, it casts the u8 values to > unsigned ints, which is what's needed to get the properly escaped byte > sequences. > > Signed-off-by: Tyler Hicks Acked-by: Seth Arnold Thank

Re: [apparmor] [PATCH] 02/04 abstraction updates for abstract, anonymous and netlink

2014-08-27 Thread Seth Arnold
On Wed, Aug 27, 2014 at 04:47:01PM -0500, Jamie Strandboge wrote: > On 08/27/2014 04:34 PM, Jamie Strandboge wrote: > > > Starting a subthread for some additions to John's patches. This series > > assumes > > John's 12 patches are applied and includes updates to the apparmor.d man > > page > > a

Re: [apparmor] [PATCH] 01/04 man page update for abstract, anonymous and netlink

2014-08-27 Thread Seth Arnold
an page update to: > - fix typo > - fix whitespace > - add netlink > - update for change from path to addr > - remove TODO items > - add and document examples > - remove undocumented 'unix server addr=@foo,' example > > Acked-By: Jamie Strandboge Acked-by

Re: [apparmor] [patch 02/12] parser: Add support for unix domain socket rules.

2014-08-27 Thread Seth Arnold
nt this exactly. Currently, the parser does not accept the following: > > unix send, > unix receive, > unix server, > unix (server), > > Implementing the latter two requires a bit of complexity that I wasn't > prepared to tackle at this moment. The fo

Re: [apparmor] [patch 12/12] map the net permission set into a form compatible with the old dfa table

2014-08-26 Thread Seth Arnold
On Mon, Aug 25, 2014 at 05:06:17PM -0700, john.johan...@canonical.com wrote: > The old dfa table format has 2 64 bit permission field used to store > all of allow, quiet, audit, owner/!owner and transition mask. This leaves > 7 bits for entry + a few other special bits. > > Since policydb entries

Re: [apparmor] [patch 11/12] split accept perm processing from rule parsing

2014-08-26 Thread Seth Arnold
On Mon, Aug 25, 2014 at 05:06:16PM -0700, john.johan...@canonical.com wrote: > Signed-off-by: John Johansen > Acked-by: Steve Beattie Acked-by: Seth Arnold Thanks > > --- > parser/libapparmor_re/aare_rules.cc | 75 > > 1 file c

Re: [apparmor] [patch 10/12] Refactor add_new_state into two version, one that splits anodes from nnodes, and one for use when anodes and nnodes are presplit

2014-08-26 Thread Seth Arnold
On Mon, Aug 25, 2014 at 05:06:15PM -0700, john.johan...@canonical.com wrote: > Signed-off-by: John Johansen > Acked-by: Steve Beattie Acked-by: Seth Arnold (You have no idea how confused I was to see: nnodev = nnodes_cache.insert(nnodes); anodes = anodes_cache.insert(anodes); Achie

Re: [apparmor] [patch 09/12] Refactor the process_work_queue code into its own fn

2014-08-26 Thread Seth Arnold
On Mon, Aug 25, 2014 at 05:06:14PM -0700, john.johan...@canonical.com wrote: > Signed-off-by: John Johansen > Acked-by: Steve Beattie Acked-by: Seth Arnold Thanks > > === modified file 'parser/libapparmor_re/hfa.cc' > --- > parser/

Re: [apparmor] [patch 08/12] Refactor accept nodes to be common to a shared node type

2014-08-26 Thread Seth Arnold
On Mon, Aug 25, 2014 at 05:06:13PM -0700, john.johan...@canonical.com wrote: > The shared node type will be used in the future to add new capabilities > > Signed-off-by: John Johansen > Acked-by: Steve Beattie Acked-by: Seth Arnold > +class MatchFlag: public AcceptN

Re: [apparmor] [patch 05/12] Fix segfault in af_unix rule processing

2014-08-26 Thread Seth Arnold
t; after the conversion from 'path' to 'addr' occurs, to simplify things a > bit. > > Signed-off-by: Steve Beattie > Acked-by: John Johansen Acked-by: Seth Arnold Thanks > > --- > parser/af_unix.cc |2 +- > 1 file changed, 1 ins

Re: [apparmor] [patch 04/12] And this version actually implements it. Le sigh. But hurrah for having testcases so that it was possible to discover that this was the case.

2014-08-26 Thread Seth Arnold
On Mon, Aug 25, 2014 at 05:06:09PM -0700, john.johan...@canonical.com wrote: > Signed-off-by: Steve Beattie Acked-by: Seth Arnold Minor suggestions inline. Thanks > --- > parser/af_unix.cc| 46 +-- > pars

Re: [apparmor] [patch 03/12] This is the patch Im testing on top of patch 6 locally to address these

2014-08-26 Thread Seth Arnold
On Mon, Aug 25, 2014 at 05:06:08PM -0700, john.johan...@canonical.com wrote: > Signed-off-by: Steve Beattie > Acked-by: John Johansen Acked-by: Seth Arnold Thanks > > --- > parser/af_rule.cc |2 +- > parser/af_unix.cc |2 +- > 2 files changed, 2 inser

Re: [apparmor] [patch 02/12] parser: Add support for unix domain socket rules.

2014-08-26 Thread Seth Arnold
On Mon, Aug 25, 2014 at 05:06:07PM -0700, john.johan...@canonical.com wrote: > This patch implements parsing of fine grained mediation for unix domain > sockets, that have abstract and anonymous paths. Sockets with file > system paths are handled by regular file access rules. Acked

Re: [apparmor] [patch 02/12] parser: Add support for unix domain socket rules.

2014-08-26 Thread Seth Arnold
On Tue, Aug 26, 2014 at 03:31:26PM -0700, Seth Arnold wrote: > On Mon, Aug 25, 2014 at 05:06:07PM -0700, john.johan...@canonical.com wrote: > > This patch implements parsing of fine grained mediation for unix domain > > sockets, that have abstract and anonymous paths. Sockets with

Re: [apparmor] [patch 02/12] parser: Add support for unix domain socket rules.

2014-08-26 Thread Seth Arnold
On Mon, Aug 25, 2014 at 05:06:07PM -0700, john.johan...@canonical.com wrote: > This patch implements parsing of fine grained mediation for unix domain > sockets, that have abstract and anonymous paths. Sockets with file > system paths are handled by regular file access rules. One quick question ..

Re: [apparmor] [patch] parser: initialize perms in unix_rule constructor

2014-08-26 Thread Seth Arnold
; access cannot be used > > with message rule conditionals\n"); > > + else if ((mode & AA_NET_ACCEPT) && > > +((mode & AA_PEER_NET_PERMS) || has_peer_conds())) > > + /* Do we want to loosen this? */ >

Re: [apparmor] [patch 01/12] fix build dependencies from .c to .cc

2014-08-25 Thread Seth Arnold
On Mon, Aug 25, 2014 at 05:06:06PM -0700, john.johan...@canonical.com wrote: > Signed-off-by: John Johansen Acked-by: Seth Arnold Thanks > > --- > parser/Makefile | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) > > --- 2.9-test.orig/parser/Ma

Re: [apparmor] [patch 08/12] Refactor rule accumulation to use some helper functions

2014-08-21 Thread Seth Arnold
On Fri, Aug 15, 2014 at 12:20:43PM -0700, john.johan...@canonical.com wrote: > Signed-off-by: John Johansen Acked-by: Seth Arnold Thanks > > --- > parser/libapparmor_re/aare_rules.cc | 28 ++-- > parser/libapparmor_re/aare_rules.h |1 + > 2

Re: [apparmor] [patch 13/12] map the net permission set into a form compatible with the old dfa table

2014-08-21 Thread Seth Arnold
On Thu, Aug 21, 2014 at 02:45:19PM -0700, John Johansen wrote: > so this should apply on top of the v2 patches and is the new direction > for handling the permission issues for the af_unix socket rules. > > > map the net permission set into a form compatible with the old dfa table > > The old df

Re: [apparmor] [patch 07/12] Move nodeset caching into expr-tree.h

2014-08-20 Thread Seth Arnold
t; into expr-tree > > Signed-off-by: John Johansen I asked some questions inline, but since this patch didn't introduce any of what I'm curious about: Acked-by: Seth Arnold Thanks > > --- > parser/libapparmor_re/expr-tree.h | 176 > +

Re: [apparmor] [PATCH] update nameservice abstraction for extrausers

2014-08-20 Thread Seth Arnold
On Wed, Aug 20, 2014 at 10:11:52PM -0500, Jamie Strandboge wrote: > Allow /var/lib/extrausers/group and /var/lib/extrausers/passwd 'read' in order > to work with libnss-extrausers > > Acked-By: Jamie Strandboge Acked-by: Seth Arnold Yeah, this is currently Ubuntu-specifi

Re: [apparmor] [PATCH] update dnsmasq policy for new libvirt lease helper

2014-08-20 Thread Seth Arnold
On Wed, Aug 20, 2014 at 07:20:09PM -0500, Jamie Strandboge wrote: > Newer version of libvirt have a lease helper. Update dnsmasq policy for this. > > Acked-By: Jamie Strandboge Acked-by: Seth Arnold Thanks > -- > Jamie Strandboge http://www.ubuntu.com/

Re: [apparmor] [PATCH] perl multiarch updates v2

2014-08-20 Thread Seth Arnold
http://www.ubuntu.com/ > Author: Jamie Strandboge Acked-by: Seth Arnold Thanks > Description: update perl abstraction, logprof.conf, severity.db and test for > Debian/Ubuntu perl multiarch paths > Forwarded: yes > > Index: apparmor-2.8.96~254

Re: [apparmor] [patch 06/12] parser: Add support for unix domain socket rules.

2014-08-15 Thread Seth Arnold
On Fri, Aug 15, 2014 at 12:20:41PM -0700, john.johan...@canonical.com wrote: > This patch implements parsing of fine grained mediation for unix domain > sockets, that have abstract and anonymous paths. Sockets with file > system paths are handled by regular file access rules. Sorry, no feedback ye

Re: [apparmor] [patch 05/12] Make the af type protocol mappings available for use

2014-08-15 Thread Seth Arnold
On Fri, Aug 15, 2014 at 12:20:40PM -0700, john.johan...@canonical.com wrote: > Signed-off-by: John Johansen > Acked-by: Seth Arnold Missed previously, the prototype for this function was introduced in the previous patch. > +const struct network_tuple *net_find_mapping(const cha

Re: [apparmor] [patch 04/12] add generic lookup of af_name mappings

2014-08-15 Thread Seth Arnold
On Fri, Aug 15, 2014 at 12:20:39PM -0700, john.johan...@canonical.com wrote: > Signed-off-by: John Johansen The code here is fine but this patch adds a prototype for net_find_mapping() -- which is actually added in the next patch. With the prototype moved, Acked-by: Seth Arnold Tha

Re: [apparmor] [patch 02/12] group network rule bits into their own file

2014-08-15 Thread Seth Arnold
On Fri, Aug 15, 2014 at 12:20:37PM -0700, john.johan...@canonical.com wrote: > Signed-off-by: John Johansen Acked-by: Seth Arnold I know the question isn't raised in this patch, but I think we should uncomment icmpv6. I don't see any need for icmp and ipv6, I've never once h

Re: [apparmor] License and copyright of ~apparmor-dev/apparmor-profiles?

2014-08-15 Thread Seth Arnold
On Fri, Aug 15, 2014 at 10:11:01AM +0200, intrigeri wrote: > Hi, > > we're missing some information before some profiles taken from > ~apparmor-dev/apparmor-profiles can enter Debian: > > * This repo has a LICENSE file that contains GPL-2, which is a great > start, but I found no copyright

Re: [apparmor] WTF changed in latest aa-enforce?!

2014-08-13 Thread Seth Arnold
On Thu, Aug 14, 2014 at 08:30:29AM +0800, Aaron Lewis wrote: > Okay, Thanks Seth. So > > 1. A comma is needed even if it's the last line before the ending '}' > -- That's a change The trailing comma on every rule has been part of AppArmor since I started working on it back in 2000. It's one o

Re: [apparmor] WTF changed in latest aa-enforce?!

2014-08-13 Thread Seth Arnold
/foo/ = True + /foo/bar = True + /foo/bar/ = True + /foo/bar/baz = True + /foo/bar/baz/ = True + /bar/ = False Signed-off-by: Seth Arnold Thanks signature.asc Description: Digital signature -- AppArmor mailing list AppArmor@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/apparmor

Re: [apparmor] WTF changed in latest aa-enforce?!

2014-08-12 Thread Seth Arnold
On Wed, Aug 13, 2014 at 12:51:18PM +0800, Aaron Lewis wrote: > I just upgraded to Ubuntu 14.04 and every profile I write is invalid now, WTF? > Did you guys complete rewritten all script with python? That's really FUNNY I'm sorry this failed you. Our Perl-based utilities were more fragile than th

Re: [apparmor] [Merge] lp:~intrigeri/apparmor-profiles/gdm-pulseaudio-v2 into lp:apparmor-profiles

2014-08-11 Thread Seth Arnold
> > Looks good to me, thanks. > > Thanks for the review. > > > Acked-by: Seth Arnold > > Sorry, newbie question, I'm not fully familiar with the review'n'merge process > yet: what's the next thing to do to get this branch merged, and who is >

Re: [apparmor] [PATCH] tests: Update unix_socket.sh for kernel ABI v7

2014-08-11 Thread Seth Arnold
rw' permissions for the parent process. This > change detects the current kernel ABI version and adjusts the parent > process's confinement appropriately. It also performs a negative test to > make sure that 'w' is not sufficient. > > Signed-off-by: Tyler Hicks A

Re: [apparmor] [PATCH 4/4] tests: Minimal update to make unix_socket.sh aware of abstract sockets

2014-08-11 Thread Seth Arnold
r Hicks Acked-by: Seth Arnold Thanks > --- > tests/regression/apparmor/unix_socket.sh | 115 > ++- > 1 file changed, 82 insertions(+), 33 deletions(-) > > diff --git a/tests/regression/apparmor/unix_socket.sh > b/tests/regression/apparmor/uni

Re: [apparmor] [PATCH 3/4] tests: Modify unix_socket/unix_socket_client to accept abstract names

2014-08-11 Thread Seth Arnold
On Mon, Aug 11, 2014 at 03:08:11PM -0500, Tyler Hicks wrote: > Signed-off-by: Tyler Hicks Acked-by: Seth Arnold .. though the design doesn't allow for giving a unix socket abstract name with an embedded 0x00 byte in the middle of the name; having an embedded NUL in the middle of

Re: [apparmor] [PATCH 2/4] tests: Rename the unix_socket_file test to unix_socket

2014-08-11 Thread Seth Arnold
On Mon, Aug 11, 2014 at 03:08:10PM -0500, Tyler Hicks wrote: > Rename the test in preparation for expanding its capabilities to cover > all UNIX domain socket address format types. > > Signed-off-by: Tyler Hicks Acked-by: Seth Arnold Thanks > --- > tests/regression

Re: [apparmor] [PATCH 1/4] tests: Don't leak socket fd to child process

2014-08-11 Thread Seth Arnold
On Mon, Aug 11, 2014 at 03:08:09PM -0500, Tyler Hicks wrote: > Signed-off-by: Tyler Hicks Acked-by: Seth Arnold Thanks > --- > tests/regression/apparmor/unix_socket_file.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/tests/r

Re: [apparmor] What's the right way to enforce program in systemd service?

2014-08-11 Thread Seth Arnold
On Wed, Aug 06, 2014 at 08:41:40AM +0800, Aaron Lewis wrote: > Hi, > > I add a few lines in a systemd service, does it look unnecessary to you? > Or should I do all this after system is fully booted, that apply it to > an already running program? > > "Use of uninitialized value $ENV{"TERM"} in ha

Re: [apparmor] [patch] smbd: changed cachedir in openSUSE

2014-08-11 Thread Seth Arnold
//bugzilla.novell.com/show_bug.cgi?id=869787 > > I propose this patch for trunk and the 2.8 branch. Acked by: Seth Arnold For both trunk and 2.8. thanks > > > === modified file 'profiles/apparmor.d/usr.sbin.smbd' > --- profiles/apparmor.d/usr.sbin.smbd 2014-02-14 01:15

Re: [apparmor] [patch] dovecout.auth profile update

2014-08-11 Thread Seth Arnold
e password list, > allowing to read the config doesn't add any harm ;-) > > References: https://bugzilla.novell.com/show_bug.cgi?id=874094 Acked-by: Seth Arnold Thanks > > === modified file 'profiles/apparmor.d/usr.lib.dovecot.auth' > --- profiles/apparm

Re: [apparmor] [patch 1/1] parser: Add support for unix domain socket rules.

2014-08-07 Thread Seth Arnold
On Wed, Aug 06, 2014 at 07:17:25AM -0700, john.johan...@canonical.com wrote: > This patch implements parsing of fine grained mediation for unix domain > sockets, that have abstract and anonymous paths. Sockets with file > system paths are handled by regular file access rules. Several bugs and seve

Re: [apparmor] [patch 2/5] group network rule bits into their own file

2014-08-07 Thread Seth Arnold
On Thu, Aug 07, 2014 at 04:03:35PM -0700, Seth Arnold wrote: > On Wed, Aug 06, 2014 at 05:32:46AM -0700, john.johan...@canonical.com wrote: > > Signed-off-by: John Johansen > > I found a bug; it and other comments inline. Ah, I see you already found and fixed it in a later pat

Re: [apparmor] [patch 5/5] Make the af type protocol mappings available for use

2014-08-07 Thread Seth Arnold
On Wed, Aug 06, 2014 at 05:32:49AM -0700, john.johan...@canonical.com wrote: > Signed-off-by: John Johansen Hah, of course this fixes the bug I spotted earlier. :) Acked-by: Seth Arnold Thanks > --- > parser/network.c | 49 -

Re: [apparmor] [patch 4/5] add generic lookup of af_name mappings

2014-08-07 Thread Seth Arnold
On Wed, Aug 06, 2014 at 05:32:48AM -0700, john.johan...@canonical.com wrote: > Signed-off-by: John Johansen Looks good in itself, but I noticed that the network_families array is missing values 0, 12, 27, and 28 when built on my trusty laptop. So, uh, is 'return i' and 'return network_families[af

Re: [apparmor] [patch 3/5] provide a mapping of sock type and name and a fn to look access the mapping

2014-08-07 Thread Seth Arnold
On Wed, Aug 06, 2014 at 05:32:47AM -0700, john.johan...@canonical.com wrote: > Signed-off-by: John Johansen Acked-by: Seth Arnold Thanks > --- > parser/network.c | 54 > +- > parser/network.h |3 +++ > 2 files chan

Re: [apparmor] [patch 2/5] group network rule bits into their own file

2014-08-07 Thread Seth Arnold
On Wed, Aug 06, 2014 at 05:32:46AM -0700, john.johan...@canonical.com wrote: > Signed-off-by: John Johansen I found a bug; it and other comments inline. Thanks > --- > parser/Makefile | 11 + > parser/network.c | 336 > +++ > parser/

Re: [apparmor] [patch 1/5] put the gettext define in one place

2014-08-07 Thread Seth Arnold
On Wed, Aug 06, 2014 at 05:32:45AM -0700, john.johan...@canonical.com wrote: > Signed-off-by: John Johansen Acked-by: Seth Arnold One of the files changes an #include to //#include -- that line can probably be deleted, I didn't see any reason to keep the header file, and you know my

Re: [apparmor] [Merge] lp:~intrigeri/apparmor-profiles/gstreamer-abstraction into lp:apparmor-profiles

2014-07-28 Thread Seth Arnold
On Sat, Jul 26, 2014 at 03:09:23PM -, intrigeri wrote: > OK, apparently it's easier for you folks to review stuff proposed on lp than > submitted to the mailing-list, so... here we go :) > https://code.launchpad.net/~intrigeri/apparmor-profiles/gstreamer-abstraction/+merge/228398 Sorry. May

Re: [apparmor] [Merge] lp:~intrigeri/apparmor-profiles/gdm-pulseaudio-v2 into lp:apparmor-profiles

2014-07-28 Thread Seth Arnold
On Sat, Jul 26, 2014 at 03:15:33PM -, intrigeri wrote: > intrigeri has proposed merging > lp:~intrigeri/apparmor-profiles/gdm-pulseaudio-v2 into lp:apparmor-profiles. Looks good to me, thanks. Acked-by: Seth Arnold > === modified file 'ubuntu/14.10/usr.bin.pulseaudio'

Re: [apparmor] [patch] aa-mergeprof - fix UI_* and AA_MAY_EXEC location

2014-07-27 Thread Seth Arnold
ange breaking aa-mergeprof was (in apparmor/aa.py): > 0.1.98sbeatti | import apparmor.ui as aaui > (the line was from apparmor.ui import * before) > > > > Updated patch: > > This patch fixes aa-mergeprof to > - import apparmor.ui as aaui > - call aaui.UI_*

Re: [apparmor] [patch] some more globbing tests

2014-07-27 Thread Seth Arnold
On Sat, Jul 26, 2014 at 07:15:58PM +0200, Christian Boltz wrote: > Hello, > > this patch adds some more globbing tests for globs with extension, > including filenames that contain a * wildcard and a .* regex wildcard. > Acked-by: Seth Arnold Thanks > > === modi

Re: [apparmor] [patch] utils: make all tests consistent in verbosity

2014-07-25 Thread Seth Arnold
akes sense. Acked-by: Seth Arnold Thanks > --- > utils/test/aa_test.py |2 +- > utils/test/test-aa-decode.py|2 +- > utils/test/test-dbus_parse.py |2 +- > utils/test/test-mount_parse.py |2 +- > utils/test/test-pivot_root_p

Re: [apparmor] How to confine querying of /proc to /proc/self?

2014-07-24 Thread Seth Arnold
On Thu, Jul 24, 2014 at 12:30:21AM -0007, Cameron Norman wrote: > I have a profile with the rule "/proc/self/** r,", however the > application is not allowed to access /proc/self. > > Since /proc/self is a symlink, it resolves to the actual directory, > then the process trying to query its own att

Re: [apparmor] [patch] utils: add CAP_AUDIT_READ to severity.db

2014-07-21 Thread Seth Arnold
E, which are both considered severity 8. > > This patch is both for trunk and the 2.8 branch. > > Signed-off-by: Steve Beattie Acked-by: Seth Arnold '7' matches CAP_DAC_READ_SEARCH, makes sense to me. Thanks > --- > utils/severity.db |1 + > 1 file

Re: [apparmor] [patch] remove unused LOG_MODE_RE in logparser.py

2014-07-14 Thread Seth Arnold
PROFILE_MODE_DENY_RE = re.compile('r|w|l|m|k|a|x') > How confusing -- logparser.py has a LOG_MODE_RE variable it doesn't use but it does have a PROFILE_MODE_RE -- and aamode.py uses a LOG_MODE_RE variable? Should we be renaming variables along the way to make them make some kind of sens

Re: [apparmor] [patch] fix LOG_MODE_RE in aamode.py

2014-07-14 Thread Seth Arnold
|l|m|k|a|x|ix|ux|px|cx|nx|pix|cix|Ix|Ux|Px|PUx|Cx|Nx|Pix|Cix)') > +LOG_MODE_RE = > re.compile('(r|w|l|m|k|a|x|ix|ux|px|pux|cx|nx|pix|cix|Ux|Px|PUx|Cx|Nx|Pix|Cix)') > MODE_MAP_RE = re.compile('(r|w|l|m|k|a|x|i|u|p|c|n|I|U|P|C|N)') > > def str_to_mode

Re: [apparmor] [2.8 patch] libapparmor: fix log parsing memory leaks

2014-07-11 Thread Seth Arnold
d records containing network addresses. > > Bug: https://bugs.launchpad.net/bugs/1340927 > Signed-off-by: Steve Beattie Acked-by: Seth Arnold Thanks > > --- > libraries/libapparmor/src/grammar.y | 14 -- > libraries/libapparmor/src/libaalogparse.c |

Re: [apparmor] [patch] fix log parsing memory leaks

2014-07-11 Thread Seth Arnold
et/bugs/1340927 > Signed-off-by: Steve Beattie Wow, nice catch and fast debugging. Acked-by: Seth Arnold Thanks > --- > libraries/libapparmor/src/grammar.y | 16 +--- > libraries/libapparmor/src/libaalogparse.c |4 > 2 files changed, 13 insertions(+)

<    2   3   4   5   6   7   8   9   10   11   >