Re: [apparmor] [patches] avoid building tech doc during build

2016-12-12 Thread Seth Arnold
to build. > > Here's the patch to do that as well, by creating an extra_docs target > and using it as part of the tarball generation: > > Signed-off-by: Steve Beattie <st...@nxnw.org> Acked-by: Seth Arnold <seth.arn...@canonical.com> .. though this needs to add ext

Re: [apparmor] [patch] build: stop tarball builds on error

2016-12-12 Thread Seth Arnold
lowing patch addresses that. > > Signed-off-by: Steve Beattie <st...@nxnw.org> Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > --- > Makefile | 12 ++-- > 1 file changed, 6 insertions(+)

Re: [apparmor] [patch] Add change_onexec log example to test_multi

2016-12-12 Thread Seth Arnold
On Fri, Dec 09, 2016 at 11:19:54PM +0100, Christian Boltz wrote: > Hello, > > $subject. > > Found in https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1648143 > comment 1 > > > [ test_multi-change_onexec.diff ] Acked-by: Seth Arnold <seth.ar

Re: [apparmor] [Contd.] [profile] /etc/cron.daily/logrotate: a couple of DENIED messages.

2016-12-12 Thread Seth Arnold
On Fri, Dec 09, 2016 at 01:01:26PM +0100, daniel curtis wrote: > Dec 9 12:44:03 t4 kernel: [ 1899.771574] type=1400 > audit(1481283842.997:46): apparmor="DENIED" operation="capable" parent=8174 > profile="/etc/cron.daily/logrotate" pid=8179 comm="logrotate" capability=3 > capname="fowner" > >

Re: [apparmor] [Contd.] [profile] /etc/cron.daily/logrotate: a couple of DENIED messages.

2016-12-08 Thread Seth Arnold
On Thu, Dec 08, 2016 at 12:52:42PM +0100, daniel curtis wrote: > One more thing; I would like to ask about adding Mr Seth Arnold to > Copyright (C) message, because he helped me a lot with a logrotate profile. > Do you agree? Can I do it? By the way: thank You very much. Nah, there'

Re: [apparmor] [PATCH] make aa-unconfined include ipv6

2016-12-01 Thread Seth Arnold
On Thu, Dec 01, 2016 at 04:13:26PM -0800, John Johansen wrote: > aa-unconfined currently does not check/display ipv6 fix this Sorry to say this isn't sufficient to fix the issue. To test, run in one terminal: nc -6 -l 1234 and check that aa-unconfined still doesn't show the process. The

Re: [apparmor] [patch] documentaion: add Makefile to generate pdfs from odt files

2016-12-01 Thread Seth Arnold
On Thu, Dec 01, 2016 at 02:46:10PM -0800, Steve Beattie wrote: > Here's what the Makefile would look like after the renaming of the odt > files occurred (much simpler): This is much easier on the eyes :) If John doesn't hate the renaming.. Acked-by: Seth Arnold <seth.arn...@cano

Re: [apparmor] wayland paths

2016-11-30 Thread Seth Arnold
On Wed, Nov 30, 2016 at 03:11:53PM -0800, Steve Beattie wrote: > >owner /{,var/}run/user/*/weston-shared-* rw, > Can we kill the first rule? Or at least only have the /var/ path, since > the non-var path is covered by the last rule? I like the "only the /var/ path" option; that's what I went

Re: [apparmor] Bug#845005: AppArmor profile denies paths for gtk2-engines-bixbuf and themes

2016-11-21 Thread Seth Arnold
On Sun, Nov 20, 2016 at 05:41:09PM +0100, Christian Boltz wrote: > [patch] Update abstractions/gnome with versioned gtk paths > > I propose this patch for trunk, 2.10 and 2.9. Acked-by: Seth Arnold <seth.arn...@canonical.com> Acked for all three Thanks > > > [

Re: [apparmor] [patch] logparser.py parse_event(): always store family, protocol and sock_type

2016-11-18 Thread Seth Arnold
check the library sources (src/grammar.y calls _init_log_record() which performs a memset() on the object) and I'm now content with these changes. Acked-by: Seth Arnold <seth.arn...@canonical.com> > Because they are not related to file or network events ;-) and I don't > (yet?) see a need to

Re: [apparmor] [patch] logparser.py parse_event(): always store family, protocol and sock_type

2016-11-18 Thread Seth Arnold
On Fri, Nov 18, 2016 at 10:39:10PM +0100, Christian Boltz wrote: > I propose this patch for trunk and 2.10. > (2.9 logparser.py code is slightly different, and I don't want to risk > breaking it) > > > [ 01-logparser-always-store-protocol-family-sock_type.diff ] > > === modified file

Re: [apparmor] [profile] Firefox: "DENIED", requested/denied_mask="r" for /proc/*/net/arp.

2016-11-18 Thread Seth Arnold
On Fri, Nov 18, 2016 at 07:47:48PM +0100, daniel curtis wrote: > So if AppArmor DENIED /proc/2496/net/arp (requested_mask="r" > denied_mask="r") access and according to yours words I should use such > rule: > > @{PROC}/[0-9]*/net/arp r, > > Am I right? It is a sufficient rule? Can you confirm

Re: [apparmor] [patch] Allow /var/lib/nscd in abstractions/nameservice and nscd profile

2016-11-18 Thread Seth Arnold
kport the new nscd paths to old systems) > > Any comments or reviews on this patch? > > If nobody objects, I'll commit it on Friday as Acked-by . Assuming the funny spacing below is due to KMail, Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > > >

Re: [apparmor] [patch] Allow /var/cache/samba/lck/* in abstractions/samba

2016-11-18 Thread Seth Arnold
ess to > > /var/cache/samba/lck/* on Debian 8.6. > > > > Reported by FLD on IRC. > > > > > > I propose this patch for trunk, 2.10 and 2.9. > > Any comments or reviews on this patch? > > If nobody objects, I'll commit it on Friday as

Re: [apparmor] [Merge] ~intrigeri/apparmor-profiles/+git/apparmor-profiles:gst-plugin-scanner_fix into apparmor-profiles:master

2016-11-16 Thread Seth Arnold
Review: Approve Thanks, merged -- https://code.launchpad.net/~intrigeri/apparmor-profiles/+git/apparmor-profiles/+merge/311020 Your team AppArmor Developers is subscribed to branch apparmor-profiles:master. -- AppArmor mailing list AppArmor@lists.ubuntu.com Modify settings or unsubscribe at:

Re: [apparmor] [patch] Fix 'alias' rule description in apparmor.d manpage

2016-11-16 Thread Seth Arnold
nchanged) and ALIAS RULE next to PREAMBLE. > > > I propose this patch for trunk and 2.10. Acked for both, Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > > The patch doesn't apply cleanly on the 2.9 apparmor.d manpage, and > people still using 2.9 proba

Re: [apparmor] [profile] /etc/cron.daily/logrotate: a couple of DENIED messages.

2016-11-14 Thread Seth Arnold
Hi Daniel, On Fri, Nov 11, 2016 at 11:43:23AM +0100, daniel curtis wrote: > So, if it's about both capability (capability dac_override and capability > dac_read_search) rules: I should add them to a logrotate profile, right? > And the rest of rules? You have written a comment about them, but

Re: [apparmor] [profile] /etc/cron.daily/logrotate: a couple of DENIED messages.

2016-11-10 Thread Seth Arnold
Hi Daniel, On Thu, Nov 10, 2016 at 09:19:21PM +0100, daniel curtis wrote: > No, I haven't installed any program etc., that try to 'correct' system > security and so on (not to mention security updates etc.) Strange. But... > chown(1) command (which you provided) and system restart seems to help -

Re: [apparmor] [profile] /etc/cron.daily/logrotate: a couple of DENIED messages.

2016-11-10 Thread Seth Arnold
On Thu, Nov 10, 2016 at 11:21:15AM +0100, daniel curtis wrote: > $ ls -al /var/log/kern.log > -rw--- 1 root root 0 lis 9 11:44 /var/log/kern.log > > $ ls -al /var/log/kern.log.1 > -rw-r- 1 syslog adm 1473399 lis 9 12:27 /var/log/kern.log.1 ## this > file can be opened by me > > $ ls

Re: [apparmor] [profile] /etc/cron.daily/logrotate: a couple of DENIED messages.

2016-11-09 Thread Seth Arnold
On Wed, Nov 09, 2016 at 12:21:39PM +0100, daniel curtis wrote: > Thanks for an answer. So these are rules, which I should add to the > /etc/cron.daily/logrotate profile, right? > > /var/lib/logrotate/ r, > /var/lib/logrotate/status.clean w, ## NOTE: in my system there is no such > file - there

Re: [apparmor] [patch] Update mlmmj profiles

2016-11-08 Thread Seth Arnold
s problem in the wild ;-) > > Also add a note that the mlmmj-recieve profile is probably superfluous > after upstream renamed the misspelled binary. > > > I propose this patch for trunk, 2.10 and 2.9 Acked-by: Seth Arnold <seth.arn...@canonical.com> Acked for all three. Thanks

Re: [apparmor] [patch] Beautify RlimitRule coverage report

2016-11-08 Thread Seth Arnold
eport. > > > [ 01-rlimit-coverage-pragma.diff ] Man just how wide -is- your terminal? :) Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > > === modified file ./utils/apparmor/rule/rlimit.py > --- utils/apparmor/rule/rlimit.py 2016-10-01 20:33:23.421684000

Re: [apparmor] [profile] /etc/cron.daily/logrotate: a couple of DENIED messages.

2016-11-08 Thread Seth Arnold
Hi Daniel, On Tue, Nov 08, 2016 at 03:31:42PM +0100, daniel curtis wrote: > I'm using pretty simple profile (similar to this one [1]). So, should I add > something like this to my existing profile?: > > 1) /var/lib/logrotate/status rw, ## it's sufficient to *_mask="c"? Don't forget that the

Re: [apparmor] [profile] Firefox: "DENIED", requested/denied_mask="r" for /proc/*/net/arp.

2016-11-07 Thread Seth Arnold
Hello Daniel, On Mon, Nov 07, 2016 at 09:59:19PM +0100, daniel curtis wrote: > Today, I've noticed some "strange" entries in some log files, such as: > /var/log/kern.log and /var/log/kern.log. Both files contains AppArmor > entries related to the Firefox. One of them is known and refers to >

Re: [apparmor] [patch] Update mlmmj profiles

2016-11-07 Thread Seth Arnold
grated. 3) I'd suggest not deleting the mlmmj-recieve for a year or two. Who knows how long it will be before the old name is removed everywhere. So, Acked-by: Seth Arnold <seth.arn...@canonical.com> for all three branches, with or without these suggested changes as you see fit. Thanks > >

Re: [apparmor] [patch] Add a test_multi testcase for dbus eavesdrop

2016-11-02 Thread Seth Arnold
On Wed, Nov 02, 2016 at 09:55:09PM +0100, Christian Boltz wrote: > That said - man apparmor.d tells me > > The 'eavesdrop' permission cannot be used in rules containing any > conditionals outside of the 'bus' conditional. > > and that's also what I did when implementing DbusRule in the

Re: [apparmor] Enabling email delivery for wordpress

2016-11-02 Thread Seth Arnold
On Wed, Nov 02, 2016 at 10:08:50PM +0200, Robert Munteanu wrote: > I am trying to secure my wordpress installation using apparmor. The > basic permissions are nothing special, until we get to email delivery. > > Wordpress by default always wants to use the php mail() function, > which in turn

Re: [apparmor] [patch] Add a test_multi testcase for dbus eavesdrop

2016-11-02 Thread Seth Arnold
On Tue, Nov 01, 2016 at 10:38:16PM +0100, Christian Boltz wrote: > Hello, > > $subject. > > The log line (with a different profile=...) was sitting around on my > disk since a year, so let's do something useful with it ;-) Yay! Acked-by: Seth Arnold <seth.arn...@canonic

Re: [apparmor] [patch] More test_multi profiles

2016-11-01 Thread Seth Arnold
files > - since we have *.profile files for all log events that should result in > a profile rule, no longer ignore FileNotFoundError > > > > [ 01-test_multi-all-profiles.diff ] Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > > === added file &g

Re: [apparmor] [Merge] ~sdeziel/apparmor-profiles/+git/apparmor-profiles:pulseaudio-usb into apparmor-profiles:master

2016-10-17 Thread Seth Arnold
Merged, thanks! -- https://code.launchpad.net/~sdeziel/apparmor-profiles/+git/apparmor-profiles/+merge/306708 Your team AppArmor Developers is requested to review the proposed merge of ~sdeziel/apparmor-profiles/+git/apparmor-profiles:pulseaudio-usb into apparmor-profiles:master. -- AppArmor

Re: [apparmor] [Merge] ~sdeziel/apparmor-profiles/+git/apparmor-profiles:pulseaudio-usb into apparmor-profiles:master

2016-10-17 Thread Seth Arnold
I'm sorry I overlooked this for so long. Do you then also need to add per-device rules to the local file to make it work? If so, should we add those device nodes to the profile here? Thanks -- https://code.launchpad.net/~sdeziel/apparmor-profiles/+git/apparmor-profiles/+merge/306708 Your team

Re: [apparmor] [patch] Test log to profile "translation"

2016-10-17 Thread Seth Arnold
mode.py (= 23 more lines) > - 26% -> 68% in logparser.py (= 120 more lines) > - total coverage increases from 57% to 62% > > > Note: to review this patch, you'll need to compare the *.profile files > to the *.in files. > > > > [ 01-test-log-to-profile.diff ] This i

Re: [apparmor] [patch] Drop unused 'found' counter from aa.py ask_the_questions()

2016-10-13 Thread Seth Arnold
On Fri, Oct 14, 2016 at 12:46:32AM +0200, Christian Boltz wrote: > Hello, > > $subject. > > > [ 02-drop-found-from-ask_the_questions.diff ] Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > > === modified file ./utils/apparmor/aa.py > --- utils/ap

Re: [apparmor] [patch] add network 'kcm' keyword to apparmor.d manpage

2016-10-13 Thread Seth Arnold
omething like > B = @@NETWORK_DOMAIN_KEYWORDS@@ > and then have a script that adjusts it (based on kernel features and/or > the python code)? > > > I propose this patch for trunk and 2.10. Acked for both. Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks >

Re: [apparmor] [patch] allow reading /tmp/.X11-unix/* in abstractions/X

2016-10-13 Thread Seth Arnold
k, 2.10 and 2.9 Acked for all three. Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > > > > [ abstractions-X.diff ] > > === modified file 'profiles/apparmor.d/abstractions/X' > --- profiles/apparmor.d/abstractions/X 2015-07-24 20:01:46 + > +++

Re: [apparmor] [patch] Move str_to_mode() tests to test-aamode.py

2016-10-11 Thread Seth Arnold
On Tue, Oct 11, 2016 at 10:39:22PM +0200, Christian Boltz wrote: > Is this the first time you read a test-*.py file? ;-) Hah, and thanks for the Long Version. :) The truth is, I review probably millions of lines of code each year and pretend I'm an expert in all of it; by necessity pretty much

Re: [apparmor] [patch] Move str_to_mode() tests to test-aamode.py

2016-10-11 Thread Seth Arnold
On Sun, Oct 09, 2016 at 08:32:48PM +0200, Christian Boltz wrote: > +class AamodeTest_str_to_mode(AATest): > +tests = [ > +('x', apparmor.aamode.AA_MAY_EXEC), > +('w', apparmor.aamode.AA_MAY_WRITE), > +('r', apparmor.aamode.AA_MAY_READ), > +('a',

Re: [apparmor] [patch] - fix exec_stack to work on pre 4.8 kernels

2016-10-04 Thread Seth Arnold
antic change is present and adjusts the test accordingly. Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > --- > > === modified file 'tests/regression/apparmor/exec_stack.sh' > --- tests/regression/apparmor/exec_stack.sh 2016-09-29 04:11:29 + > +++ tests/regression

Re: [apparmor] [patch] Drop unused matchregexp(), commonsuffix() and commonprefix() from aa.py

2016-10-03 Thread Seth Arnold
y.diff ] > My favorite thing, removing code that's commented out. :) Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > --- utils/apparmor/aa.py2016-10-01 21:01:03.863002592 +0200 > +++ utils/apparmor/aa.py2016-10-02 00:18:38.298646321 +0200 > @@

Re: [apparmor] [PATCH 1/2] libapparmor: Fix overflowed return value

2016-09-30 Thread Seth Arnold
> > Signed-off-by: Tyler Hicks <tyhi...@canonical.com> Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > --- > libraries/libapparmor/src/features.c | 12 ++-- > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/libraries/libapparm

Re: [apparmor] [PATCH] tests: Fix exec_stack.sh errors under 4.8 and newer kernels

2016-09-28 Thread Seth Arnold
versions.. so not as simple as I described it, but I hope you get the idea.) Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > --- > tests/regression/apparmor/exec_stack.sh | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/tests

Re: [apparmor] [patch] [02/38] check_and_split_list: optionally allow empty list

2016-09-14 Thread Seth Arnold
On Wed, Sep 14, 2016 at 04:32:16PM +0200, Christian Boltz wrote: > So a string also gets wrapped into a set (not a list) ;-) > (don't worry about getting it wrong - I also have to ask type() how an > array is named ;-) Ah! this was the core of my confusion. I hadn't realized sets are first-class

Re: [apparmor] [patch] [02/38] check_and_split_list: optionally allow empty list

2016-09-14 Thread Seth Arnold
case. > > > > [ 02-check_and_split_list-optionally-allow-empty-list.diff ] Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > > --- utils/apparmor/rule/__init__.py 2016-01-07 20:41:32.718787664 +0100 > +++ utils/apparmor/rule/__init__.py 2016-01-

Re: [apparmor] [patch] [10/38] RE_PATH: allow to match '/'

2016-09-14 Thread Seth Arnold
TH-allow-root.diff ] Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > > === modified file ./utils/apparmor/regex.py > --- utils/apparmor/regex.py 2016-02-01 21:31:56.427302903 +0100 > +++ utils/apparmor/regex.py 2016-01-26 22:22:31.505637218 +0100 > @@ -27,7 +27,7

Re: [apparmor] [patch] [07/38] Add tests for FileRule

2016-09-14 Thread Seth Arnold
On Fri, Aug 12, 2016 at 10:47:41PM +0200, Christian Boltz wrote: > Hello, > > as usual, we have 100% test coverage - at least until patch 22, which > introduces one 'partial' ;-) > > > [ 07-add-test-file.diff ] Acked-by: Seth Arnold <seth.arn...@canonical.co

Re: [apparmor] [patch] [05/38] Make sanity check in _is_covered_list() optional

2016-09-13 Thread Seth Arnold
y if exec_perms > are specified. > > This patch adds an optional parameter that allows to skip the sanity > check. > > > [ 05-is_covered_list-make-sanity-check-optional.diff ] Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > > --- utils/apparmor/rule/_

Re: [apparmor] [patch] [01/38] Pass 'strict' flag from is_equal to is_equal_localvars

2016-09-13 Thread Seth Arnold
is_equal_localvars > and adds it as function parameter in all existing rule classes. > It also adjusts test-baserule.py to test with the additional parameter. > > > [ 01-pass-strict-param-to-is_equal_localvars.diff ] Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks >

Re: [apparmor] [patch] Allow 'kcm' in network rules

2016-09-12 Thread Seth Arnold
parmor.vim ;-) > > > I propose this patch for trunk and 2.10. Acked for both: (Also I blame you for taking twenty minutes of my day with the interesting link. :) Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > > > > [ utils-network-kcm.diff ] >

Re: [apparmor] Support for owner specification

2016-08-24 Thread Seth Arnold
On Wed, Aug 24, 2016 at 09:10:35PM +0200, azu...@pobox.sk wrote: > >On Wed, Aug 24, 2016 at 10:46:49AM +0200, azu...@pobox.sk wrote: > >> owner=fred > can i, somehow, speed up the implementation? To financially sponsor it for > example? Not that i know of, all the engineers that are familiar

Re: [apparmor] Support for owner specification

2016-08-24 Thread Seth Arnold
On Wed, Aug 24, 2016 at 10:46:49AM +0200, azu...@pobox.sk wrote: > owner=fred > owner=1001 > owner=(fred) > owner=(fred george) > owner=(fred 1001) > Is this still not supported? If not, when it will be? Is support missing > only in userspace tools or directly in kernel? Hello Azur, none of

Re: [apparmor] [patch] Switch utils to python3

2016-08-23 Thread Seth Arnold
ff ] Looks good to me; I don't know what this means for the dh_python end of the Debian packaging secret handshake, but this looks like it makes sense as an upstream project to do. Thanks Acked-by: Seth Arnold <seth.arn...@canonical.com> > > === modified file ./'README' >

Re: [apparmor] [patch] type_is_str(): make pyflakes3 happy

2016-08-11 Thread Seth Arnold
implifies type_is_str(). > > > I propose this patch for trunk and 2.10. Acked-by: Seth Arnold <seth.arn...@canonical.com> Acked for both, thanks > > > [ 01-type_is_str-make-pyflakes3-happy.diff ] > > --- utils/apparmor/common.py2015-12-12 13:34:40.5459972

Re: [apparmor] [patch] winbindd profile: allow dac_override

2016-08-03 Thread Seth Arnold
On Wed, Aug 03, 2016 at 01:57:53PM +0200, Christian Boltz wrote: > Hello, > > $subject. > > This is needed to delete kerberos ccache files, for details see > https://bugzilla.opensuse.org/show_bug.cgi?id=990006#c5 > > > I propose this patch for trunk, 2.10 and

Re: [apparmor] program with a space in the name results in hashes where names should be

2016-07-28 Thread Seth Arnold
On Thu, Jul 28, 2016 at 11:38:38AM -0500, Jamie Strandboge wrote: > On Thu, 2016-07-28 at 14:19 +0100, Mark Wadham wrote: > > I tried to write an apparmor profile for plex media server, which has a  > > binary with spaces in the name. > > > [ 9551.412776] audit: type=1400

Re: [apparmor] Linked profiles in complain mode

2016-07-26 Thread Seth Arnold
On Tue, Jul 26, 2016 at 12:50:38PM +0100, Mark Wadham wrote: > aa-status shows: > > 9 profiles are in complain mode. >/usr/sbin/exim4//null-/usr/lib/dovecot/dovecot-lda > /usr/sbin/exim4//null-/usr/lib/dovecot/dovecot-lda//null-/usr/bin/doveconf >

Re: [apparmor] base abstraction for writing to systemd dev-log doesn't work

2016-07-25 Thread Seth Arnold
On Mon, Jul 25, 2016 at 02:26:11PM +0100, Mark Wadham wrote: > [130842.572874] audit: type=1400 audit(1469436340.177:2400): > apparmor="ALLOWED" operation="sendmsg" info="Failed name lookup - > disconnected path" error=-13 profile="/usr/sbin/dovecot" > name="run/systemd/journal/dev-log" pid=23971

Re: [apparmor] [patch] Allow mr for /usr/lib*/ldb/*.so in samba abstractions

2016-07-22 Thread Seth Arnold
.10 and 2.9. Does this make sense for instead? We mostly don't care about denying access to libraries. I don't mind this though so: Acked-by: Seth Arnold <seth.arn...@canonical.com> for all branches at your discretion. Thanks > > > [ samba-libs.diff ] > > > > === mo

Re: [apparmor] Deny network bind in profile

2016-07-22 Thread Seth Arnold
On Fri, Jul 22, 2016 at 08:11:08AM +, Georg Schoenberger wrote: > I am currently trying to deny a process from binding to network sockets. > Unfortunately the example from > http://wiki.apparmor.net/index.php/AppArmor_Core_Policy_Reference does > not work for me: > * deny network bind inet, >

Re: [apparmor] [PATCH/apparmor-profiles] Add profile for /usr/share/update-notifier/notify-reboot-required

2016-06-30 Thread Seth Arnold
On Thu, Jun 30, 2016 at 12:00:59PM -0700, Steve Beattie wrote: > Signed-off-by: Steve Beattie <st...@nxnw.org> Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > --- > .../usr.share.update-notifier.notify-reboot-required| 17 > +

Re: [apparmor] [PATCH] utils: Handle the safe/unsafe change_profile exec modes

2016-06-27 Thread Seth Arnold
hanged in newer versions. > Therefore, this patch simply retains any specified exec mode in parsed > rules. If an exec mode is not specified in a rule, there is no attempt > to force the usage of "safe" because older kernels do not support it. > > Signed-off-by: Tyler Hicks

Re: [apparmor] PATCH: apparmor.d man page

2016-06-07 Thread Seth Arnold
On Tue, Jun 07, 2016 at 01:46:46PM -0700, John Johansen wrote: > Add documentation of the profile flags and how to debug apparmor policy to > the apparmor.d man page This is great, thanks! Acked-by: Seth Arnold <seth.arn...@canonical.com> for all three branches. I've got some

Re: [apparmor] [patch] aa-genprof: ask about profiles in extra dir (again)

2016-05-31 Thread Seth Arnold
nally, also remove CMD_FINISHED from the get_profile() test in > test-translations.py. > > > I propose this patch for 2.9, 2.10 and trunk Acked-by: Seth Arnold <seth.arn...@canonical.com> for trunk Nice set of fixes; however I'm uncomfortable with making that large a ch

Re: [apparmor] [patch] translations: fix up msgfmt warnings

2016-05-23 Thread Seth Arnold
s up po files where the Report-Msgid-Bugs-To: field > had not been updated. > > Signed-off-by: Steve Beattie <st...@nxnw.org> Nice. Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > --- > binutils/po/de.po|3 ++- > binutils/po/en_GB.po |3 ++-

Re: [apparmor] [patch] Document empty quotes ("") as empty value of a variable

2016-05-20 Thread Seth Arnold
On Sun, Nov 15, 2015 at 08:44:00PM +0100, Christian Boltz wrote: > Hello, > > $subject. > > > [ document-empty-quotes-in-variables.diff ] Acked for all branches where this makes sense :) Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > > === modifi

Re: [apparmor] [patch] [1/9] add a named match group to RE_PROFILE_DBUS

2016-05-20 Thread Seth Arnold
y, and only matches[0..2] > are used. 0 and 1 are audit and allow/deny and 2 is and stays the whole > rule (except audit and allow/deny). Therefore no aa.py changes are > needed. > > > > [ 52-add-match-group-to-RE_PROFILE_DBUS.diff ] Acked-by: Seth Arnold <seth.arn...@canoni

Re: [apparmor] [patch] [9/9] Add support for dbus events to aa-logprof

2016-05-20 Thread Seth Arnold
fortunately there's no example log for eavesdrop, so it might be a > good idea to a) add such a log line and b) test with it > > > > [ 60-add-logprof-support-for-dbus-events.diff ] Heh, the text above was probably copy-pasted from a similar patch for ptrace :) but otherwise loo

Re: [apparmor] [patch] [8/9] Add support for handling dbus rules everywhere

2016-05-20 Thread Seth Arnold
to the aa-cleanprof test profiles to ensure > superfluous dbus rules get deleted. > > > [ 59-enable-DbusRule-everywhere.diff ] Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > --- utils/apparmor/aa.py2015-12-26 16:24:40.246989550 +0100 > +++ utils

Re: [apparmor] [patch] [7/9] Remove the DBUS_Rule class

2016-05-20 Thread Seth Arnold
can drop the proof of > concept class. > > > Also remove a commented, old version of RE_DBUS_ENTRY from aa.py > > > [ 58-delete-DBUS_Rule-class.diff ] Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > --- utils/apparmor/rules.py 2015-12-26 15:10:0

Re: [apparmor] [patch] [6/9] Use DbusRule and DbusRuleset

2016-05-20 Thread Seth Arnold
est-regex_matches.py to import RE_PROFILE_DBUS from > apparmor.regex instead of apparmor.aa. > > > [ 57-use-DbusRule.diff ] Acked-by: Seth Arnold <seth.arn...@canonical.com> THanks > > === modified file ./utils/apparmor/aa.py > --- utils/apparmor/aa.py2015

Re: [apparmor] [patch] [5/9] Add tests for DbusRule and DbusRuleset

2016-05-20 Thread Seth Arnold
ion to common_test.py to avoid > TypeError: not all arguments converted during string formatting > > > > [ 56-add-test-dbus.diff ] Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks (Also, where do I send a bill to buy a larger monitor? :) > > --- utils/

Re: [apparmor] [patch] [4/9] Add support for dbus events in parse_event()

2016-05-20 Thread Seth Arnold
On Sun, Dec 27, 2015 at 04:07:19PM +0100, Christian Boltz wrote: > Hello, > > this patch adds the dbus-specific details to the event data returned by > parse_event(). > > > [ 55-handle-dbus-events-in-parse_event.diff ] Acked-by: Seth Arnold <seth.arn..

Re: [apparmor] [patch] [3/9] Add DbusRule and DbusRuleset classes

2016-05-20 Thread Seth Arnold
bus ( send ), > will become > dbus send, > > > Note: r, read, w, write, rw are not documented in apparmor.d.pod. > > > > [ 54-add-DbusRule.diff ] Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > > --- utils/apparmor/rule/dbus.py 2015-12-27 00:

Re: [apparmor] [patch] [2/9] Add strip_parenthesis() to regex.py

2016-05-20 Thread Seth Arnold
On Sun, Dec 27, 2015 at 04:04:07PM +0100, Christian Boltz wrote: > Hello, > > some dbus rule conditionals come with optional parenthesis. Instead of > making the regex even more complicated, use a small function to strip > those parenthesis. > > Also add some tests for strip_parenthesis() to

Re: [apparmor] [patch] Ignore file events with a request mask of 'send' or 'receive'

2016-05-20 Thread Seth Arnold
us avoids crashing aa-logprof. > > References: https://bugs.launchpad.net/apparmor/+bug/1577051 > https://bugs.launchpad.net/apparmor/+bug/1582374 > > > I propose this patch for trunk, 2.10 and 2.9 Acked for all three, thanks. Acked-by: Seth Arnold <seth.arn...@c

Re: [apparmor] RBAC based on AppArmor

2016-05-09 Thread Seth Arnold
On Mon, May 09, 2016 at 02:09:09PM +0530, Adishesh M wrote: > is there any howto document available for updating httpd/apache profile to > include role based access. > i need to create two roles : one readonly access for httpd and other httpd > admin role. Hello Adishesh, Can you describe what

Re: [apparmor] [patch] Run utils tests with C locale

2016-05-06 Thread Seth Arnold
hecked with a modified de.po that in-tree hotkey conflicts still get > detected. > Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > > [ 78-run_utils_tests_with_C_locale.diff ] > > === modified file 'utils/test/Makefile' > --- utils/test/Makefile 2016-01-25 22:

Re: [apparmor] [patch] Add a test to check for hotkey conflicts

2016-05-05 Thread Seth Arnold
Note: you'lll get hotkey conflicts for the german translations. I fixed > them on lp already, so importing the latest translations should help ;-) > Nice catch. Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > > [ 77-check-hotkey-conflicts.diff ] > > --- utils/appar

Re: [apparmor] [patch] accept hostname with dots

2016-05-05 Thread Seth Arnold
On Thu, May 05, 2016 at 12:18:00PM +0200, Christian Boltz wrote: > > > .. though I'm worried that this kind of patch may break something > > > subtle. So I'd like to make sure that you've tried compile and > > > tests with this patch first? Sure, it _looks_ right, but flex is a > > > funny

Re: [apparmor] [patch] accept hostname with dots

2016-05-04 Thread Seth Arnold
ents > #1 and #2 (the log samples reported by scrx in #apparmor) > > > I propose this patch for trunk, 2.10 and 2.9. Acked-by: Seth Arnold <seth.arn...@canonical.com> .. though I'm worried that this kind of patch may break something subtle. So I'd like to make s

Re: [apparmor] [Merge] lp:~sdeziel/apparmor-profiles/usr.bin.thunderbird-profile into lp:apparmor-profiles

2016-05-02 Thread Seth Arnold
Hmm, is this still missing? or was it caught in another merge? Thanks -- https://code.launchpad.net/~sdeziel/apparmor-profiles/usr.bin.thunderbird-profile/+merge/282383 Your team AppArmor Developers is requested to review the proposed merge of

Re: [apparmor] [PATCH] Initialize common_audit_data

2016-05-02 Thread Seth Arnold
gold...@suse.com> Acked-by: Seth Arnold <seth.arn...@canonical.com> Looks good to me, of course John can take it or leave it as he wishes. Thanks > diff --git a/security/apparmor/file.c b/security/apparmor/file.c > index 913f377..6d4898c 100644 > --- a/security/apparm

Re: [apparmor] apparmor-profiles: sshd unable to read blacklists from openssh-blacklist* packages

2016-04-29 Thread Seth Arnold
On Fri, Apr 29, 2016 at 08:43:19PM +0300, Vincas Dargis wrote: > Hello. > > I have created Debian bug [1] but was instructed to notify this issue here > instead. > > Looks like sshd cannot read some files from openssh-blacklist and > openssh-blacklist-extra packages when extras/usr.sbin.sshd

Re: [apparmor] [PATCH 15/16] apparmor: fix refcount race when finding a child profile

2016-04-27 Thread Seth Arnold
ting the lookup if the profiles refcount > is 0 and is one its way to deletion. > > Signed-off-by: John Johansen <john.johan...@canonical.com> Acked-by: Seth Arnold <seth.arn...@canonical.com> THanks > --- > security/apparmor/policy.c | 4 +++- > 1 file changed, 3

Re: [apparmor] [PATCH 14/16] apparmor: fix: ref count leak when profile sha1 hash is read

2016-04-27 Thread Seth Arnold
On Wed, Apr 20, 2016 at 11:52:56PM -0700, John Johansen wrote: > Signed-off-by: John Johansen <john.johan...@canonical.com> Acked-by: Seth Arnold <seth.arn...@canonical.com> THanks > --- > security/apparmor/apparmorfs.c | 1 + > 1 file changed, 1 insertion(+) &g

Re: [apparmor] [PATCH 13/16] apparmor: Fix check that xindex is in trans_table bounds

2016-04-27 Thread Seth Arnold
On Wed, Apr 20, 2016 at 11:52:55PM -0700, John Johansen wrote: > Signed-off-by: John Johansen <john.johan...@canonical.com> Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > --- > security/apparmor/policy_unpack.c | 2 +- > 1 file changed, 1 insertion(+), 1 del

Re: [apparmor] [PATCH 12/16] apparmor: ensure the target profile name is always audited

2016-04-27 Thread Seth Arnold
drop the target var > and conditionally report based on new_profile. > > Signed-off-by: John Johansen <john.johan...@canonical.com> Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > --- > security/apparmor/domain.c | 20 +--- > 1 file change

Re: [apparmor] [PATCH 11/16] apparmor: fix: audit full profile hname on successful load

2016-04-27 Thread Seth Arnold
will ensure there is no confusion. > > Signed-off-by: John Johansen <john.johan...@canonical.com> Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > --- > security/apparmor/policy.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/s

Re: [apparmor] [PATCH 10/16] apparmor: fix: log failures for all profiles in a set

2016-04-27 Thread Seth Arnold
all profiles in the set being loaded. > > Signed-off-by: John Johansen <john.johan...@canonical.com> Very neat. Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > --- > security/apparmor/policy.c | 29 +++-- > 1 file changed, 19 inserti

Re: [apparmor] [PATCH 09/16] apparmor: fix: put() parent ref after updating the active ref

2016-04-27 Thread Seth Arnold
On Wed, Apr 20, 2016 at 11:52:51PM -0700, John Johansen wrote: > Signed-off-by: John Johansen <john.johan...@canonical.com> Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > --- > security/apparmor/policy.c | 2 +- > 1 file changed, 1 insertion(+), 1 del

Re: [apparmor] [PATCH 07/16] apparmor: internal paths should be treated as disconnected

2016-04-27 Thread Seth Arnold
On Wed, Apr 20, 2016 at 11:52:49PM -0700, John Johansen wrote: > Internal mounts are not mounted anywhere and as such should be treated > as disconnected paths. > > Signed-off-by: John Johansen <john.johan...@canonical.com> Acked-by: Seth Arnold <seth.arn...@c

Re: [apparmor] [PATCH 04/16] apparmor: exec should not be returning ENOENT when it denies

2016-04-27 Thread Seth Arnold
onical.com> Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > --- > security/apparmor/domain.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/security/apparmor/domain.c b/security/apparmor/domain.c > index dc0027b..67a7418 100644 > -

Re: [apparmor] [PATCH 06/16] apparmor: fix disconnected bind mnts reconnection

2016-04-26 Thread Seth Arnold
; Signed-off-by: John Johansen <john.johan...@canonical.com> Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > --- > security/apparmor/path.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/security/apparmor/path.c b/security

Re: [apparmor] [PATCH 05/16] apparmor: fix update the mtime of the profile file on replacement

2016-04-26 Thread Seth Arnold
On Wed, Apr 20, 2016 at 11:52:47PM -0700, John Johansen wrote: > Signed-off-by: John Johansen <john.johan...@canonical.com> Acked-by: Seth Arnold <seth.arn...@canonical.com> I think this patch should also set i_ctime to match i_mtime -- a quick check through fs/ showed dozens of e

Re: [apparmor] [PATCH 03/16] apparmor: fix uninitialized lsm_audit member

2016-04-26 Thread Seth Arnold
parmor_setprocattr+0x25d/0x300 > [] security_setprocattr+0x16/0x20 > [] proc_pid_attr_write+0x107/0x130 > [] vfs_write+0xb4/0x1f0 > [] SyS_write+0x49/0xa0 > [] tracesys+0xe1/0xe6 > > Signed-off-by: John Johansen <john.johan...@canonical.com> Acked-by: Seth Arnold <se

Re: [apparmor] [PATCH 02/16] apparmor: fix replacement bug that adds new child to old parent

2016-04-26 Thread Seth Arnold
;john.johan...@canonical.com> Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > --- > security/apparmor/policy.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/security/apparmor/policy.c b/security/apparmor/policy.c > index 222052f..c92

Re: [apparmor] [PATCH 01/16] apparmor: fix refcount bug in profile replacement

2016-04-26 Thread Seth Arnold
On Wed, Apr 20, 2016 at 11:52:43PM -0700, John Johansen wrote: > Signed-off-by: John Johansen <john.johan...@canonical.com> Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > --- > security/apparmor/policy.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 dele

Re: [apparmor] [Merge] lp:~sdeziel/apparmor-profiles/thunderbird-enigmail-1.9 into lp:apparmor-profiles

2016-04-18 Thread Seth Arnold
Heh, I was going to complain about the /usr/bin/locale Uxr, rule but there's at least those three other Uxr rules right next to it. I'm surprised about the silenced denials -- those seem wide-ranging and potentially problematic. I might have even thought that thunderbird should have

Re: [apparmor] [PATCH] Fix: parser: incorrect output of child profile names

2016-04-18 Thread Seth Arnold
//HANDLING_UNTRUSTED_INPUT > > Signed-off-by: John Johansen <john.johan...@canonical.com> Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > --- > parser/profile.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/parser/profile.h

Re: [apparmor] [patch] [2.8 branch] backport nscd profile additions from 2.9 branch

2016-04-15 Thread Seth Arnold
On Fri, Apr 15, 2016 at 10:51:10PM +0200, Christian Boltz wrote: > Hello, > > in the backport patch, I overlooked some real changes in the nscd > profile. Here they are: Assuming all these extra trailing spaces aren't in the patch as committed, Acked-by: Seth Arnold <seth.arn..

Re: [apparmor] [patch] [2.8 branch] Backport profile additions from the 2.9 branch

2016-04-15 Thread Seth Arnold
> @{PROC}/@{pid}/). > > I'll submit this patch as update for openSUSE 13.1 (which still uses > 2.8.4) and would like to get a review ASAP ;-) > > (See also the mail I sent some minutes ago.) Acked-by: Seth Arnold <seth.arn...@canonical.com> Thanks > > &g

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