debian/0000775000000000000000000000000013353237522007175 5ustar debian/clean0000664000000000000000000000247112775006645010215 0ustar libraries/libapparmor/config.guess libraries/libapparmor/config.sub libraries/libapparmor/ltmain.sh libraries/libapparmor/Makefile.in libraries/libapparmor/aclocal.m4 libraries/libapparmor/compile libraries/libapparmor/configure libraries/libapparmor/depcomp libraries/libapparmor/install-sh libraries/libapparmor/missing libraries/libapparmor/py-compile libraries/libapparmor/ylwrap libraries/libapparmor/doc/Makefile.in libraries/libapparmor/doc/*.2 libraries/libapparmor/src/Makefile.in libraries/libapparmor/src/af_protos.h libraries/libapparmor/src/grammar.c libraries/libapparmor/src/grammar.h libraries/libapparmor/src/scanner.c libraries/libapparmor/src/scanner.h libraries/libapparmor/swig/Makefile.in libraries/libapparmor/swig/perl/.build-stamp libraries/libapparmor/swig/perl/LibAppArmor.pm libraries/libapparmor/swig/perl/Makefile.in libraries/libapparmor/swig/perl/Makefile.perl libraries/libapparmor/swig/perl/Makefile.perl.old libraries/libapparmor/swig/perl/Makefile.perle libraries/libapparmor/swig/perl/libapparmor_wrap.c libraries/libapparmor/swig/python/Makefile.in libraries/libapparmor/swig/ruby/Makefile.in libraries/libapparmor/testsuite/Makefile.in libraries/libapparmor/testsuite/config/Makefile.in libraries/libapparmor/testsuite/lib/Makefile.in libraries/libapparmor/testsuite/libaalogparse.test/Makefile.in debian/apparmor.preinst0000664000000000000000000000056212775006644012435 0ustar #!/bin/sh # preinst script for apparmor # # see: dh_installdeb(1) set -e case "$1" in install|upgrade|abort-upgrade) # Nothing to do ;; *) echo "preinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/libapache2-mod-apparmor.apache20000664000000000000000000000015312775006645015016 0ustar mod debian/tmp/usr/lib/apache2/modules/mod_apparmor.so mod debian/etc/apache2/mods-available/apparmor.load debian/apparmor.config0000664000000000000000000000017412775006644012215 0ustar #!/bin/sh set -e # debconf . /usr/share/debconf/confmodule db_version 2.0 db_input medium apparmor/homedirs || true db_go debian/changelog0000664000000000000000000047523413353237076011072 0ustar apparmor (2.10.95-0ubuntu2.6~14.04.4) trusty-security; urgency=medium * {,14.04-}lp1788929+1794848.patch: - disallow writes to thumbnailer dir (LP: #1788929) - disallow access to the dirs of private files (LP: #1794848) -- Jamie Strandboge Thu, 27 Sep 2018 18:38:50 +0000 apparmor (2.10.95-0ubuntu2.6~14.04.3) trusty; urgency=medium * d/p/14.04-profiles-allow-seven-digit-pid-lp1717714.patch: - Renamed d/p/0001-Allow-seven-digit-pid.patch to mirror other profiles-14.04 patches naming pattern. - Modify the existing/renamed patch to use the dir that should be use to patch a profile. profiles-14.04/ should be use instead of profiles/ which is not use. (LP: #1717714) -- Eric Desrochers Fri, 02 Feb 2018 10:19:38 -0500 apparmor (2.10.95-0ubuntu2.6~14.04.2) trusty; urgency=medium * d/p/0001-Allow-seven-digit-pid.patch: On 64bit systems, /proc/sys/kernel/pid_max can be set to PID_MAX_LIMIT, (2^22), which results in seven digit pids. Adjust the @{PID} variable in tunables/global to accept this. (LP: #1717714) -- Seyeong Kim Mon, 08 Jan 2018 07:19:22 -0800 apparmor (2.10.95-0ubuntu2.6~14.04.1) trusty-security; urgency=medium * SECURITY UPDATE: Merge from xenial-security to get fix for CVE-2017-6507 * debian/apparmor.postrm: Ensure that a purge of the apparmor package does not fail if the /var/lib/apparmor/profiles or /var/lib/apparmor directories do not exist. This purge operation should be considered successful in that situation. (LP: #1661406) -- Tyler Hicks Thu, 16 Mar 2017 01:20:13 +0000 apparmor (2.10.95-0ubuntu2.6) xenial-security; urgency=medium * SECURITY UPDATE: Don't unload unknown profiles during package configuration or when restarting the apparmor init script or upstart job as this could leave processes unconfined (LP: #1668892) - debian/apparmor.postinst, debian/apparmor.init, debian/apparmor.upstart: Remove calls to unload_obsolete_profiles() - debian/patches/utils-add-aa-remove-unknown.patch, debian/apparmor.install debian/apparmor.manpages: Include a new utility, aa-remove-unknown, which can be used to unload unknown profiles - CVE-2017-6507 -- Tyler Hicks Wed, 15 Mar 2017 22:07:02 +0000 apparmor (2.10.95-0ubuntu2.5~14.04.1) trusty; urgency=medium * Bring apparmor 2.10.95-0ubuntu2.5, from Ubuntu 16.04, to Ubuntu 14.04. - This allows for proper snap confinement on Ubuntu 14.04 when using the hardware enablement kernel (LP: #1641243) * Changes made on top of 2.10.95-0ubuntu2.5: - debian/apparmor.upstart: Remove the upstart job and continue using the init script in 14.04 - debian/apparmor.postinst, debian/apparmor-profiles.postinst, debian/apparmor-profiles.postrm, debian/rules: Revert to using invoke-rc.d to load the profiles, rather than reloading them directly, since 14.04 will continue using the init script rather than the upstart job. - debian/apparmor.init, debian/lib/apparmor/functions, debian/apparmor.postinst, debian/apparmor.postrm: Remove functionality dealing with AppArmor policy in system image based environments since this 14.04 package will not need to handle such environments. This removes the handle_system_policy_package_updates(), compare_previous_version(), compare_and_save_debsums() functions and their callers. - debian/apparmor.init: Continue using running-in-container since systemd-detect-virt doesn't exist on 14.04 - debian/lib/apparmor/functions, debian/apparmor.init: Remove the is_container_with_internal_policy() function and adjust its call sites in apparmor.init so that AppArmor policy is not loaded inside of 14.04 LXD containers (avoids bug #1641236) - debian/lib/apparmor/profile-load, debian/apparmor.install: Remove profile-load as upstart's apparmor-profile-load is used in 14.04 - debian/patches/libapparmor-mention-dbus-method-in-getcon-man.patch: Continue applying this patch since the dbus version in 14.04 isn't new enough to support fetching the AppArmor context from org.freedesktop.DBus.GetConnectionCredentials(). - debian/patches/libapparmor-force-libtoolize-replacement.patch: Force libtoolize to replace existing files to fix a libapparmor FTBFS issue on 14.04. - debian/control: Retain the original 14.04 Breaks and ignore the new Breaks from 2.10.95-0ubuntu2.5 since they were put in place as part of the enablement of UNIX domain socket mediation. They're not needed in this upload since UNIX domain socket mediation is disabled by default so updates to the profiles included in those packages are not needed. - Preserve the profiles and abstractions from 14.04's 2.8.95~2430-0ubuntu5.3 apparmor package by recreating them in the top-level profiles-14.04/ directory of the source. They'll be installed to debian/tmp/etc/apparmor.d/ during the build process and then to /etc/apparmor.d/ on package install so that there are no changes to the shipped profiles or abstractions. The abstractions from 2.10.95-0ubuntu2.5 will be installed into debian/tmp/snap/etc/apparmor.d/ during the build process and then into /etc/apparmor.d/snap/abstractions/ on package install for use with snap confinement. Snap confinement profiles, which includes AppArmor profiles loaded by snapd and profiles loaded by snaps that are allowed to manage AppArmor policy, will use the snap abstractions. All other AppArmor profiles will continue to use the 14.04 abstractions. - debian/rules: Adjust for new profiles-14.04/ directory - debian/apparmor-profiles.install: Adjust to install the profiles that were installed in the 2.8.95~2430-0ubuntu5.3 package - debian/apparmor.install: Install the abstractions from the 2.10.95-0ubuntu2.5 package into /etc/apparmor.d/snap/abstractions/ - debian/patches/14.04-profiles.patch: Preserve the 14.04 profiles and abstractions from the 2.8.95~2430-0ubuntu5.3 apparmor package. - debian/patches/conditionalize-post-release-features.patch: Disable new mediation features, implemented after the Ubuntu 14.04 release, unless the profile is for snap confinement. If the profile is for snap confinement, the abstractions from /etc/apparmor.d/snap/abstractions will be used and all of the mediation features will be enabled. - 14.04-add-chromium-browser.patch, 14.04-add-debian-integration-to-lighttpd.patch, 14.04-etc-writable.patch, 14.04-update-base-abstraction-for-signals-and-ptrace.patch, 14.04-dnsmasq-libvirtd-signal-ptrace.patch, 14.04-update-chromium-browser.patch, 14.04-php5-Zend_semaphore-lp1401084.patch, 14.04-dnsmasq-lxc_networking-lp1403468.patch, 14.04-profiles-texlive_font_generation-lp1010909.patch, 14.04-profiles-dovecot-updates-lp1296667.patch, 14.04-profiles-adjust_X_for_lightdm-lp1339727.patch: Import all of the patches, from 14.04's 2.8.95~2430-0ubuntu5.3 apparmor package, which patched profiles/ and adjust them to patch profiles-14.04/ instead. - debian/patches/revert-r2550-and-r2551.patch: Revert two upstream changes to mod_apparmor which could potentially regress existing users of mod_apparmor in 14.04. These upstream changes are not appropriate for an SRU. -- Tyler Hicks Wed, 30 Nov 2016 16:36:02 +0000 apparmor (2.10.95-0ubuntu2.5) xenial; urgency=medium * debian/lib/apparmor/functions, debian/apparmor.init, debian/apparmor.service, debian/apparmor.upstart, debian/lib/apparmor/profile-load: Adjust the checks that previously kept AppArmor policy from being loaded while booting a container. Now we attempt to load policy if we're in a LXD or LXC managed container that is using profile stacking inside of a policy namespace. (LP: #1628285) * Fix regression tests for stacking so that the kernel SRU process is not interrupted by failing tests whenever the AppArmor stacking features are backported from the 16.10 kernel or when the 16.04 LTS Enablement Stack receives a 4.8 or newer kernel - debian/patches/r3509-tests-fix-exec_stack-errors-1.patch: Fix the exec_stack.sh test when running on 4.8 or newer kernels (LP: #1628745) - debian/patches/r3558-tests-fix-exec_stack-errors-2.patch: Adjust the exec_stack.sh fix mentioned above to more accurately test kernels older than 4.8 (LP: #1630069) - debian/patches/allow-stacking-tests-to-use-system.patch: Apply this patch earlier in the series, as to match when it was committed upstream, so that the above two patches can be cherry-picked from lp:apparmor -- Tyler Hicks Fri, 07 Oct 2016 05:21:44 +0000 apparmor (2.10.95-0ubuntu2.4) xenial; urgency=medium * debian/patches/r3505-tests-fix-stacking-mode-checks.patch: Fix failing regression tests so that the kernel SRU process is not interrupted by failing stackonexec.sh and stackprofile.sh tests (LP: #1628295) -- Tyler Hicks Wed, 28 Sep 2016 15:33:53 -0500 apparmor (2.10.95-0ubuntu2.3) xenial; urgency=medium * debian/patches/allow-access-to-ibus-socket.patch: Adjust the ibus abstraction to allow access to the abstract UNIX domain socket location used in Ubuntu. (LP: #1580463) * debian/lib/apparmor/functions: Quiet the "Files ... and ... differ" output, during the update process, which was printed by diff. This message left users concerned since it mentioned md5sums files without being clear about what was happening. (LP: #1614215) -- Tyler Hicks Fri, 26 Aug 2016 18:30:32 -0500 apparmor (2.10.95-0ubuntu2.2) xenial; urgency=medium * r3498-r3499-ignore-net-events-that-look-like-file-events.patch: Prevent an aa-logprof crash by ignoring file events that contains send *and* receive in the request mask. This is an improvement to the previous fix that only addressed events that contained send *or* receive. (LP: #1577051, LP: #1582374) - debian/rules: Create a new empty file, needed for the test added by this patch, since quilt is unable to do so. -- Tyler Hicks Mon, 01 Aug 2016 18:03:36 -0500 apparmor (2.10.95-0ubuntu2.1) xenial; urgency=medium * debian/patches/r3460-ignore-file-events-with-send-or-receive-request.patch: Prevent an aa-logprof crash by ignoring file events that contains send or receive in the request mask. (LP: #1577051, LP: #1582374) * debian/patches/r3463-r3475-change-profile-exec-modes.patch: Allow policy authors to specify if the environment should scrubbed during exec transitions allowed by a change_profile rule. (LP: #1584069) * debian/patches/r3478-make-overlapping-safe-and-unsafe-rules-conflict.patch: Make sure that multiple change_profile rules with overlapping safe and unsafe exec modes conflict when they share the same exec conditional (LP: #1588069) * debian/patches/r3488-r3489-fix-racy-onexec-test.patch: Fix racy regression test so that the kernel SRU process is not interrupted by the onexec.sh periodically failing. (LP: #1528230) * debian/patches/r3490-utils-handle-change-profile-exec-modes.patch: Update the Python utilities to handle the new exec mode keywords in change_profile rules. (LP: #1584069) * debian/patches/r3492-allow-dbus-user-session-path.patch: Allow read/write access to the dbus-user-session socket file in profiles that include the dbus-session-strict abstraction. (LP: #1604872) -- Tyler Hicks Thu, 28 Jul 2016 11:02:11 -0500 apparmor (2.10.95-0ubuntu2) xenial; urgency=medium * debian/patches/r3435-allow-dnsmasq-access-to-lxd-bridge.patch: Grant access to the new default bridge configuration in LXD 2.0.0 (LP: #1566944) * debian/patches/r3437-add-attach-disconnected-to-dnsmasq.patch: Add the attach_disconnected flag to the dnsmasq profile in order to prevent a disconnected path denial triggered by the latest network-manager upload (LP: #1569316) * debian/lib/apparmor/functions: Reference the new path used for snapd AppArmor profiles to fix a bug which left those profiles unloaded after booting (LP: #1569573) -- Tyler Hicks Tue, 12 Apr 2016 16:59:46 -0500 apparmor (2.10.95-0ubuntu1) xenial; urgency=medium * Update to apparmor 2.10.95 (2.11 Beta 1) (LP: #1561762) - Allow Apache prefork profile to chown(2) files (LP: #1210514) - Allow deluge-gtk and deluge-console to handle torrents opened in browsers (LP: #1501913) - Allow file accesses needed by some programs using libnl-3-200 (Closes: #810888) - Allow file accesses needed on systems that use NetworkManager without resolvconf (Closes: #813835) - Adjust aa-status(8) to work without python3-apparmor (LP: #1480492) - Fix aa-logprof(8) crash when operating on files containing multiple profiles with certain rules (LP: #1528139) - Fix log parsing crashes, in the Python utilities, caused by certain file related events (LP: #1525119, LP: #1540562) - Fix log parsing crasher, in the Python utilities, caused by certain change_hat events (LP: #1523297) - Improve Python 2 support of the utils by fixing an aa-logprof(8) crasher when Python 3 is not available (LP: #1513880) - Send aa-easyprof(8) error messages to stderr instead of stdout (LP: #1521400) - Fix aa-autodep(8) failure when the shebang line of a script contained parameters (LP: #1505775) - Don't depend on the system logprof.conf when running utils/ build tests (LP: #1393979) - Fix apparmor_parser(8) bugs when parsing profiles that use policy namespaces in the profile declaration or profile transition targets (LP: #1540666, LP: #1544387) - Regression fix for apparmor_parser(8) bug that resulted in the --namespace-string commandline option being ignored causing profiles to be loaded into the root policy namespace (LP: #1526085) - Fix crasher regression in apparmor_parser(8) when the parser was asked to process a directory (LP: #1534405) - Fix bug in apparmor_parser(8) to honor the specified bind flags remount rules (LP: #1272028) - Support tarball generation for Coverity scans and fix a number of issues discovered by Coverity - Fix regression test failures on s390x systems (LP: #1531325) - Adjust expected errno values in changeprofile regression test (LP: #1559705) - The Python utils gained support for ptrace and signal rules - aa-exec(8) received a rewrite in C - apparmor_parser(8) gained support for stacking multiple profiles, as supported by the Xenial kernel (LP: #1379535) - libapparmor gained new public interfaces, aa_stack_profile(2) and aa_stack_onexec(2), allowing applications to utilize the new kernel stacking support (LP: #1379535) * Drop the following patches since they've been incorporated upstream: - aa-status-dont_require_python3-apparmor.patch - r3209-dnsmasq-allow-dash - r3227-locale-indep-capabilities-sorting.patch - r3277-update-python-abstraction.patch - r3366-networkd.patch, - tests-fix_sysctl_test.patch - parser-fix-cache-file-mtime-regression.patch - parser-verify-cache-file-mtime.patch - parser-run-caching-tests-without-apparmorfs.patch - parser-do-cleanup-when-test-was-skipped.patch - parser-allow-unspec-in-network-rules.patch * debian/rules, debian/apparmor.install, debian/apparmor.manpages: Update for new upstream binutils directory and aa-enabled binary - Continue installing aa-exec into /usr/sbin/ for now since click-apparmor's aa-exec-click autopkgtest expects it to be there * debian/libapparmor-dev.manpages: Include the new aa_stack_profile.2 man page * debian/patches/r3424-nscd-profile-allow-paranoia-mode.patch: Allow file access needed for nscd's paranoia mode * debian/patches/r3425-adjust-stacking-tests-version-check.patch: Adjust the regression test build time checks, for libapparmor stacking support, to look for the 2.10.95 versioning rather than 2.11 * debian/patches/r3426-allow-debugedit-to-work-on-apparmor-parser.patch: Remove extra slash in the parser Makefile so that debugedit(8) can work on apparmor_parser(8) (LP: #1561939) * debian/patches/allow-stacking-tests-to-use-system.patch: Adjust the file rules of the new stacking tests so that the generated profiles allow the system binaries and libraries to be tested * debian/libapparmor1.symbols: update symbols file for added symbols in libapparmor -- Tyler Hicks Sat, 09 Apr 2016 01:35:25 -0500 apparmor (2.10-3ubuntu2) xenial; urgency=medium * debian/patches/parser-allow-unspec-in-network-rules.patch: Allow apparmor_parser to support rules that use 'unspec' as the network protocol family. (LP: #1546455) -- Tyler Hicks Thu, 18 Feb 2016 12:48:17 -0600 apparmor (2.10-3ubuntu1) xenial; urgency=medium * Merge from Debian unstable. Remaining changes: - debian/apparmor.init,apparmor.upstart,debian/lib/apparmor/functions: clear only the system cache if apparmor version has changed on snappy flavors since snappy will handle the app's cache itself - debian/apparmor.install: install tunables/home.d and tunables/multiarch.d - debian/apparmor-utils.dirs: install usr/bin and usr/share/apparmor - debian/control: + make libnotify-bin a Suggests rather than a Recommends since it is assumed to already be installed on the desktop and so server environments don't have to pull in a lot of X dependencies (LP: #1061879) + apparmor-easyprof in section 'admin' + apparmor Depends on initramfs-tools | linux-initramfs-tool [linux-any] + apparmor Breaks on lightdm (<< 1.11.8-0ubuntu2~), lxc (<< 1.1.0~alpha1-0ubuntu5~) - drop debian/patches/reproducible-pdf.patch (not applied in series) * drop debian/patches/fix-abstraction-for-python3.5.patch in favor of Debian's * debian/patches/series: comment out notify-group.patch * debian/patches/non-linux.patch: refresh * debian/patches/r3366-networkd.patch: use this instead of dropped Ubuntu lp1529074.patch for NetworkManager and networkd support -- Jamie Strandboge Tue, 16 Feb 2016 08:49:31 -0600 apparmor (2.10-3) unstable; urgency=medium * Team upload. [ intrigeri ] * Drop libapparmor-mention-dbus-method-in-getcon-man.patch (Closes: #800132) [ Felix Geyer ] * Update python abstraction for python 3.5. - Pull r3277-update-python-abstraction.patch from upstream -- Felix Geyer Mon, 25 Jan 2016 22:50:13 +0100 apparmor (2.10-2) unstable; urgency=medium [ Felix Geyer ] * Apply aa-status-dont_require_python3-apparmor.patch, to keep the hard dependencies of the apparmor binary package minimal. * python{,3}-apparmor: require at least the same upstream version of python{,3}-libapparmor. [ intrigeri ] * Drop abstractions-ubuntu-browsers.patch: integrated upstream (in a slightly different way). * debian/control: don't start short description with capital letter. (Closes: #795434) * r3227-locale-indep-capabilities-sorting.patch: cherry-pick from upstream, to make (more of?) the build reproducible. (Closes: #797415) * Merge from ubuntu-citrain up to revision 1578, that is changes brought by 2.10-0ubuntu3 to 2.10-0ubuntu6. * Upload to unstable. -- intrigeri Tue, 18 Aug 2015 09:48:54 +0200 apparmor (2.10-1) experimental; urgency=medium [ intrigeri ] * Merge ubuntu-citrain up to revision 1575, except: - previously documented changes - debian/patches/aa-status-dont_require_python3-apparmor.patch: don't apply, only relevant for Ubuntu Phone * debian/patches/r3209-dnsmasq-allow-dash: cherry-pick from upstream. * debian/patches/pass-compiler-flags.patch: refresh. * Update upstream signing key. * apparmor-utils: make the Depends on python3-apparmor versioned. (Closes: #785436) * Override the "apparmor source: usr-lib-perl5-mentioned rules" error. We replace usr/lib/perl5 with the corresponding multiarch path in debian/rules, as a consequence this file contains this string. * python-apparmor, python3-apparmor: add Lintian overrides for the extended-description-is-probably-too-short tag. * debian/control: stuff out a bit apparmor-utils' extended description. [ Felix Geyer ] * Add Brazilian Portuguese translation of debconf messages. Thanks to Adriano Rafael Gomes. (Closes: #788342) * Use dh_apparmor from this source package for apparmor-profiles. (Closes: #656451) * Make debian/rules safer: - Add set -e to loops. - Use "&&" when chaining shell commands. -- intrigeri Thu, 13 Aug 2015 23:42:10 +0200 apparmor (2.10-0ubuntu12) xenial; urgency=medium * Call systemd-detect-virt instead of the Ubuntu specific running-in-container wrapper. (LP: #1539016) -- Martin Pitt Thu, 28 Jan 2016 13:33:28 +0100 apparmor (2.10-0ubuntu11) xenial; urgency=medium * No-change rebuild to drop python3.4 support. -- Matthias Klose Mon, 18 Jan 2016 19:38:38 +0000 apparmor (2.10-0ubuntu10) xenial; urgency=medium * debian/patches/lp1529074.patch: for systems using networkd, add read on /run/systemd/resolve/resolv.conf (LP: #1529074) -- Jamie Strandboge Tue, 05 Jan 2016 10:00:20 -0600 apparmor (2.10-0ubuntu9) xenial; urgency=medium * No change rebuild for perl 5.22 -- Jamie Strandboge Thu, 17 Dec 2015 12:14:10 -0600 apparmor (2.10-0ubuntu8) xenial; urgency=medium * debian/patches/fix-abstraction-for-python3.5.patch: adjust python abstraction for python 3.5 -- Jamie Strandboge Wed, 18 Nov 2015 16:01:47 -0600 apparmor (2.10-0ubuntu7) xenial; urgency=medium * debian/apparmor.init,apparmor.upstart: clear only the system cache if apparmor version has changed on snappy flavors since snappy will handle the app's cache itself * debian/lib/apparmor/functions: - compile /var/lib/snappy/apparmor/profiles policy - add compare_previous_version() - refactor clear_cache() - compare_and_save_debsums() checks if $PROFILES_VAR exists -- Jamie Strandboge Tue, 10 Nov 2015 15:34:20 -0600 apparmor (2.10-0ubuntu6) wily; urgency=medium * debian/libapparmor-dev.manpages: add 5 missing libapparmor manpages (LP: #1491147, LP: #1384431) -- Steve Beattie Tue, 01 Sep 2015 14:17:16 -0700 apparmor (2.10-0ubuntu4) wily; urgency=medium * Rebuild against python3.5. -- Dimitri John Ledkov Sat, 15 Aug 2015 22:12:50 +0100 apparmor (2.10-0ubuntu3) wily; urgency=medium * debian/patches/parser-fix-cache-file-mtime-regression.patch: Fix a bug that resulted in the mtime of generate policy cache files to be set incorrectly. The mtime of cache files should be the newest mtime detected on the profile and abstraction files used to generate the policy cache file. However, the bug caused the mtime of the policy cache file to either not be updated or to be updated to an incorrect time. (LP: #1484178) * debian/patches/parser-verify-cache-file-mtime.patch: Add tests to verify that the policy cache file's mtime is being set correctly and that cache handling is correct when the profile or abstraction files are newer than the policy cache file. * debian/patches/parser-run-caching-tests-without-apparmorfs.patch, debian/patches/parser-do-cleanup-when-test-was-skipped.patch: Enable the caching tests to run on the buildds even though apparmorfs isn't mounted. -- Tyler Hicks Wed, 12 Aug 2015 13:01:56 -0500 apparmor (2.10-0ubuntu2) wily; urgency=medium * debian/patches/aa-status-dont_require_python3-apparmor.patch: make aa-status(8) work even when python3-apparmor is not installed, otherwise dh_apparmor postinst snippets can fail (LP: #1480492) * debian/control: make apparmor-utils depend on the same package version of python3-apparmor -- Steve Beattie Fri, 31 Jul 2015 16:35:03 -0700 apparmor (2.10-0ubuntu1) wily; urgency=medium * Update to apparmor 2.10 - libapparmor added functions to ease loading profile cache files to help support systemd on-demand load of policy (LP: #1385414) - apparmor parser: fixed policy generation to allow matching embedded NULs in abstract unix socket names (LP: #1413410) - aa-status: don't traceback when not permitted to read current set of apparmor policy (LP: #1466768) - aa-logprof: don't crash on policies that have an #include of a directory (LP: #1471425) - aa-logprof: fix crash when network rejections occur when file operations are performed on network sockets (LP: #1466812) * dropped reproducible-pdf.patch, incorporated upstream * debian/patches/tests-fix_sysctl_test.patch: fix sysctl test failure with 4.1 kernel and newer. * debian/control: add alternate dependency on linux-initramfs-tool (LP: #1109029) * debian/libapparmor1.symbols: update symbols file for added symbols in libapparmor -- Steve Beattie Thu, 23 Jul 2015 01:57:43 -0700 apparmor (2.9.2-0ubuntu2) wily; urgency=medium * No-change rebuild for python3.5 transition -- Steve Langasek Wed, 22 Jul 2015 04:07:28 +0000 apparmor (2.9.2-0ubuntu1) wily; urgency=medium * Update to apparmor 2.9.2 - Fix minitools to work with multiple profiles at once (LP: #1378095) - Parse mounts that have non-ascii UTF-8 chars (LP: #1310598) - Update dovecot profiles (LP: #1296667) - Allow ubuntu-helpers to build texlive fonts (LP: #1010909) * dropped patches incorporated upstream: add-mir-abstraction-lp1422521.patch, systemd-dev-log-lp1413232.patch parser-fix_modifier_compilation_+_tests.patch, tests-fix_systemd_breakage_in_pivot_root-lp1436109.patch, GDM_X_authority-lp1432126.patch, and debian/patches/easyprof-framework-policy.patch * Partial merge with debian apparmor package: - debian/rules: enable the bindnow hardening flag during build. - debian/upstream/signing-key.asc: add new upstream public signing key - debian/watch: fix watch file, add gpg signature checking - install libapparmor.so dev symlink under /usr not /lib - debian/patches/reproducible-pdf.patch: make techdoc.pdf reproducible even in face of timezone variations. - debian/control: sync fields - debian/debhelper/postrm-apparmor: remove /etc/apparmor.d/{disable,} on package purge - debian/libapache2-mod-apparmor.postrm: on package purge, delete /etc/apparmor.d/{,disable} if empty - debian/libapparmor1.symbols: Use Build-Depends-Package in the symbols file. - debian/copyright: sync -- Steve Beattie Mon, 11 May 2015 22:03:04 -0700 apparmor (2.9.1-0ubuntu9) vivid; urgency=medium * Make debian/lib/apparmor/profile-load executable. -- Serge Hallyn Thu, 02 Apr 2015 13:00:35 -0500 apparmor (2.9.1-0ubuntu8) vivid; urgency=medium [ Steve Beattie ] * debian/rules: run make check on the libapparmor library * add-chromium-browser.patch: add support for chromium policies (LP: #1419294) * debian/apparmor.{init,upstart}: add support for triggering aa-profile-hook runs when packages are updated via snappy system image updates (LP: #1434143) * parser-fix_modifier_compilation_+_tests.patch: fix compilation of audit modifiers for exec and pivot_root and deny modifiers on link rules as well as significantly expand related tests (LP: #1431717, LP: #1432045, LP: #1433829) * tests-fix_systemd_breakage_in_pivot_root-lp1436109.patch: work around pivot_root test failures due to init=systemd (LP: #1436109) * GDM_X_authority-lp1432126.patch: add location GDM creates Xauthority file to X abstraction (LP: #1432126) [ Jamie Strandboge ] * easyprof-framework-policy.patch: add --include-templates-dir and --include-policy-groups-dir options to easyprof to support framework policy on snappy [ Robie Basak ] * Add /lib/apparmor/profile-load; moved from /lib/init/apparmor-profile-load from the upstart package. A wrapper at the original path is now provided by init-system-helpers. (LP: #1432683) -- Jamie Strandboge Sat, 28 Mar 2015 07:22:30 -0500 apparmor (2.9.1-0ubuntu7) vivid; urgency=medium * systemd-dev-log-lp1413232.patch: Allow writes to the systemd journal socket /{,var}/run/systemd/journal/dev-log. This can be dropped with with AppArmor 2.9.2. (LP: #1413232) -- Jamie Strandboge Fri, 06 Mar 2015 06:22:34 -0600 apparmor (2.9.1-0ubuntu6) vivid; urgency=medium * add-mir-abstractions-lp1422521.patch: add correct location of mir specific libraries and mir unprivileged client socket to mir abstraction (LP: #1422521) -- Steve Beattie Tue, 03 Mar 2015 10:42:24 -0800 apparmor (2.9.1-0ubuntu5) vivid; urgency=medium * debian/apparmor.init: Replace unnecessary $remote_fs dependency with $local_fs. This is sufficient as during boot we don't use anything from /usr. It's also necessary to avoid dependency cycles when using NFS (as its dependencies should be covered by AppArmor). (LP: #1312976) -- Martin Pitt Tue, 03 Mar 2015 08:54:33 +0100 apparmor (2.9.1-0ubuntu4) vivid; urgency=medium * Update to apparmor 2.9.1 - make parser mount rule options consistent with documentation (LP: #1401619) - make parser fail if unknown mount options are encountered (LP: #1401621) - stop aa-logprof from asking about already allowed network rules (LP: #1380367) - make utils offer abstractions for network rules (LP: #1380367) - make libapparmor understand logs generated by syslog-ng (LP: #1399027) - stop python utilities from adding duplicate quotes (LP: #1328707) - work around aa-cleanprof crashes (LP: #1382236) - other bug fixes, performance improvements, and testcases added to the python utils. - policy updates for dnsmasq, nscd, and others - translation updates * Partial sync with debian apparmor package: - debian/apparmor-profiles.install: add additional dovecot and smbldap-useradd profiles - debian/control: fix typo in apparmor-docs description, fix file overwrite issues with python-apparmor, apparmor-docs - debian/rules: improved repeat-build cleanup logic. - Add Turkish translation of debconf messages. Thanks to Mert Dirik for the patch! - debian/apparmor.postrm: Remove /var/lib/apparmor/profiles/.apparmor.md5sums and parent directories on package purge. * add-mir-abstractions-lp1422521.patch: add mir abstraction to cover mir specific libraries (LP: #1422521) * debian/rules: remove no longer needed references to PERLDIR when installing from utils/ -- Steve Beattie Tue, 17 Feb 2015 16:31:25 -0800 apparmor (2.8.98-0ubuntu4) vivid; urgency=medium * Ship libapparmor in /lib instead of /usr as we want to use it in systemd now. (LP: #1397960) -- Martin Pitt Mon, 01 Dec 2014 15:37:32 +0100 apparmor (2.8.98-0ubuntu3) vivid; urgency=medium * debian/lib/apparmor/functions: disable expr tree simplification for /var/lib/apparmor/profiles (LP: #1383858) * parser-dont-skip-read-cache-with-optimizations.patch: don't skip read cache when specifying '-O' (LP: #1385947) -- Jamie Strandboge Tue, 28 Oct 2014 17:41:08 -0500 apparmor (2.8.98-0ubuntu2) utopic; urgency=medium * Updated to apparmor 2.9.beta4 (aka apparmor 2.8.98) - fix logparsing memory leak (LP: #1340927) - incorporate fixes to regression testsuite to compensate for af_unix mediation, as well as extend test coverage (LP: #1375403, LP: #1375516) - fix libapparmor's log parsing code to accept additional rejection types (LP: #1375413) - fix X abstraction for changed lightdm xauthority file locations (LP: #1339727) - parser: disable downgrade and not enforced rule messages by default (LP: #1302735) - fix error when using regex profile names in IPC rules (LP: #1373085) - update base abstraction for /proc/sys/kernel/cap_last_cap for dnsmasq (LP: #1378977) - update freedesktop.org for @{HOME}/.config/mimeapps.list (LP: #1377140) - update gnome abstraction for access to @/dbus-vfs-daemon/socket-* (LP: #1375067) - update ubuntu-browsers.d/java abstraction for icedtea plugin access in /{,var/}run/user/*/icedteaplugin-* (LP: #1293439) - update user-mail abstraction for /var/mail (LP: #1192965) - updates and fixes to the python utilities - translation updates [ Steve Beattie ] * Removed upstreamed patches: drop-peer_addr-with-local-addr-in-base.patch, update_socketpair_tests_for_af_unix.patch, fix_socketpair_tests.patch, sanitized-helpers-updates.patch, 01-tests-unix_socket_lists.patch, 02-tests-accept_unix_rules_in_mkprofile.patch, 03-tests-unix_sockets_v7_pathnames.patch, 04-tests-migrate_from_poll_to_sockio_timeout.patch, 05-tests-add_abstract_socket_tests.patch, 06-tests-use_socketpair_and_none.patch, 07-parser-fix_local_perms.patch, 08-phpsysinfo-policy-updates.patch, 09-apache2-policy-instructions.patch, 10-lp1371771.patch, 11-lp1371765.patch, lp1169881.patch * refreshed etc-writable.patch and libapparmor-layout-deb.patch * debian/control: add breaks on python3-apparmor against older apparmor-utils that used to be where python bits lived (LP: #1373259) * debian/apport/source_apparmor.py: - fixes the apparmor apport hook so it does not raise an exception if a non-unicode character is found in /var/log/kern.log or in /var/log/syslog. This should work under python3 or python2.7 (LP: #1304447) - adjusts the add_info() function to take the expected additional ui argument, though it has no need for it. - converts the log parsing code to use with statements so as not to leak open file descriptors - updates the set of packages to query to see if installed and if so, report the version of. - adjust import to make pyflakes job easier - minor pep8 cleanups [ Jamie Strandboge ] * add-chromium-browser.patch: - don't allow writing to the oom score and adjust files since this allows chromium to change the values for any process matching our UID - allow writing to /run/shm/shmfd-* - add a few signal rules from base abstraction for the sandbox * debian/apparmor.upstart: check if click-apparmor md5sums changed so we regenerate the policy if it changes too (LP: #1371574) * debian/apparmor.init: make corresponding upstart change to initscript * debian/lib/apparmor/functions: fall back to using -n1 if the parser failed to load a profile set. This should be removed when the parser properly handles profile sets with corrupted profiles (LP: 1377338) * debian/control: fix typo (LP: #1187447) -- Steve Beattie Thu, 09 Oct 2014 22:39:32 -0700 apparmor (2.8.96~2652-0ubuntu7) utopic; urgency=medium * add-chromium-browser.patch: user addr=none instead of peer=(addr=none) (LP: #1374363) -- Jamie Strandboge Sat, 27 Sep 2014 07:41:07 -0500 apparmor (2.8.96~2652-0ubuntu6) utopic; urgency=medium * lp1169881.patch: add /usr/bin/gnome-gmail to ubuntu-email (LP: #1169881) * debian/control: update Breaks on lxc 1.1.0~alpha1-0ubuntu5~ (LP: #1373555) -- Jamie Strandboge Thu, 25 Sep 2014 09:03:06 -0500 apparmor (2.8.96~2652-0ubuntu5) utopic; urgency=medium [ Jamie Strandboge ] * sanitized-helpers-updates.patch: update ubuntu-helpers for unix mediation * 10-lp1371771.patch: don't exit prematurely and fail to load remaining policy if encounter a corrupt cache file (LP: #1371771) * 11-lp1371765.patch: if a cache load fails, attempt to rebuild and load it (LP: #1371765) * debian/lib/apparmor/functions: - don't return 0 on parsing failure. Patch thanks to Felix Geyer (LP: #1370228) - use xargs -n1 when we don't have cache files, but omit it when we do. This allows taking full advantage of xargs -P when we need it most, without the cost when we don't. [ Steve Beattie ] * update_socketpair_tests_for_af_unix.patch, fix_socketpair_tests.patch: update socketpair regression tests for af_unix socket mediation -- Jamie Strandboge Mon, 22 Sep 2014 09:39:10 -0500 apparmor (2.8.96~2652-0ubuntu4) utopic; urgency=medium * debian/apparmor.{upstart,init}: make sure we always update the .md5sums for apparmor-easyprof-ubuntu even when apparmor is updated (before if both were updated, aa-clickhook -f would be run on the 1st and 2nd boot rather than just the 1st) * debian/apparmor.postinst: update the cached .md5sums file on upgrade to avoid running on install and then again on first boot after upgrade. This change only affects apt upgrades and not system-image upgrades since system-image upgrades always use the existing .md5sums if they exist (see /etc/system-image/writable-paths). * ubuntu-manpage-updates.patch: adjust for move to upstart job and click policy * debian/lib/apparmor/functions: don't pass costly '-n1' to xargs in foreach_configured_profile() when loading valid cache files. This used to be needed when apparmor_parser would generate different binary caches when compiling policy one profile at a time and all at once. That bug is long fixed and removing -n1 gives a significant performance improvement for boots with valid cache files (~65% on armhf) -- Jamie Strandboge Fri, 12 Sep 2014 13:45:35 -0500 apparmor (2.8.96~2652-0ubuntu3) utopic; urgency=medium * 08-phpsysinfo-policy-updates.patch: update for new phpsysinfo on Ubuntu 14.10 * 09-apache2-policy-instructions.patch: update for recent Debian/Ubuntu packaging * debian/control: update Breaks for apparmor-easyprof-ubuntu, libvirt-bin, and lightdm. Add Breaks on rsyslog. -- Jamie Strandboge Mon, 08 Sep 2014 16:13:10 -0500 apparmor (2.8.96~2652-0ubuntu2) utopic; urgency=medium * 07-parser-fix_local_perms.patch: do not output local permissions for rules that have peer_conditionals. Patch from John Johansen -- Jamie Strandboge Fri, 05 Sep 2014 23:34:53 -0500 apparmor (2.8.96~2652-0ubuntu1) utopic; urgency=medium * Updated to r2652 snapshot of 2.8.96 (LP: #1362199, LP: #1341152) [ Steve Beattie ] * removed upstreamed patches: - dnsmasq-libvirtd-signal-ptrace.patch - update-base-abstraction-for-signals-and-ptrace.patch - update-nameservice-abstraction-for-extrausers.patch - debian/apparmor-profiles.install: dropped program-chunks/postfix-common, moved to abstractions/ and covered by apparmor.install - refreshed libapparmor-layout-deb.patch patch * Add in Tyler Hicks' regression test improvements: - 01-tests-unix_socket_lists.patch, - 02-tests-accept_unix_rules_in_mkprofile.patch, - 03-tests-unix_sockets_v7_pathnames.patch, - 04-tests-migrate_from_poll_to_sockio_timeout.patch, - 05-tests-add_abstract_socket_tests.patch, * 07-parser-fix_local_perms.patch: do not output local permissions for rules that have peer_conditionals [ Jamie Strandboge ] * add-chromium-browser.patch: update for unix socket mediation * drop-peer_addr-with-local-addr-in-base.patch: don't use peer=(addr=none) with getattr, getopt, setopt and shutdown [ Tyler Hicks ] * debian/lib/apparmor/functions, debian/apparmor.init, debian/apparmor.upstart: Ensure system policy cache cannot become stale after image based upgrades that update the system profiles (LP: #1350673) * parser-include-usr-share-apparmor.patch, debian/apparmor.install: Adjust the default parser.conf file, to add /usr/share/apparmor as an additional search path when resolving include directives in profiles, and install the file in /etc/apparmor. Ubuntu places hardware specific access rules in /usr/share/apparmor/hardware. This change allows these files to be included without using an absolute path (e.g., '#include '). -- Jamie Strandboge Fri, 05 Sep 2014 16:27:48 -0500 apparmor (2.8.96~2541-0ubuntu3.1) utopic; urgency=medium * Updates for perl 5.20 multiarch transition - debian/libapparmor-perl.install: don't hardcode usr/lib/perl5 but instead use $Config{vendorarch} in an executable install file. Make it executable - debian/control: Build-Depends on debhelper (>= 9) (9 is needed to use an executable install file) - debian/patches/perl-multiarch.patch: + add @{multiarch} paths to perl abstraction + update logprof.conf, severity.db and corresponding tests for updated perl path -- Jamie Strandboge Tue, 19 Aug 2014 14:33:02 -0500 apparmor (2.8.96~2541-0ubuntu2) utopic; urgency=medium * update-nameservice-abstraction-for-extrausers.patch: update nameservice abstraction to allow passwd and group when using libnss-extrausers -- Jamie Strandboge Mon, 28 Jul 2014 08:16:39 -0500 apparmor (2.8.96~2541-0ubuntu1) utopic; urgency=medium * Updated to r2541 snapshot of 2.8.96: - removed upstreamed patches: convert-to-rules.patch, list-fns.patch, parse-mode.patch, add-decimal-interp.patch, policy_mediates.patch, fix-failpath.patch, feature_file.patch, fix-network.patch, aare-to-class.patch, add-mediation-unix.patch, parser_version.patch, caching.patch, label-class.patch, fix-lexer-debug.patch, use-diff-encode.patch, fix-serialize.patch, fix-ppc-endian-ftbfs.patch, opt_arg.patch, tests-cond-dbus.patch, initialize-mount-flags.patch, fix-typo-in-dbus_write.patch, limited-mount-rule-support.patch, bare-capability-rule-support.patch, check-config-for-sysctl.patch, increase-swap-size.patch, test-v6-policy.patch, test-mount-mediation.patch, mediate-signals.patch, change-signal-syntax.patch, mediate-ptrace.patch, change-ptrace-syntax.patch, test-signal-rules.patch, test-ptrace-rules.patch, update-tests-for-new-semantics.patch, fix-garbage-in-preprocessor-output.patch, fix-double-comma-in-preprocessor-output.patch, symtab-tests-and-seenlist-bug.patch, add-profile-name-variable.patch, fix-names-treated-as-condlistid.patch, manpage-signal-ptrace.patch, python-utils-file-support.patch, python-utils-signal-support.patch, python-utils-ptrace-support.patch, python-utils-pivot_root-support.patch. * Added upstart job (LP: #1305108) - debian/apparmor.upstart: new upstart job. - debian/apparmor.init: added click handling, move some code to unload_obsolete_profiles(). - debian/lib/apparmor/functions: add unload_obsolete_profiles(). - debian/apparmor.postinst, debian/apparmor-profiles.postinst: reload profiles directly since invoke-rc.d won't allow to do this easily with upstart and systemd jobs. - debian/rules: pass --no-start to dh_installinit since we're handling reloading profiles manually in the postinst scripts. - debian/control: add a versioned apparmor Depends to the apparmor-profiles package to make sure the required tools are installed for the postinst script. -- Marc Deslauriers Fri, 20 Jun 2014 07:20:34 -0400 apparmor (2.8.95~2430-0ubuntu5) trusty; urgency=medium * debian/control: add versioned Breaks to apparmor for lxc, libvirt-bin, lightdm and apparmor-easyprof-ubuntu -- Jamie Strandboge Fri, 04 Apr 2014 01:07:24 -0500 apparmor (2.8.95~2430-0ubuntu4) trusty; urgency=medium [ John Johansen, Steve Beattie ] * Add userspace support for AppArmor signals and ptrace mediation (LP: #1298611) + debian/patches/mediate-signals.patch, debian/patches/change-signal-syntax.patch: Parse signal rules with apparmor_parser. See the apparmor.d(5) man page for syntax details. + debian/patches/change-ptrace-syntax.patch, debian/patches/mediate-ptrace.patch: Parse ptrace rules with apparmor_parser. See the apparmor.d(5) man page for syntax details. + debian/patches/test-signal-rules.patch, debian/patches/test-ptrace-rules.patch, debian/patches/update-tests-for-new-semantics.patch: Update existing tests and add new tests for signal and ptrace mediation + debian/patches/fix-garbage-in-preprocessor-output.patch: Fix bug causing apparmor_parser preprocessor output to contain garbage after include statements + debian/patches/fix-double-comma-in-preprocessor-output.patch: Fix bug causing apparmor_parser preprocessor output to contain double commas after some rules + debian/patches/symtab-tests-and-seenlist-bug.patch, debian/patches/add-profile-name-variable.patch: Add ${profile_name} variable for use in profiles when rules need to specify the current profile's name. This is useful for signal and ptrace rules that specify + debian/patches/fix-names-treated-as-condlistid.patch: Fix apparmor_parser bug that caused mount and dbus rules to fail for sets of values [ Jamie Strandboge ] * debian/patches/update-base-abstraction-for-signals-and-ptrace.patch: Adjust the base abstraction for signals and ptrace mediation. Profiles that use the base abstraction can deny any of the granted permissions to achieve tighter confinement. * debian/patches/manpage-signal-ptrace.patch: Update the apparmor.d man page to document signal rules, ptrace rules, and variables for use in AppArmor profiles * debian/patches/dnsmasq-libvirtd-signal-ptrace.patch: Update the dnsmasq profile to allow libvirtd to send signals to and ptrace read the dnsmasq process * debian/patches/update-chromium-browser.patch: Adjust the chromium-browser profile for permissions needed in newer chromium-browser versions and add the rules needed for AppArmor ptrace mediation [ Tyler Hicks ] * Add new rule type support to aa.py to fix tracebacks when using the Python utilities in apparmor-utils on systems with AppArmor profiles containing previously unsupported rule types - debian/patches/python-utils-file-support.patch: Support path rules containing the "file" prefix (LP: #1295346) - debian/patches/python-utils-signal-support.patch: Parse and write signal rules (LP: #1300316) - debian/patches/python-utils-ptrace-support.patch: Parse and write ptrace rules (LP: #1300317) - debian/patches/python-utils-pivot_root-support.patch: Parse and write pivot_root rules (LP: #1298678) -- Tyler Hicks Thu, 03 Apr 2014 15:50:26 -0500 apparmor (2.8.95~2430-0ubuntu3) trusty; urgency=medium [ Jamie Strandboge ] * debian/lib/apparmor/functions: properly calculate number of profiles in /var/lib/apparmor/profiles (LP: #1295816) * autostart aa-notify via /etc/xdg/autostart instead of /etc/X11/Xsession.d (LP: #1288241) - remove debian/notify/90apparmor-notify - add debian/notify/apparmor-notify.desktop - debian/apparmor-notify.install: adjust for the above - add debian/apparmor-notify.maintscript to remove 90apparmor-notify * debian/notify/notify.conf: use_group should be set to "sudo" instead of "admin" (LP: #1009666) [ Tyler Hicks ] * debian/patches/initialize-mount-flags.patch: Initialize the variables containing mount rule flags to zero. Otherwise, the parser may set unexpected bits in the mount flags field for rules that do not specify mount flags. The uninitialized mount flag variables may have caused unexpected AppArmor denials during mount mediation. (LP: #1296459) * debian/patches/fix-typo-in-dbus_write.patch: Fix a bug in the apparmor/aa.py module that caused the utilities in the apparmor-utils package to write out network rules instead of dbus rules * debian/patches/limited-mount-rule-support.patch: Fix a bug in the apparmor/aa.py module that caused the utilities in the apparmor-utils package to traceback when encountering a mount rule (LP: #1294825) * debian/patches/bare-capability-rule-support.patch: Fix a bug in the apparmor/aa.py module that caused the utilities in the apparmor-utils package to traceback when encountering a bare capability rule (LP: #1294819) * debian/patches/check-config-for-sysctl.patch, debian/patches/increase-swap-size.patch: Fix bugs in the regression test suite that caused errors when running on ppc64el * debian/patches/test-v6-policy.patch, debian/patches/test-mount-mediation.patch: Improve the regression tests by increasing the mount rule test coverage -- Tyler Hicks Thu, 27 Mar 2014 14:12:29 -0500 apparmor (2.8.95~2430-0ubuntu2) trusty; urgency=medium * debian/control: Depends on python-pkg-resources for python-apparmor and python3-pkg-resources for python3-apparmor to fix autopkgtests in click-apparmor and apparmor-easyprof-ubuntu -- Jamie Strandboge Thu, 20 Mar 2014 19:33:51 -0500 apparmor (2.8.95~2430-0ubuntu1) trusty; urgency=low [ Jamie Strandboge ] * debian/debhelper/dh_apparmor: exit with error if aa-easyprof does not exist * debian/control: drop Depends on apparmor-easyprof to Suggests for dh-apparmor [ Seth Arnold, Jamie Strandboge, Steve Beattie, John Johansen, Tyler Hicks ] * New upstream snapshot (LP: #1278702, #1061693, #1285653) dropping very large Ubuntu delta and fixing the following bugs: - Adjust fonts abstraction for libthai (LP: #1278702) - Support translated XDG user directories (LP: #1061693) - Adjust abstractions/web-data to include /var/www/html (LP: #1285653) Refresh 0002-add-debian-integration-to-lighttpd.patch to include /etc/lighttpd/conf-available/*.conf - Adjust debian/libapparmor1.symbols to reflect new upstream versioning for the aa_query_label() function - Raise exceptions in Python bindings when something fails * ship new Python replacements for previous Perl-based tools - debian/apparmor-utils.install: remove usr/share/perl5/Immunix/*.pm and add usr/sbin/aa-autodep, usr/sbin/aa-cleanprof and usr/sbin/aa-mergeprof - debian/control: + remove various Perl dependencies + add python-apparmor and python3-apparmor + python3-apparmor Breaks: apparmor-easyprof to move the file since it ships dist-packages/apparmor/__init__.py now - debian/apparmor-utils.manpages: ship new manpages for aa-cleanprof and aa-mergeprof - debian/rules: build and install Python tools * debian/apparmor.install: - install apparmorfs, dovecot, kernelvars, securityfs, sys, and xdg-user-dirs tunables and xdg-user-dirs.d directory * debian/apparmor.dirs: - install /etc/apparmor.d/tunables/xdg-user-dirs.d * debian/rules: delete upstream-provided xdg-user-dirs.d/site.local * debian/apparmor.postinst: create xdg-user-dirs.d/site.local * debian/apparmor.postrm: remove xdg-user-dirs.d * Remaining patches: - add-chromium-browser.patch - add-debian-integration-to-lighttpd.patch - ubuntu-manpage-updates.patch - libapparmor-layout-deb.patch - libapparmor-mention-dbus-method-in-getcon-man.patch - etc-writable.patch - aa-utils_are_bilingual.patch * New patches: - convert-to-rules.patch - list-fns.patch - parse-mode.patch - add-decimal-interp.patch - policy_mediates.patch - fix-failpath.patch - feature_file.patch - fix-network.patch - aare-to-class.patch - add-mediation-unix.patch - parser_version.patch - caching.patch - label-class.patch - fix-lexer-debug.patch - use-diff-encode.patch - fix-serialize.patch - fix-ppc-endian-ftbfs.patch - opt_arg.patch - tests-cond-dbus.patch * Move manpages from libapparmor1 to libapparmor-dev - debian/libapparmor-dev.manpages: install aa_change_hat.2, aa_change_profile.2, aa_find_mountpoint.2, aa_getcon.2 - debian/control: libapparmor-dev Replaces: and Breaks: libapparmor1 * Move /usr/lib/python3/dist-packages/apparmor/__init__.py from apparmor-easyprof to python3-apparmor - debian/control: python3-apparmor Breaks: apparmor-easyprof - debian/apparmor-easyprof.install: remove usr/lib/python*.*/site-packages/apparmor* * New profiles and abstractions: - debian/apparmor.install: tunables/dovecot, tunables/kernelvars, tunables/xdg-user-dirs, tunables/xdg-user-dirs.d -- Seth Arnold Wed, 19 Mar 2014 20:29:27 -0700 apparmor (2.8.94-0ubuntu1.4) trusty; urgency=low * Test merge from upstream new pyutils branch (rev 2385) -- Steve Beattie Thu, 13 Feb 2014 14:16:24 -0800 apparmor (2.8.0-0ubuntu38) trusty; urgency=low [ Tyler Hicks ] * 0084-parser-add-dbus-eavesdrop-perm.patch: Add an eavesdrop permission to the dbus rule type, allowing confined applications to eavesdrop. The only valid conditional for eavesdrop rules is 'bus'. See the apparmor.d(5) man page for more information. (LP: #1262440) [ Steve Beattie ] * 0085-push-normalize-tree-ops-into-expr-tree-classes.patch: Improve parser performance in some cases [ John Johansen ] * 0086-add-diff-state-compression-to-dfa.patch: Implement differential state compression in the parser * 0087-fix-dfa-minimization.patch: Fix a parser bug that caused some DFAs to not be fully minimized (LP: #1262938) * 0088-fix-pol-generation-for-small-dfas.patch: Fixes bugs in the parser when generating policy for some small DFAs -- Tyler Hicks Mon, 13 Jan 2014 11:17:42 -0600 apparmor (2.8.0-0ubuntu37) trusty; urgency=low [ Jan Rękorajski ] * 0082-parser-fix-FTBFS-with-bison-3.patch: Fix parser FTBFS with bison 3 [ Steve Beattie ] * 0083-libapparmor-require-libtoolize.patch: Fix FTBFS by switching the autogen.sh script to use libtoolize instead of libtool -- Tyler Hicks Fri, 10 Jan 2014 13:48:43 -0600 apparmor (2.8.0-0ubuntu36) trusty; urgency=medium * Rebuild for python3.4 as a supported python version. -- Matthias Klose Sat, 04 Jan 2014 18:30:59 +0000 apparmor (2.8.0-0ubuntu35) trusty; urgency=low * abstractions/nameservice: Also allow access to the sssd nss pipe. -- Stéphane Graber Fri, 29 Nov 2013 13:44:49 -0500 apparmor (2.8.0-0ubuntu34) trusty; urgency=low [ Tyler Hicks ] * 0078-parser-check-for-dbus-kernel-support.patch: The parser should not include D-Bus rules in the binary policy that it loads into the kernel if the kernel does not support D-Bus rules (LP: #1231778) * 0079-utils-ignore-unsupported-log-events.patch: aa-logprof should ignore audit events that it does not yet support instead of treating them as errors (LP: #1243932) * 0080-tests-use-ldconfig-for-library-detection.patch: Fix libapparmor detection in regression tests after the multiarch changes [ Jamie Strandboge ] * 0081-python-abstraction-updates.patch: Add rules in support of Python 3.3 [ Chad Miller ] * debian/patches/0001-add-chromium-browser.patch: Follow new chromium-browser sandbox name. Keep old name for now to allow transition. LP: #1247269 -- Tyler Hicks Mon, 04 Nov 2013 15:57:30 -0800 apparmor (2.8.0-0ubuntu33) trusty; urgency=low * Convert to dh. * Bump to debhelper compat level 9 for multiarch support. * Mark libapparmor1, libapparmor-dev Multi-Arch: same. LP: #1246067. -- Steve Langasek Thu, 31 Oct 2013 13:23:57 -0700 apparmor (2.8.0-0ubuntu32) trusty; urgency=low * no change rebuild for perl 5.18 -- Jamie Strandboge Mon, 21 Oct 2013 13:28:26 -0500 apparmor (2.8.0-0ubuntu31) saucy; urgency=low * 0077_aa-status-is-bilingual.patch: aa-status was written to work with python 2 or 3. Upstream is still using 2, so adjust ours to use /usr/bin/python3 to avoid pulling python 2 back to the desktop images -- Jamie Strandboge Fri, 11 Oct 2013 15:35:03 -0500 apparmor (2.8.0-0ubuntu30) saucy; urgency=low [ Tyler Hicks ] * debian/patches/0059-dbus-rules-for-dbus-abstractions.patch: Add an abstraction for the accessibility bus. It is currently very permissive, like the dbus and dbus-session abstractions, and grants all permissions on the accessibility bus. (LP: #1226141) * debian/patches/0071-lp1226356.patch: Fix issues in parsing D-Bus and mount rules. Both rule classes suffered from unexpected auditing behavior when using the 'deny' and 'audit deny' rule modifiers. The 'deny' modifier resulting in accesses being audited and the 'audit deny' modifier resulting in accesses not being audited. (LP: #1226356) * debian/patches/0072-lp1229393.patch: Fix cache location for .features file, which was not being written to the proper location if the parameter --cache-loc= is passed to apparmor_parser. This bug resulted in using the .features file from /etc/apparmor.d/cache or always recompiling policy. Patch thanks to John Johansen. (LP: #1229393) * debian/patches/0073-lp1208988.patch: Update AppArmor file rules of UNIX domain sockets to include read and write permissions. Both permissions are required when a process connects to a UNIX domain socket. Also include new tests for mediation of UNIX domain sockets. Thanks to Jamie Strandboge for helping with the policy updates and testing. (LP: #1208988) * debian/patches/0075-lp1211380.patch: Adjust the audio abstraction to only grant access to specific pulseaudio files in the pulse runtime directory to remove access to potentially dangerous files (LP: #1211380) [ Jamie Strandboge ] * debian/patches/0074-lp1228882.patch: typo in ubuntu-browsers.d/multimedia (LP: #1228882) * 0076_sanitized_helper_dbus_access.patch: allow applications run under sanitized_helper to connect to DBus -- Tyler Hicks Fri, 04 Oct 2013 17:29:52 -0700 apparmor (2.8.0-0ubuntu29) saucy; urgency=low * Add 0070-etc-writable.patch: Allow reading time configuration from /etc/writable, as we have it on the phone. (LP: #1227520) -- Martin Pitt Tue, 01 Oct 2013 09:55:15 +0200 apparmor (2.8.0-0ubuntu28) saucy; urgency=low [ Tyler Hicks ] * Move the aa-exec man page out of apparmor-utils into apparmor, since aa-exec is now in apparmor - debian/control: adjust Breaks/Replaces to use apparmor-utils (<< 2.8.0-0ubuntu28) - debian/apparmor.manpages: install the aa-exec man page - debian/apparmor-utils.manpages: don't install the aa-exec man page * debian/patches/0065-lp1220861.patch: Always NUL-terminate confinement context strings returned from libapparmor (LP: #1220861) * debian/patches/0066-lp1196880.patch: Don't assign mode pointer in aa_getprocattr() if caller passed in NULL (LP: #1196880) * debian/patches/0067-libapparmor-mode-strings-are-not-to-be-freed.patch: Update man page and code comments to make it clear that freeing the *con string returned from libapparmor's getcon functions also frees the *mode string * debian/patches/0068-libapparmor-mention-dbus-method-in-getcon-man.patch: Document the D-Bus method, in the aa_getcon man page, that returns the AppArmor task confinement string of a D-Bus connection [ Jamie Strandboge ] * debian/patches/0069-p11kit-abstraction.patch: p11-kit needs access to /usr/share/p11-kit/modules -- Jamie Strandboge Tue, 10 Sep 2013 12:06:06 -0500 apparmor (2.8.0-0ubuntu27) saucy; urgency=low * debian/apport/source_apparmor.py: AppArmor logs DBus messages to syslog, adjust apport hook to also search there for denials -- Jamie Strandboge Tue, 03 Sep 2013 10:25:45 -0500 apparmor (2.8.0-0ubuntu26) saucy; urgency=low * debian/patches/0064-lp1218099.patch: add support for variable expansion in dbus rules (LP: #1218099) -- Jamie Strandboge Thu, 29 Aug 2013 16:28:36 -0500 apparmor (2.8.0-0ubuntu25) saucy; urgency=low [ Tyler Hicks ] * Add support for mediation of D-Bus messages and services. AppArmor D-Bus rules are described in the apparmor.d(5) man page. dbus-daemon will use libapparmor to perform queries against the AppArmor policies to determine if a connection should be able to send messages to another connection, if a connection should be able to receive messages from another connection, and if a connection should be able to bind to a well-known name. - 0042-Fix-mount-rule-preprocessor-output.patch, 0043-libapparmor-Safeguard-aa_getpeercon-buffer-reallocat.patch, 0044-libapparmor-fix-return-value-of-aa_getpeercon_raw.patch, 0045-libapparmor-Move-mode-parsing-into-separate-function.patch, 0046-libapparmor-Parse-mode-from-confinement-string-in-ge.patch, 0047-libapparmor-Make-aa_getpeercon_raw-similar-to-aa_get.patch, 0048-libapparmor-Update-aa_getcon-man-page-to-reflect-get.patch: Backport parser and libapparmor pre-requisites for D-Bus mediation - 0049-parser-Update-man-page-for-DBus-rules.patch: Update apparmor.d man page - 0050-parser-Add-support-for-DBus-rules.patch, 0051-parser-Regression-tests-for-DBus-rules.patch, 0052-parser-Binary-profile-equality-tests-for-DBus-rules.patch: Add apparmor_parser support for D-Bus mediation rules - 0053-libapparmor-Export-a-label-based-query-interface.patch, debian/libapparmor1.symbols: Provide the libapparmor interface necessary for trusted helpers to make security decisions based upon AppArmor policy - 0054-libaalogparse-Parse-dbus-daemon-audit-messages.patch, 0055-libaalogparse-Regression-tests-for-dbus-daemon-audit.patch: Allow applications to parse denials, generated by dbus-daemon, using libaalogparse and add a set of regression tests - 0056-tests-Add-an-optional-final-check-to-checktestfg.patch, 0057-tests-Add-required-features-check.patch, 0058-tests-Add-regression-tests-for-dbus.patch: Add regression tests which start their own dbus-daemon, load profiles containing D-Bus rules, and confine simple D-Bus service and client applications - 0059-dbus-rules-for-dbus-abstractions.patch: Add bus-specific, but otherwise permissive, D-Bus rules to the dbus and dbus-session abstractions. Confined applications that use D-Bus should already be including these abstractions in their profiles so this should be a seamless transition for those profiles. * 0060-utils-make_clean_fixup.patch: Clean up the Python cache in the AppArmor tests directory * 0061-profiles-dnsmasq-needs-dbus-abstraction.patch: Dnsmasq uses the system D-Bus when it is started with --enable-dbus, so its AppArmor profile needs to include the system bus abstraction * 0062-fix-clone-test-on-arm.patch: Fix compiler error when building regression tests on ARM * 0063-utils-ignore-unsupported-rules.patch: Utilities that use the Immunix::AppArmor perl module, such as aa-logprof and aa-genprof, error out when they encounter rules unsupported by the perl module. This patch ignores unsupported rules. [ Jamie Strandboge ] * debian/control: don't have easyprof Depends on apparmor-easyprof-ubuntu -- Tyler Hicks Mon, 26 Aug 2013 15:32:12 -0700 apparmor (2.8.0-0ubuntu24) saucy; urgency=low * 0040-libapparmor-support-pkg-config.patch: Make it easier for other sources to build against libapparmor with pkg-config - debian/control: Add pkg-config as a Build-Depends - debian/libapparmor-dev.install: Install libapparmor pkg-config file * 0041-parser-fix-flags.patch: Minimal fix for cache failures when the feature file is larger than the feature buffer used for cache version comparison -- Tyler Hicks Thu, 15 Aug 2013 16:34:53 -0700 apparmor (2.8.0-0ubuntu23) saucy; urgency=low * debian/patches/0038-lp1200392.patch: allow mmap of fglrx dri libraries (LP: #1200392) * debian/patches/0039-fix-parser-cache-loc.patch: fix apparmor cache tempfile location to use passed arg * debian/lib/apparmor/functions: update to also load from /var/lib/apparmor/profiles and write cache to /var/cache/apparmor * debian/apparmor.dirs: create /var/cache/apparmor and /var/lib/apparmor/profiles -- Jamie Strandboge Tue, 23 Jul 2013 21:36:40 -0500 apparmor (2.8.0-0ubuntu22) saucy; urgency=low * Refresh easyprof - drop 0034-easyprof-dont-add-vendor-dir.patch - drop 0035-easyprof-update-manpage-for-sdk-base.patch * debian/patches/0037-easyprof-sdk-pt2.patch: update easyprof for the following: - don't add vendor directory to self.templates and self.policy_groups - utils/aa-easyprof: adjust error message for manifest read failure - utils/aa-easyprof: adjust to use EnvironmentError on failed read of the manifest - utils/apparmor/easyprof.py: clean up set_template() - utils/apparmor/easyprof.py: read_paths should use 'rk' - utils/test/test-aa-easyprof.py: adjust tests for above - utils/apparmor/easyprof.py + valid_path should verify os.path.normpath(path) == (path) + adjust valid_profile_name() to start with alpha-numeric and allow Debian source package names and version, plus '_' + adjust tests for above - update valid_variable() to check for valid_path if '/' is in the value - adjust valid_path() to have a relative_ok flag (default to False) - adjust valid_path() to verify path is same as normalized path - add some valid_path() test cases - adjust to always quote template vars in policy output - add a couple tests that have spaces in the binary and template var - update manifest JSON structure to use m['security']['profiles']['profile_name'] instead of m['security']['profile_name'] -- Jamie Strandboge Sun, 07 Jul 2013 19:37:56 -0500 apparmor (2.8.0-0ubuntu21) saucy; urgency=low * Apache 2.4 transition (LP: #1197617, Closes: 666808). Based on patch from intrigeri - debian/control: + Build-Depends on apache2-dev and dh-apache2 instead of apache2-prefork-dev + adjust libapache2-mod-apparmor to not Depends on apache2.2-common + adjust libapache2-mod-apparmor to Pre-Depends: ${misc:Pre-Depends} - create debian/libapache2-mod-apparmor.apache2 - debian/rules: adjust to use dh_apache2 --noenable - debian/libapache2-mod-apparmor.maintscript: remove old prefork profile - debian/libapache2-mod-apparmor.install: install new usr.sbin.apache2 profile - debian/libapache2-mod-apparmor.{preinst,postinst,postrm}: update to use usr.sbin.apache2 - debian/libapache2-mod-apparmor.postinst: remove the disable symlink for old prefork profile - debian/patches/0036-libapache2-mod-apparmor-profile-2.4.patch: update mod_apparmor man page to mention loading mpm_prefork, add new usr.sbin.apache2 profile and remove old prefork profile * debian/rules: honor DEB_BUILD_OPTIONS=nocheck -- Jamie Strandboge Thu, 04 Jul 2013 10:20:20 -0500 apparmor (2.8.0-0ubuntu20) saucy; urgency=low * remove debian/patches/0033-add-ubuntu-sdk-abstractions.patch. We will for now ship policy groups instead of abstractions like this * debian/apparmor.maintscript: rm_conffile on ubuntu-sdk-base * debian/patches/0035-easyprof-update-manpage-for-sdk-base.patch: add sdk-base as a typical policy group -- Jamie Strandboge Wed, 03 Jul 2013 17:29:57 -0500 apparmor (2.8.0-0ubuntu19) saucy; urgency=low * debian/patches/0034-easyprof-dont-add-vendor-dir.patch: don't add vendor directory to self.templates and self.policy_groups * debian/patches/0030-easyprof-sdk.patch: mentioned patch has been forwarded upstream -- Jamie Strandboge Tue, 02 Jul 2013 09:24:23 -0500 apparmor (2.8.0-0ubuntu18) saucy; urgency=low * debian/patches/0030-easyprof-sdk.patch: refreshed for the following: - man page updates - add --output-format=json option - add --verify-manifest - add --policy-version and --policy-vendor which to better work with vendor templates (ie, with apparmor-easyprof-ubuntu) - restructed JSON format (should be final version now). This converts abstractions and policy_groups to proper JSON lists and allows for multiple profiles in the JSON file, keyed off of the profile name - add --output-directory option as an alternative to stdout (particularly useful when using multiple profiles in a JSON file) - also remove ubuntu-sdk-base abstraction. This may move out but for now put it in a different patch - add verify_options() and some utility functions for input validation - unconditionally quote profile name and binary - remove Ubuntu-specific checks in verify_manifest and check profile_name with binary harder * debian/patches/0033-add-ubuntu-sdk-abstractions.patch: add ubuntu-sdk-base abstraction -- Jamie Strandboge Mon, 01 Jul 2013 17:20:33 -0500 apparmor (2.8.0-0ubuntu17) saucy; urgency=low * debian/patches/0032-lp1195362.patch: don't pull in unused perl modules (LP: #1195362) * debian/rules: use dh_perl -d with libapparmor-perl to Depends on perl-base instead of perl * debian/patches/0030-easyprof-sdk.patch: update to remove the ubuntu specific templates and policy groups. These will be shipped in apparmor-easyprof-ubuntu * debian/control: have apparmor-easyprof Depends on apparmor-easyprof-ubuntu -- Jamie Strandboge Fri, 28 Jun 2013 12:01:06 -0500 apparmor (2.8.0-0ubuntu16) saucy; urgency=low * debian/patches/0030-easyprof-sdk.patch: update to have - /usr/share/icons/gnome/index.theme should have 'rk' added to qmlscene policy group - add ubuntu-sdk-html5 template - add qmlscene-webview policygroup * debian/patches/0031-move-poppler-cmap-to-fonts.patch: more than just gnome applications access /usr/share/poppler/cMap/** -- Jamie Strandboge Tue, 25 Jun 2013 15:58:33 -0500 apparmor (2.8.0-0ubuntu15) saucy; urgency=low * move aa-exec out of apparmor-utils into apparmor, since we want it in the default install - debian/control: adjust Breaks/Replaces to use apparmor-utils <<2.8.0-0ubuntu15) and have apparmor Depends on libapparmor-perl - debian/apparmor.install: install aa-exec - debian/apparmor-utils.install: don't install aa-exec -- Jamie Strandboge Tue, 25 Jun 2013 11:48:25 -0500 apparmor (2.8.0-0ubuntu14) saucy-proposed; urgency=low * debian/patches/0029-easyprof-update-for-aa-sandbox.patch: add aa-sandbox utility to source, but don't install yet. This includes code refactoring for easyprof, which is required for the next patch * debian/patches/0030-easyprof-sdk.patch: add SDK support to easyprof (don't include DBus includes yet) * create apparmor-easyprof package - adjust debian/control for new packages and Breaks/Replaces on apparmor-utils 2.8.0-0ubuntu14 - create debian/apparmor-easyprof.install - debian/apparmor-utils.install: don't install easyprof. python libraries moved to easyprof for now since it is the only consumer - debian/apparmor-utils.manpages: move easyprof manpage to debian/apparmor-easyprof.manpages - debian/rules: dh_python3 should also run on apparmor-easyprof * debian/control: dh-apparmor should Depends on apparmor-easyprof * debian/debhelper/dh_apparmor: update to support --manifest argument -- Jamie Strandboge Mon, 24 Jun 2013 09:49:44 -0500 apparmor (2.8.0-0ubuntu13) saucy-proposed; urgency=low * 0021-webapps_abstraction.patch: update to allow 'w' access to ~/.local/share/unity-webapps/availableapps*.db and 'rk' access to ~/.config/libaccounts-glib/accounts.db (LP: #1169633) -- Jamie Strandboge Mon, 10 Jun 2013 10:49:46 -0500 apparmor (2.8.0-0ubuntu12) saucy; urgency=low * 0027-add-gnome-keyring-to-strict.patch: add @{HOME}/.gnome2/keyrings/** to abstractions/private-files-strict * 0028-add-upstart-to-private.patch: deny writes to upstart user sessions jobs in abstractions/private-files -- Jamie Strandboge Mon, 13 May 2013 13:04:54 -0500 apparmor (2.8.0-0ubuntu11) raring; urgency=low * 0025-update-pulseaudio-paths.patch: update path for pulseaudio directory and cookie files * 0026-add-vm_overcommit_memory.patch: add read access to @{PROC}/sys/vm/overcommit_memory * update 0001-add-chromium-browser.patch: - additional accesses required by newer chromium-browser. Patch based on work by Simon Deziel (LP: #1154164) - don't include abstractions already included via gnome abstraction - allow access to dconf/gsettings, required now -- Jamie Strandboge Mon, 08 Apr 2013 14:57:14 -0500 apparmor (2.8.0-0ubuntu10) raring; urgency=low * debian/patches/0001-add-chromium-browser.patch: add accesses for chromium 23 (LP: #1091862) -- Jamie Strandboge Tue, 18 Dec 2012 15:20:05 -0600 apparmor (2.8.0-0ubuntu9) raring; urgency=low * debian/control: make libnotify-bin a Suggests rather than a Recommends since it is assumed to already be installed on the desktop and so server environments don't have to pull in a lot of X dependencies (LP: #1061879) -- Jamie Strandboge Tue, 18 Dec 2012 10:47:50 -0600 apparmor (2.8.0-0ubuntu8) raring; urgency=low [ Steve Beattie ] * 0024-lp1091642-parser-reset_matchflags.patch: prevent reuse of matchflags in parser dfa backend and add testcase demonstrating the problem (LP: #1091642) [ Jamie Strandboge ] * debian/debhelper/postinst-apparmor: quote all occurences of #PROFILE#. -- Steve Beattie Tue, 18 Dec 2012 04:53:28 -0800 apparmor (2.8.0-0ubuntu7) raring; urgency=low * Rebuild to drop python3.2 extension. -- Matthias Klose Thu, 08 Nov 2012 11:15:26 +0000 apparmor (2.8.0-0ubuntu6) raring-proposed; urgency=low * Build python swig modules for all supported pythons. * Use dh_python2 instead of obsolete dh_python. * Remove duplicate chrpath from control. * Remove unneeded quilt dependency. * Bump standards version to 3.9.4, no changes needed. -- Dmitrijs Ledkovs Tue, 23 Oct 2012 12:37:39 +0100 apparmor (2.8.0-0ubuntu5) quantal; urgency=low [ Micah Gersten ] * Allow /etc/vdpau_wrapper.cfg r and /var/lib/xine/gxine.desktop r in the multimedia browser abstraction (LP: #1057642) - update profiles/apparmor.d/abstractions/ubuntu-browsers.d/multimedia [ Steve Beattie ] * debian/control: make libnotify-bin a Recommends rather than a Depends for use in server environments (LP: #1061879) * debian/patches/0020-coredump_tests.patch: fix coredump regression tests (LP: #1050430) * debian/patches/0021-webapps_abstraction.patch: add a few items triggered by using and installing webapps in firefox (LP: #1056418) * debian/patches/0022-aa-decode-stdin.patch: fix aa-decode to process stdin correctly and decode encoded profiles names -- Steve Beattie Tue, 09 Oct 2012 12:44:56 -0700 apparmor (2.8.0-0ubuntu4) quantal; urgency=low * Allow /var/lib/sss/mc/{group|passwd} for systems using sssd. (LP: #1056391) -- Stéphane Graber Tue, 25 Sep 2012 14:59:57 -0400 apparmor (2.8.0-0ubuntu3) quantal; urgency=low * remove 0010-lp972367.patch and 0012-lp964510.patch which should have been dropped in 2.8.0-0ubuntu1 since they are included upstream * debian/patches/0001-add-chromium-browser.patch: - add a couple of small accesses - add a child profile for xdgsettings (LP: #1045986) -- Jamie Strandboge Mon, 17 Sep 2012 08:26:46 -0500 apparmor (2.8.0-0ubuntu2) quantal; urgency=low * 0015-fontconfig.patch: update fonts abstraction for new fontconfig paths * 0016-cap-block-suspend.patch: add CAP_BLOCK_SUSPEND to severity.db. In the next version of AppArmor, this will replace 0006-cap-epollwakeup.patch * 0017-gnome-poppler-data.patch: update gnome abstraction for poppler cMap tables -- Jamie Strandboge Tue, 14 Aug 2012 11:27:15 -0500 apparmor (2.8.0-0ubuntu1) quantal; urgency=low * New upstream release - Drop the following patches, now included upstream: 0003-add-aa-easyprof.patch 0005-clean-common-from-vim.patch 0006-use-linux-capability-h.patch 0008-apparmor-lp963756.patch 0009-apparmor-lp959560-part1.patch 0010-apparmor-lp959560-part2.patch 0011-apparmor-lp872446.patch 0012-apparmor-lp978584.patch 0013-apparmor-lp800826.patch 0014-apparmor-lp979095.patch 0015-apparmor-lp963756.patch 0016-apparmor-lp968956.patch 0017-apparmor-lp979135.patch 0018-lp990931.patch * Rename 0007-ubuntu-manpage-updates.patch to 0003 * debian/patches/0005-lp1019274.patch: add python3 support. Patch based on work from Dmitrijs Ledkovs. (LP: #1019274) * debian/patches/0006-cap-epollwakeup.patch: adjust severity.db for CAP_EPOLLWAKEUP * debian/patches/0007-setuptools-python3.patch: adjust setuptools-python3 to adjust scripts to use PYTHON if it is defined * debian/patches/0008-libapparmor-layout-deb.patch: use --install-layout=deb when calling setup.py * enable python3 in the build: - debian/rules: + use python3 as default PYTHON + build libapparmor with both python2 and python3 - debian/control: + Build-Depends on python3-all-dev and python3 + adjust apparmor to Depends on ${python3:Depends} + adjust apparmor-utils to Depends on ${python3:Depends} + add python3-libapparmor package - add debian/python3-libapparmor.install - debian/python-libapparmor.install: adjust to use python2 and dist-packages * debian/patches/0009-lp1003856.patch: update ubuntu-browsers.d/java for IcedTea 7 (LP: #1003856) * debian/patches/0010-lp972367.patch: allow software center to work again from browsers (LP: #972367) * debian/patches/0011-lp1013887.patch: let sanitized helper work with /usr/local. Patch based on work by Reuben Thomas. (LP: #1013887) * debian/patches/0012-lp964510.patch: allow Google Chrome and chromium-browser to work under sanitized helper (LP: #964510) * debian/patches/0013-lp987578.patch: ubuntu-integration does not work properly with exo-open. Fix thanks to Mark Ramsell (LP: #987578) * debian/patches/0014-lp933440.patch: update skype example profile to work with latest skype. Based on work by Ivan Frederiks (LP: #933440) -- Jamie Strandboge Thu, 05 Jul 2012 10:53:17 -0500 apparmor (2.7.102-0ubuntu5) quantal; urgency=low * debian/debhelper/postrm.apparmor: do not delete local files if main conffile still exists since it probably means it is owned by a new/different package. (LP: #986892) -- Clint Byrum Mon, 11 Jun 2012 21:40:33 -0700 apparmor (2.7.102-0ubuntu4) quantal; urgency=low * Fix FTBFS (LP: #1000055). Patch thanks to Steve Beattie. - debian/control: Build-Depends on texlive-latex-recommended - debian/rules: add V=1 for 'make' and 'make check' when building the parser * debian/patches/0018-lp990931.patch: adjust path for thunderbird to include non-versioned path - LP: #990931 -- Jamie Strandboge Fri, 18 May 2012 15:02:02 -0500 apparmor (2.7.102-0ubuntu3) precise; urgency=low [ Jamie Strandboge ] * debian/patches/0007-ubuntu-manpage-updates.patch: update apparmor(5) to describe Ubuntu's two-stage policy load and how to add utilize it when developing policy (LP: #974089) [ Serge Hallyn ] * debian/apparmor.init: do nothing in a container. This can be removed once stacked profiles are supported and used by lxc. (LP: #978297) [ Steve Beattie ] * debian/patches/0008-apparmor-lp963756.patch: Fix permission mapping for change_profile onexec (LP: #963756) * debian/patches/0009-apparmor-lp959560-part1.patch, debian/patches/0010-apparmor-lp959560-part2.patch: Update the parser to support the 'in' keyword for value lists, and make mount operations aware of 'in' keyword so they can affect the flags build list (LP: #959560) * debian/patches/0011-apparmor-lp872446.patch: fix logprof missing exec events in complain mode (LP: #872446) * debian/patches/0012-apparmor-lp978584.patch: allow inet6 access in dovecot imap-login profile (LP: #978584) * debian/patches/0013-apparmor-lp800826.patch: fix libapparmor log parsing library from dropping apparmor network events that contain ip addresses or ports in them (LP: #800826) * debian/patches/0014-apparmor-lp979095.patch: document new mount rule syntax and usage in apparmor.d(5) manpage (LP: #979095) * debian/patches/0015-apparmor-lp963756.patch: Fix change_onexec for profiles without attachment specification (LP: #963756, LP: #978038) * debian/patches/0016-apparmor-lp968956.patch: Fix protocol error when loading policy to kernels without compat patches (LP: #968956) * debian/patches/0017-apparmor-lp979135.patch: Fix change_profile to grant access to /proc/attr api (LP: #979135) -- Steve Beattie Thu, 12 Apr 2012 06:17:42 -0500 apparmor (2.7.102-0ubuntu2) precise; urgency=low * debian/control: Make dh-apparmor Multi-Arch: foreign, so that it can satisfy cross-build-dependencies. -- Colin Watson Sat, 31 Mar 2012 02:28:05 +0100 apparmor (2.7.102-0ubuntu1) precise; urgency=low * New upstream release. Fixes the following issues in support of LXC AppArmor support for beta-2: - Fix the return size of aa_getprocattr (LP: #962521) - Fix mnt_flags passed for remount - Fix dfa minimization around the nonmatching state - Factor all the permissions dump code into a single perms method * debian/apparmor-utils.install: - AppArmor now installs apparmor.vim. Move it into place - install aa-exec * debian/apparmor-utils.manpages: install aa-exec man page * debian/patches/0003-add-aa-easyprof.patch: refresh for Makefile changes * debian/patches/0005-clean-common-from-vim.patch: clean up 'common' symlink * 0006-use-linux-capability-h.patch: Use linux/capability.h instead of sys/capability.h -- Jamie Strandboge Thu, 22 Mar 2012 15:39:56 -0500 apparmor (2.7.101-0ubuntu1) precise; urgency=low * New upstream release. Fixes: LP: #948147 * debian/lib/apparmor/functions: Update to support the feature directory so that caching will work on kernels that support the feature dir. Patch based on work from John Johansen. LP: #954469 -- Jamie Strandboge Thu, 15 Mar 2012 15:57:02 -0500 apparmor (2.7.100-0ubuntu1) precise; urgency=low * New upstream bug fix release which fixes (in addition to other bugs): - LP: #940362 - LP: #947617 - LP: #949891 * Drop the following patches, included upstream: - 0004-lp918879.patch - 0007-lp941506.patch - 0008-lp941503.patch - 0009-lp943161.patch * Drop the following patch, no longer required: - 0005-disable-minimization.patch * Rename 0006-lp941808.patch 0004-lp941808.patch * debian/patches/0001-add-chromium-browser.patch: update for additional denials with newer chromium-browser. (LP: #937723) * debian/put-all-profiles-in-complain-mode.sh: deal with existing flags -- Jamie Strandboge Fri, 09 Mar 2012 06:56:48 -0600 apparmor (2.7.99-0ubuntu4) precise; urgency=low * Restore dpkg-maintscript-helper changes from 2.7.0-0ubuntu6, lost in 2.7.99-0ubuntu1. -- Colin Watson Mon, 05 Mar 2012 16:11:01 +0000 apparmor (2.7.99-0ubuntu3) precise; urgency=low * debian/patches/0009-lp943161.patch: update to not fail when default-jre-headless is installed (LP: #945019) -- Jamie Strandboge Fri, 02 Mar 2012 12:47:03 -0600 apparmor (2.7.99-0ubuntu2) precise; urgency=low * debian/control: dh-apparmor should Breaks/Replaces on debhelper 9.20120115ubuntu3, not 9.20120115ubuntu2 * debian/patches/0006-lp941808.patch: allow writes to /{,var/}run/sendsigs.omit.d/*dnsmasq.pid for network manager integration (LP: #941808) * debian/patches/0007-lp941506.patch: allow reads to ~/.drirc in the X abstraction (LP: #941506) * debian/patches/0008-lp941503.patch: allow read access to /usr/share/texmf/fonts in fonts abstraction (LP: #941503) * debian/patches/0009-lp943161.patch: fix path to java in ubuntu-browsers.d/java (LP: #943161) -- Jamie Strandboge Fri, 02 Mar 2012 07:50:50 -0600 apparmor (2.7.99-0ubuntu1) precise; urgency=low * New upstream release which also pulls in 2.7.0-1 changes from Debian. For the sake of simplicity, I have added the 2.7.0-1 changelog entry after 2.7.0-0ubuntu7 even though chronologically it appeared in Debian between 2.7.0-0ubuntu4 and 2.7.0-0ubuntu5. - LP: #940422 (FFe) * Drop the following patches, included upstream: - 0003-commits-through-r1882.patch - 0004-lp887992.patch - 0005-lp884748.patch - 0006-lp870992.patch - 0007-lp860856.patch - 0008-lp852062.patch - 0009-lp851977.patch - 0010-lp890894.patch - 0011-lp817956.patch - 0012-lp458922.patch - 0013-lp769148.patch - 0014-lp904548.patch - 0015-lp712584.patch - 0016-lp562831.patch - 0017-lp662906.patch - 0018-deny-home-pki-so.patch - 0019-lp899963.patch - 0020-lp912754a.patch - 0021-lp912754b.patch - 0022-workaround-lp851986.patch - 0023-syslog-ng-needs-dac-read-search.patch - 0024-fix-python-and-ruby-autogeneration.patch - 0025-lp914184.patch - 0026-lp914190.patch - 0027-lp914386.patch - 0028-testsuite-fixes.patch - 0029-lp917628.patch - 0030-lp916285.patch - 0031-lp917639.patch - 0032-lp917641.patch - 0033-add-ubuntu-helpers-to-plugins-common.patch - 0034-lp917859.patch - 0035-kde-should-use-kde4.patch - 0036-lp929531.patch - 0036-fix-manpage-errors.patch * Rename 0037-add-aa-easyprof.patch 0003-add-aa-easyprof.patch * debian/apparmor-profiles.postrm: clean out autogenerated files created by apparmor-profiles.postinst (Closes: 656451) * debian/patches/0004-lp918879.patch: allow /etc/drirc in the X abstraction (LP: #918879) * debian/patches/0005-disable-minimization.patch: do to LP: 940362, minimization is not working correctly. Disable it for now. -- Jamie Strandboge Fri, 24 Feb 2012 09:04:45 -0600 apparmor (2.7.0-1) unstable; urgency=low * debian/po/pt.po add new Portuguese translation, thanks to Pedro Ribeiro, (Closes: 651434). * debian/control: do not require initramfs-tools on !linux-any (Closes: 651297). * debian/{control,rules,debhelper/*}: move dh_apparmor into separate binary package, out of debhelper (Closes: 649784). * debian/{control,rules}: fix up lack of real build-indep. * debian/patches/0036-fix-manpage-errors.patch: minor man page cleanups. * merge changes from Ubuntu (r1443). -- Kees Cook Thu, 09 Feb 2012 15:24:08 -0800 apparmor (2.7.0-0ubuntu7) precise; urgency=low * debian/patches/0037-add-aa-easyprof.patch: add the aa-easyprof tool * apparmor-utils.dirs, apparmor-utils.install, apparmor-utils.manpages: install aa-easyprof and supporting files * python-libapparmor.install: only install LibAppArmor* * debian/rules: use dh_python2 with apparmor-utils * debian/control: apparmor-utils should Depends on ${python:Depends} -- Jamie Strandboge Wed, 15 Feb 2012 07:40:38 -0600 apparmor (2.7.0-0ubuntu6) precise; urgency=low * debian/apparmor.{preinst,postinst,postrm,maintscript}, debian/control: Use maintscript support in dh_installdeb rather than writing out dpkg-maintscript-helper commands by hand. We now simply Pre-Depend on a new enough version of dpkg rather than using 'dpkg-maintscript-helper supports' guards, leading to more predictable behaviour on upgrades. -- Colin Watson Sat, 11 Feb 2012 15:11:01 +0000 apparmor (2.7.0-0ubuntu5) precise; urgency=low * debian/patches/0036-lp929531.patch: adjust base abstraction to allow read access to /sys/devices/system/cpu/online (LP: #929531) -- Jamie Strandboge Thu, 09 Feb 2012 08:04:13 -0600 apparmor (2.7.0-0ubuntu4) precise; urgency=low * debian/patches/0034-lp917859.patch: adjust aspell abstraction for user customizable dictionaries (LP: #917859) * debian/patches/0035-kde-should-use-kde4.patch: adjust abstractions to use kde{,4} instead of kde * debian/control: update Vcs-Bzr -- Jamie Strandboge Wed, 18 Jan 2012 16:27:30 -0600 apparmor (2.7.0-0ubuntu3) precise; urgency=low * debian/patches/0029-lp917628.patch: Adjust dnsmasq profile for NetworkManager integration (LP: #917628) * debian/patches/0030-lp916285.patch: update ubuntu-browsers.d/text-editors to work with emacs2[2-9] (LP: #916285) * debian/patches/0031-lp917639.patch: update p11-kit to allow mmap of libraries in pkcs directories (LP: #917639) * debian/patches/0032-lp917641.patch: ubuntu-integration abstraction for multiarch with gst-plugin-scanner (LP: #917641) * debian/patches/0033-add-ubuntu-helpers-to-plugins-common.patch: include ubuntu-helpers in the plugins-common abstraction -- Jamie Strandboge Tue, 17 Jan 2012 07:18:34 -0600 apparmor (2.7.0-0ubuntu2) precise; urgency=low * debian/patches/0022-workaround-lp851986.patch: update sanitized_helper to include inet6 -- Jamie Strandboge Fri, 13 Jan 2012 11:21:30 +0100 apparmor (2.7.0-0ubuntu1) precise; urgency=low * New upstream release. Fixes the following: - LP: #794974 - LP: #815883 - LP: #840973 * Drop the following patches, included upstream: - af_names-generation.patch - 0004-adjust-logprof-log-search-order.patch - 0005-lp826914.patch - 0006-lp838275.patch - 0007-fix-introspection-tests.patch * Rename 0003-add-debian-integration-to-lighttpd.patch to 0002 * debian/patches/0003-commits-through-r1882.patch: several bug, documentation and performance fixes on our road to AppArmor 2.8 (LP: #840734, LP: #905412) * debian/patches/0004-lp887992.patch: cups-client abstraction should allow owner read of @{HOME}/.cups/client.conf and @{HOME}/.cups/lpoptions (LP: #887992) * update debian/patches/0001-add-chromium-browser.patch for deeper directories of /sys/devices/pci (LP: #885833) * debian/patches/0005-lp884748.patch: allow kate as text editor in the browsers abstraction (LP: #884748) * debian/patches/0006-lp870992.patch: abstractions/fonts should allow access to ~/.fonts.conf.d (LP: #870992) * debian/patches/0007-lp860856.patch: allow read access to sitecustomize.py in the python abstraction, which is needed for apport hooks to work in python applications (LP: #860856) * debian/patches/0008-lp852062.patch: update binaries for transmission clients (LP: #852062) * debian/patches/0009-lp851977.patch: allow ixr access to exo-open for Xubuntu and friends (LP: #851977) * debian/patches/0010-lp890894.patch: allow access to Thunar as well as thunar in ubuntu-integration abstraction (LP: #890894) * debian/patches/0011-lp817956.patch: update usr.sbin.sshd example profile (LP: #817956) * debian/patches/0012-lp458922.patch: update dovecot deliver profile to access various .conf files for dovecot (LP: #458922) * debian/patches/0013-lp769148.patch: allow avahi to do dbus introspection (LP: #769148) * debian/patches/0014-lp904548.patch: fix typo for multiarch line for gconv (LP: #904548) * debian/patches/0015-lp712584.patch: Nvidia users need access to /dev/nvidia* files for various plugins to work right. Since these are all focused around multimedia, add the acceses to the multimedia abstraction. (LP: #712584) * debian/patches/0016-lp562831.patch: allow fireclam plugin to work (LP: #562831) * debian/patches/0017-lp662906.patch: allow software-center in the ubuntu integration browser abstraction (LP: #662906) * debian/patches/0018-deny-home-pki-so.patch: update private-files abstraction to deny write and link to ~/.pki/nssdb/*so files (LP: #911847) * debian/patches/0019-lp899963.patch: add audacity to the ubuntu-media-players abstraction (LP: #899963) * debian/patches/0020-lp912754a.patch,0021-lp912754b.patch: add p11-kit abstraction and add it to the authentication abstraction (LP: #912754) * debian/patches/0022-workaround-lp851986.patch: instead of using Ux in the ubuntu and launchpad abstractions, use a helper child profile. This will help work around the lack of environment filtering (LP: #851986) * debian/patches/0023-syslog-ng-needs-dac-read-search.patch: adjust syslog-ng profile for dac_read_search * debian/patches/0024-fix-python-and-ruby-autogeneration.patch: fix python and ruby autogeneration when using aa-autodep and aa-genprof * debian/patches/0025-lp914184.patch: allow the creation of enchant .config directory in the enchant abstraction (LP: #914184) * debian/patches/0026-lp914190.patch: block write access to ~/.kde/env because KDE automatically sources scripts in that folder on startup (LP: #914190) * debian/pathes/0027-lp914386.patch: add xdg-desktop abstraction and adjust gnome and kde abstractions to use it (LP: #914386) * debian/patches/0028-testsuite-fixes.patch: testsuite fixes in the kernel regression tests -- Jamie Strandboge Thu, 12 Jan 2012 12:55:17 +0100 apparmor (2.7.0~beta1+bzr1774-1ubuntu3) precise; urgency=low * Rebuild for Perl 5.14. -- Colin Watson Tue, 15 Nov 2011 22:10:05 +0000 apparmor (2.7.0~beta1+bzr1774-1ubuntu2) oneiric; urgency=low * 0007-fix-introspection-tests.patch: Add missing introspection regression test that should have been checked in with the introspection patches. -- Jamie Strandboge Tue, 04 Oct 2011 13:13:05 -0500 apparmor (2.7.0~beta1+bzr1774-1ubuntu1) oneiric; urgency=low * 0004-adjust-logprof-log-search-order.patch: Adjust the search order to use just /var/log/audit/audit.log and /var/log/syslog. (LP: #835838) * 0005-lp826914.patch: fix missing multiarch in abstraction/X (LP: #826914) * 0006-lp838275.patch: adjust ubuntu-email abstraction for thunderbird 7 (LP: #838275) -- Jamie Strandboge Fri, 02 Sep 2011 12:30:10 -0500 apparmor (2.7.0~beta1+bzr1774-1) unstable; urgency=low * New upstream devel snapshot: - drop 0002-lp750381.patch, taken upstream. - drop 0004-lp754889.patch, taken upstream. - drop 0005-lp761217.patch, taken upstream. - drop 0100-manpage-typo.patch, taken upstream. - drop 0101-declarations.patch, solved differently upstream. - drop 0102-manpage-release-name.patch, taken upstream. - drop 0103-kfreebsd-compile.patch, taken upstream. - drop define-path-max.patch, taken upstream. - drop indep-build.patch, taken upstream. - debian/libapparmor1.manpages: add new function man pages. * Merge with Ubuntu: - drop 0104-python-aa-status.patch, taken upstream. - drop 0105-lightdm.patch, taken upstream. - drop 0106-lp810270.patch, taken upstream. - drop 0107-lp767308.patch, taken upstream. - drop 0108-gnome-mimeinfo.patch, taken upstream. - drop 0109-add-profile-repo-info.patch, taken upstream. * Add af_names-generation.patch to allow arbitrary socket.h file location. -- Kees Cook Wed, 10 Aug 2011 18:12:34 -0700 apparmor (2.6.1-4ubuntu5) oneiric; urgency=low * debian/patches/0109-add-profile-repo-info.patch: add a blurb about the new profiles repository to aa-genprof, along with a link to the wiki page. -- Marc Deslauriers Mon, 18 Jul 2011 10:49:13 -0400 apparmor (2.6.1-4ubuntu4) oneiric; urgency=low * debian/patches/0106-lp810270.patch: updated to use upstream commits -- Jamie Strandboge Fri, 15 Jul 2011 14:08:38 -0500 apparmor (2.6.1-4ubuntu3) oneiric; urgency=low * debian/patches/0106-lp810270.patch: adjustments for /var/run -> /run, /var/lock -> /run/lock and /dev/shm -> /run/shm transition (LP: #810270) * debian/patches/0107-lp767308.patch: allow read access to /usr/local/share/ca-certificates (LP: #767308) * debian/patches/0001-add-chromium-browser.patch: updates for newer chromium (LP: #776648) * debian/patches/0108-gnome-mimeinfo.patch: allow read access to /usr/share/gnome/applications/mimeinfo.cache in the gnome abstraction -- Jamie Strandboge Thu, 14 Jul 2011 09:39:49 -0500 apparmor (2.6.1-4ubuntu2) oneiric; urgency=low * debian/patches/0105-lightdm.patch: allow owner read access to /var/run/lightdm/authority/[0-9]* -- Jamie Strandboge Wed, 22 Jun 2011 16:29:11 -0500 apparmor (2.6.1-4ubuntu1) oneiric; urgency=low * Get rid of Perl in main AppArmor package so we can remove perl-modules from the installation cd: - debian/patches/0104-python-aa-status.patch: switch aa-status to Python - debian/apparmor.*, debian/apparmor-utils.*: move aa-status, symlink and manpages to main apparmor package. - debian/control: add appropriate Breaks/Replaces/Depends because of the file move, add ${python:Depends} to apparmor Depends, add apparmor-utils to apparmor Suggests. - debian/rules: add apparmor package to dh_python2. * debian/lib/apparmor/functions: fix hat separator (LP: #788616) - Based on upstream revision 1733 -- Marc Deslauriers Wed, 01 Jun 2011 11:03:20 -0400 apparmor (2.6.1-4) unstable; urgency=low * debian/po: add new translations: - zh_CN.po: Simplified Chinese, thanks to Aron Xu (Closes: 624853). - da.po: Danish, thanks to Joe Dalton (Closes: 625252). - sv.po: Swedish, thanks to Martin Bagge (Closes: 625264). - cs.po: Czech, thanks to Michal Šimůnek (Closes: 625465). - de.po: German, thanks to Chris Leick (Closes: 625931). - nl.po: Dutch, thanks to Jeroen Schot (Closes: 626269). - ja.po: Japanese, thanks to Hideki Yamane (Closes: 626803). - it.po: Italian, thanks to Dario Santamaria (Closes: 626836). - fr.po: French, thanks to Julien Patriarca (Closes: 626903). - es.po: Spanish, thanks to Francisco Javier Cuadrado (Closes: 627031). * debian/patches/define-path-max.patch: fix Hurd FTBFS. * debian/patches/indep-build.patch: allow split indep/arch builds. * debian/{control,rules,non-linux}: add fake parser for non-Linux builds so that apparmor-utils is installable (Closes: 625977). -- Kees Cook Fri, 27 May 2011 13:51:18 -0700 apparmor (2.6.1-3) unstable; urgency=low * debian/control: add sneaky missing Build-Dep on liblocale-gettext-perl (fixes FTBFS on some extremely minimal chroots, Closes: 624566). * debian/patches/0101-declarations.patch: add missing declarations needed for sensitive compilers (fixes FTBFS on mips/mipsel). * debian/patches/0102-manpage-release-name.patch: update manpage release names to match others. * debian/patches/0103-kfreebsd-compile.patch, debian/{control,rules}: attempt to build as much as possible (no parser) on non-Linux systems. * debian/po/ru.po: add translation, thanks to Yuri Kozlov (Closes: 624741). -- Kees Cook Sun, 01 May 2011 19:29:07 -0700 apparmor (2.6.1-2) unstable; urgency=low * debian/copyright: clarify for some full organization names. -- Kees Cook Wed, 27 Apr 2011 10:38:07 -0700 apparmor (2.6.1-1) unstable; urgency=low * Initial Debian upload (Closes: 622922). * debian/patches/0100-manpage-typo.patch: fix lintian error in manpage. * debian/clean: update for Debian build. * debian/copyright: rearrange and add a few missing files. * debian/source/format, debian/rules: convert to 3.0 quilt format. * debian/{rules,apparmor-profiles.postinst}: deal with lack of dh_apparmor. -- Kees Cook Sat, 23 Apr 2011 12:14:55 -0700 apparmor (2.6.1-0ubuntu3) natty; urgency=low * debian/patches/0003-add-debian-integration-to-lighttpd.patch: updates for lighttpd example profile to work in Debian/Ubuntu (LP: #582814) * debian/patches/0004-lp754889.patch: add several image viewers to ubuntu-browsers.d/multimedia abstraction (LP: #754889) * debian/patches/0005-lp761217.patch: abstractions/private-files updates for zsh and several other shells (LP: #761217) * debian/patches/0001-add-chromium-browser.patch: fixes for multiarch and crash reporter (LP: #764786) -- Jamie Strandboge Mon, 18 Apr 2011 09:23:50 -0500 apparmor (2.6.1-0ubuntu2) natty; urgency=low * debian/patches/0002-lp750381.path: adjust ubuntu-media-players abstraction to allow reading of configs required by gnash and owner writing of @{HOME}/.gnash (LP: #750381) -- Jamie Strandboge Thu, 07 Apr 2011 10:09:24 -0500 apparmor (2.6.1-0ubuntu1) natty; urgency=low * New upstream release. - Fixes breakage of mod_apparmor apache2 module (LP: #737074) - Fixes profile matching when an attachement doesn't contain a regex (LP: #731155) - Fixes parser acceptance of missing network protocols (LP: #732837) - Patches taken upstream and dropped: + debian/patches/0002-lp727478.patch + debian/patches/0003-test-lp727478.patch + debian/patches/0004-lp736870.patch * debian/apparmor.install, debian/apparmor.dirs: add new multiarch tunable file and directory * debian/python-libapparmor.install: loosen directory specification for resiliancy against different python versions -- Steve Beattie Thu, 24 Mar 2011 01:55:12 -0700 apparmor (2.6.0-0ubuntu4) natty; urgency=low * Update debian/patches/0004-lp736870.patch (LP: #736870): - armel triplet doesn't match '*-linux-gnu' - /lib/tls for libc6-xen needs handling - gnome, kde, kerberosclient, and authentication abstractions also need updating for multiarch. -- Steve Langasek Tue, 22 Mar 2011 15:18:54 -0700 apparmor (2.6.0-0ubuntu3) natty; urgency=low * debian/patches/0004-lp736870.patch: add multiarch support to abstractions (LP: #736870) -- Jamie Strandboge Thu, 17 Mar 2011 09:17:01 -0500 apparmor (2.6.0-0ubuntu2) natty; urgency=low * debian/patches/0002-lp727478.patch: Override AF_MAX for kernels that don't support proper masking. Patch thanks to John Johansen (LP: #727478) * debian/patches/0003-test-lp727478.patch: add tcp.sh test as partial networking test -- Jamie Strandboge Thu, 03 Mar 2011 16:40:08 -0600 apparmor (2.6.0-0ubuntu1) natty; urgency=low [ Steve Beattie ] * New upstream 2.6.0 release (LP: #724193) - Patches taken upstream and dropped: + 0001-ubuntu-buildd.patch + 0003-add-libvirt-support-to-dnsmasq.patch + 0004-lp698194.patch + 0005-aa-disable.patch - debian/rules: remove library path settings for mod_apparmor and pam_apprmor builds; upstream handles this properly now. - debian/apparmor-utils.install: handle upstream SubDomain.pm => AppArmor.pm renaming * debian/lib/apparmor/functions: handle profile names with embedded spaces (LP: #655523) * debian/rules, debian/control, debian/python-libapparmor: build a python-libapparmor package. [ Jamie Strandboge ] * debian/copyright: update and reformat according to DEP-5 * debian/lib/apparmor/functions: don't unload dynamically generated libvirt profiles on reload, restart, and force-reload (LP: #702774) * debian/control: use Section: python for python-libapparmor -- Steve Beattie Thu, 24 Feb 2011 01:41:58 -0800 apparmor (2.6~devel+bzr1617-0ubuntu2) natty; urgency=low * debian/patches/0005-aa-disable.patch: add aa-disable * debian/apparmor-utils.install: install aa-disable * debian/apparmor-utils.manpages: install aa-disable man page -- Jamie Strandboge Mon, 07 Feb 2011 11:23:50 -0600 apparmor (2.6~devel+bzr1617-0ubuntu1) natty; urgency=low * Merge with upstream bzr revision 1617. Closes the following bugs: - LP: #692406: temporarily disable the defunct repository until an alternative can be used - LP: #649497: add ibus abstraction - LP: #652562: allow 'rw' to /var/log/samba/cores/ - LP: #658135: allow access to /usr/lib32 and /usr/lib64 for dri modules * 0002-add-chromium-browser.patch: add /dev/shm/.org.chromium.* (LP: #692866) * rename debian/patches/0010-ubuntu-buildd.patch to 0001-ubuntu-buildd.patch and adjust debian/patches/series * debian/patches/0003-add-libvirt-support-to-dnsmasq.patch (LP: #697239): - allow read and write access to libvirt pid files for dnsmasq - allow net_admin capability for DHCP server - allow net_raw and network inet raw for ICMP pings when used as a DHCP server * debian/patches/0004-lp698194 (LP: #698194): - abstractions/private-files: don't allow wl to autostart directories - abstractions/private-files-strict: don't allow access to chromium, kwallet and popular mail clients -- Jamie Strandboge Fri, 07 Jan 2011 12:44:26 -0600 apparmor (2.6~devel+bzr1601-0ubuntu1) natty; urgency=low * Merge with upstream bzr revision 1601 to gain parser speed improvements and man page fixes. Closes the following bugs: - LP: #349049: document audit, deny and owner rule qualifiers - LP: #466228: ubuntu-browsers.d/multimedia: allow flash printing - LP: #644983: add ubuntu-browsers.d/ubuntu-integration-xul - LP: #692216: use aa_change_hat() instead of change_hat() - LP: #692217: add aa_change_profile.pod manpage * debian/control: explicitly depend on gettext module. * ship apparmor vim syntax file (LP: #646800): - debian/vim-apparmor.yaml: vim addon definition file. - debian/apparmor-utils.install: add apparmor.vim and vim-apparmor.yaml. * debian/libapparmor1.manpages: ship aa_change_profile manpage. -- Kees Cook Mon, 20 Dec 2010 14:37:38 -0800 apparmor (2.6~devel+bzr1527-0ubuntu1) natty; urgency=low * Merge with upstream bzr revision 1527, drop patches taken upstream: - debian/patches/0001-fix-release.patch - debian/patches/0003-local-includes.patch - debian/patches/0004-ubuntu-abstractions-updates.patch - debian/patches/0005-lp648900.patch - debian/patches/0006-testsuite-fixes.patch - debian/patches/0007-honor-cflags.patch - debian/patches/0008-lp652674.patch - debian/patches/0009-sensible-browser-pix.patch * Rework packaging for more sanity. - debian/control: - bump debhelper build depend to Ubuntu-specific v8. - switch apparmor-profiles to arch all as it ships only text. - update Homepage to new domain. - expand long descriptions to keep lintian happy. - debian/compat: bump to 8. - README.Debian: removed, hopelessly out of date. - debian/copyright: - updated for changes to upstream source layout. - fixed lintian warnings. - debian/rules: - ditch mv/install in favor of *.install,*.dir files. - replace "dh_clean -k" with "dh_prep" - use dh_clean's debian/clean file instead of manual rm. - scan for all profiles to run through dh_apparmor. - debian/*.{install,dirs,manpages,docs}: - explicitly list all files needed for packaging - debian/apparmor.{preinst,postinst,postrm}: - add dpkg-maintscript-helper calls to clean up old script locations. - drop old conffile cleanups, since they predate Lucid. - debian/apparmor.init: - move functions to /lib/apparmor. - start on $remote_fs due to using /usr tools during init. - use LC_COLLATE=C for proper sorting. - debian/libapparmor1.symbols: created initial symbols file. - debian/apparmor-docs.doc-base: include doc-base details for techdoc. - debian/notify/90apparmor-notify: use new command name. - lib/apparmor/functions: use LC_COLLATE=C for proper sorting. -- Kees Cook Thu, 04 Nov 2010 18:06:34 -0700 apparmor (2.5.1-0ubuntu4) natty; urgency=low * debian/patches/0004-ubuntu-abstractions-updates.patch: updated to add /usr/bin/emacs-snapshot-gtk PUxr * debian/patches/0009-sensible-browser-pix.patch: use Pix for sensible-browser * debian/patches/0010-ubuntu-buildd.patch: skip parser caching test if the AppArmor securityfs introspection directory is not mounted, as is the case on Ubuntu buildds. -- Jamie Strandboge Tue, 02 Nov 2010 12:17:21 -0500 apparmor (2.5.1-0ubuntu3) natty; urgency=low * debian/control: use the correct version for Conflicts/Replaces -- Jamie Strandboge Tue, 19 Oct 2010 19:53:26 -0500 apparmor (2.5.1-0ubuntu2) natty; urgency=low * debian/{rules,control}: move apache2 abstractions into the base package so we can put apache2 profiles into the -profiles package without aa-logprof bailing out. Patch by Marc Deslauriers. (LP: #539441) -- Jamie Strandboge Tue, 19 Oct 2010 15:44:43 -0500 apparmor (2.5.1-0ubuntu1) natty; urgency=low * New upstream release (LP: #660077) - The following patches were refreshed: + 0001-fix-release.patch + 0003-local-includes.patch + 0008-lp648900.patch: renamed as 0005-lp648900.patch - The following patches were dropped (included upstream): + 0005-lp601583.patch + 0006-network-interface-enumeration.patch + 0007-gnome-updates.patch * debian/patches/0006-testsuite-fixes.patch: testsuite fixes from head of 2.5 branch. These are needed for QRT and SRU testing (LP: #652211) * debian/patches/0007-honor-cflags.patch: have the parser makefile honor CFLAGS environment variable. Brings back missing symbols for the retracer * debian/patches/0008-lp652674.patch: fix warnings for messages without denied or requested masks (LP: #652674) * debian/apparmor.init: fix path to aa-status (LP: #654841) * debian/apport/source_apparmor.py: apport hook should use root_command_hook() for running apparmor_status (LP: #655529) * debian/apport/source_apparmor.py: use ProcKernelCmdline and don't clobber cmdline details (LP: #657091) -- Jamie Strandboge Fri, 15 Oct 2010 12:23:00 -0500 apparmor (2.5.1~rc1-0ubuntu2) maverick; urgency=low * abstractions/ubuntu-email: adjustment for ever-changing thunderbird path (LP: #648900) -- Jamie Strandboge Mon, 27 Sep 2010 09:00:06 -0500 apparmor (2.5.1~rc1-0ubuntu1) maverick; urgency=low [ Jamie Strandboge ] * New upstream RC release (revision 1413). In addition to getting the tools to work with the maverick kernel, this update fixes: - LP: #619521 - LP: #633369 - LP: #626451 - LP: #581525 - LP: #623467 (link and unlink still need to be addressed) * Dropped the following patches, included upstream: - 0002-lp615177.patch - 0004-ubuntu-pux.patch - 0006-kde4-config-pux.patch - 0007-lp605835.patch - 0012-lp625041.patch - 0013-lp623586.patch * Update the following patches: - rename 0010-fix-release.patch as 0001-fix-release.patch since this will likely always need to be here - rename 0005-add-chromium-browser.patch as 0002-add-chromium-browser.patch - rename 0001-local-includes.patch as 0003-local-includes.patch and update to use r1493 (from trunk) of local/README file. This can be dropped in 2.6. - collect the ubuntu abstractions updates pulled from trunk into 0004-ubuntu-abstractions-updates.patch. This can be dropped in 2.6. - rename 0008-lp601583.patch as 0005-lp601583.patch. This can be dropped in 2.5.1 final. * fix up some lintian warnings: - debian/control: + don't use 'Section' in apparmor-notify, since it is the same as the source + updates Standards-Version to 3.9.1 + add ${misc:Depends} to libapparmor-dev and apparmor-notify - add debian/source/format - debian/libapache2-mod-apparmor.postrm: use #DEBHELPER# - debian/libapache2-mod-apparmor.preinst: use #DEBHELPER# - add debian/watch * debian/notify/notify.conf: set show_notifications="yes" by default * debian/patches/0006-network-interface-enumeration.patch: allow network interface enumeration. This can be dropped in 2.5.1 final. * debian/patches/0007-gnome-updates.patch: update for font/icon/mime locations in current gnome. This can be dropped in 2.5.1 final. [ Kees Cook ] * debian/apparmor.init: rename "stop" to "teardown", drop caches on "stop" and warn about the dangers of "teardown". -- Jamie Strandboge Fri, 10 Sep 2010 11:07:19 -0500 apparmor (2.5.1~pre1393-0ubuntu6) maverick; urgency=low * debian/profiles/chromium-browser: updated to have the proper path to local/ * debian/patches/0011-lp514356+573344+593413.patch: browser abstraction updates for /net, kmozillahelper and gnome-appearance-properties (LP: #593413, LP: #514356, LP: #573344) * debian/patches/0012-lp625041.patch: add sensible-browser (LP: #625041) * debian/patches/0013-lp623586.patch: allow access to ghostscript fonts when not using defoma (LP: #623586) -- Jamie Strandboge Fri, 03 Sep 2010 07:39:31 -0500 apparmor (2.5.1~pre1393-0ubuntu5) maverick; urgency=low * debian/patches/0007-lp605835.patch: allow ca-certificates in ssl_certs abstraction (LP: #605835) * debian/patches/0008-lp601583.patch: adjust X abstraction for newer gdm (LP: #601583) * debian/patches/0009-lp565753.patch: add ubuntu-feed-readers abstraction and have ubuntu-browsers.d/multimedia use it (LP: #565753) * debian/apparmor.config: don't try to read in the existing value from /etc/apparmor.d/tunables/home.d/ubuntu, but instead always use what is in debconf. (LP: #561694) * add aa-update-browser for giving a programmatic way to update browser profiles to use browser abstractions - add debian/aa-update-browser - add debian/aa-update-browser.8 - debian/rules: install aa-update-browser* * debian/patches/0003-ubuntu-browsers-d.patch: updated to generalize java child profile names * debian/patches/0010-fix-release.patch: update common/Make.rules to use lsb_release -- Jamie Strandboge Wed, 11 Aug 2010 09:24:23 -0500 apparmor (2.5.1~pre1393-0ubuntu4) maverick; urgency=low * debian/patches/0001-local-includes.patch: updated to adjust local/README to have upstream clarifications * debian/patches/0003-ubuntu-browsers-d.patch: add ubuntu-browsers.d/* abstractions * debian/patches/0004-ubuntu-pux.patch: use 'PUx' instead of 'Ux' in abstractions/ubuntu-* * add chromium-browser profile. All this can be removed once chromium-browser ships its own profile: - debian/patches/0005-add-chromium-browser.patch: add preliminary profiles/apparmor.d/usr.bin.chromium-browser - debian/profiles/chromium-browser: added for use with ubuntu-browsers.d - debian/rules: ship debian/profiles/chromium-browser in apparmor-profiles * don't make /etc/apparmor.d/local/* from apparmor-profiles conffiles - debian/control: Build-Depends on debhelper 7.4.20ubuntu5 - debian/rules: use dh_apparmor instead of shipping the files as conffiles - debian/apparmor-profiles.postinst: move DEBHELPER before initscript reload - debian/apparmor-profiles.postrm: added to remove chromium-browser config file * debian/patches/0006-kde4-config-pux.patch: remove kde4-config from kde abstraction and add it to kde ubuntu-browsers abstraction -- Jamie Strandboge Tue, 10 Aug 2010 14:31:32 -0500 apparmor (2.5.1~pre1393-0ubuntu3) maverick; urgency=low * debian/patches/0002-lp615177.patch: 'owner' match in commit 1406 too strict for /tmp/ and /var/tmp/ (LP: #615177) -- Jamie Strandboge Mon, 09 Aug 2010 10:17:05 -0500 apparmor (2.5.1~pre1393-0ubuntu2) maverick; urgency=low * debian/rules: move local/usr.lib.apache2.mpm-prefork.apache2 to libapache2-mod-apparmor -- Jamie Strandboge Fri, 06 Aug 2010 13:38:59 -0500 apparmor (2.5.1~pre1393-0ubuntu1) maverick; urgency=low * Update to upstream bzr revision 1393 from lp:apparmor/2.5. * add dbus-session abstraction (LP: #566207) * require owner in user-tmp abstraction (LP: #578922) * don't use uninitialized $opt_s (LP: #582075) * allow thunderbird 3 in abstractions/ubuntu-email (LP: #590462) * allow gmplayer in abstractions/ubuntu-media-players (LP: #591421) * debian/control: updated branches. * debian/patches/0001-local-includes.patch: backported patch from trunk to allow local administrators to customize their profiles without modifying a shipped profile * debian/rules: - don't pass RELEASE to libapparmor's 'make install' as it breaks the build and isn't used by the Makfile anyway - install apparmor.d/local/README in apparmor, not apparmor-profiles - don't install apparmor.d/local/usr.sbin.ntpd * Drop the following patches already included upstream: - 0001-lp538561.patch - 0002-aalogprof-warnings.patch - 0003-fix-memleaks.patch - 0004-lp549557.patch - 0005-lp538661.patch - 0006-lp611248.patch -- Jamie Strandboge Thu, 05 Aug 2010 16:10:46 -0500 apparmor (2.5-0ubuntu4) maverick; urgency=low * debian/patches/0006-lp611248.patch: allow access to gdk-pixbuf loaders LP: #611248 -- Jamie Strandboge Tue, 03 Aug 2010 09:32:10 -0500 apparmor (2.5-0ubuntu3) lucid; urgency=low [ Jamie Strandboge ] * debian/patches/lp-549557.patch: have apparmor_notify deal with log file rotation. (LP: #549557) * debian/notify/notify.conf: set show_notifications="yes" * debian/patches/0005-lp538661.patch: adjust php5 abstraction for cgi config file path and extensions (LP: #538661) [ Kees Cook ] * debian/apparmor.functions: do not load in parallel, this is causing weird side-effects. -- Jamie Strandboge Tue, 30 Mar 2010 11:31:49 -0500 apparmor (2.5-0ubuntu2) lucid; urgency=low [ Jamie Strandboge ] * debian/patches/0001-lp538561.patch: add 'k' to /var/lib/samba/**.tdb in the samba abstraction (LP: #538561) [ Marc Deslauriers ] * debian/patches/0002-aalogprof-warnings.patch: get rid of warnings when aa-logprof is run. * debian/{rules,control}: move apache2 abstractions into the base package so we can put apache2 profiles into the -profiles package without aa-logprof bailing out. (LP: #539441) * debian/patches/0003-fix-memleaks.patch: include a couple of leak patches from upstream. -- Marc Deslauriers Fri, 26 Mar 2010 11:39:18 -0400 apparmor (2.5-0ubuntu1) lucid; urgency=low * New upstream release. * debian/control: updated branches. * debian/copyright: updated download locations. * debian/rules: drop unneeded build variables. * common/Make.rules: set distributor. -- Kees Cook Thu, 11 Mar 2010 00:08:08 -0800 apparmor (2.5~pre+bzr1367-0ubuntu1) lucid; urgency=low * Update to upstream bzr revision 1367 * debian/notify/90apparmor-notify: sleep for 60 seconds for boot speed and to make sure that X is all the way up so the notifications look pretty -- Jamie Strandboge Mon, 08 Mar 2010 13:53:50 -0600 apparmor (2.5~pre+bzr1364-0ubuntu1) lucid; urgency=low * Update to upstream bzr revision 1364. * debian/apparmor.functions: ignore .dpkg-bak files when loading too. -- Kees Cook Wed, 17 Feb 2010 13:36:21 -0800 apparmor (2.5~pre+bzr1362-0ubuntu2) lucid; urgency=low * debian/apparmor.postinst: on upgrades, prepopulate apparmor/homedirs if it is not preseeded. Will check /etc/passwd for UIDs >= 1000 and < 30000 for unique dirnames of home directories that are not /home. Fully resolves (LP: #447292) -- Jamie Strandboge Wed, 17 Feb 2010 09:42:55 -0600 apparmor (2.5~pre+bzr1362-0ubuntu1) lucid; urgency=low [ Kees Cook ] * Update to upstream bzr revision 1362. - This release includes DFA minimization, transition table compression, and improved partitioning performance (LP: #503869). - drop 0001-tunable-alias.patch, now upstream. * debian/apparmor.postinst: update home.d template to note the trailing slash, even if the debconf template mentions it too. * debian/apparmor.functions: go fully parallel with parsing to use all CPUs in the case of needing to regenerate caches. * debian/rules: enable library testsuite during build. * debian/control: add dejagnu for library testsuite. * debian/{rules,control}: use chrpath to drop rpath in libapparmor-perl. [ Jamie Strandboge ] * debian/control: add apparmor-notify * add debian/notify/notify.conf * add debian/notify/90apparmor-notify * add debian/apparmor-notify.install: install notify.conf to /etc/apparmor and 90apparmor-notify to /etc/X11/Xsession.d * debian/rules: - remove upstream notify.conf since we will install our own via debhelper - move apparmor_notify script and man pages to apparmor-notify -- Kees Cook Sat, 13 Feb 2010 12:19:30 -0800 apparmor (2.3.1+bzr1312-0ubuntu4) lucid; urgency=low * 0001-tunable-alias.patch: backport r1330 to make it easier for people to use AppArmor's alias rules (LP: #160002) -- Jamie Strandboge Mon, 11 Jan 2010 14:31:06 -0600 apparmor (2.3.1+bzr1312-0ubuntu3) lucid; urgency=low * debian/apparmor.{init,functions}: - add "recache" argument to init script for liveCD cache generation. - skip start/stop/reload when running on liveCD. -- Kees Cook Fri, 08 Jan 2010 08:39:14 -0800 apparmor (2.3.1+bzr1312-0ubuntu2) lucid; urgency=low * debian/rules: disable profiling support for released version. -- Kees Cook Wed, 06 Jan 2010 16:57:58 -0800 apparmor (2.3.1+bzr1312-0ubuntu1) lucid; urgency=low [ Kees Cook ] * Update to upstream bzr revision 1312. * debian/apparmor.postrm: fix comment typo. * debain/rules: switch to bzr for upstream versioning. * debian/rules: install apache2-* abstractions into apache2-mod package. * drop debian/patches/0001-likewise-home-tunables.patch: this is causing too much time in the parser (see LP 503869). The default install is suffering, so move this configuration to likewise-open (see LP 274350). [ Jamie Strandboge ] * debian/rules: - don't ship tunables/home.d/site.local - correct path for moving apache2 abstraction * add debconf question for adjusting HOMEDIRS (LP: #447292) - add debian/apparmor.config - debian/apparmor.postinst: query debconf and adjust tunables/home.d/ubuntu - debian/apparmor.postrm: on purge, remove tunables/home.d/ubuntu and run db_purge - debian/control: Build-Depends on po-debconf and have apparmor Depends on debconf - add debian/po/* - debian/rules: use dh_installdebconf -papparmor - added debian/templates -- Kees Cook Wed, 06 Jan 2010 15:51:33 -0800 apparmor (2.3.1+1403-0ubuntu31) lucid; urgency=low * Remove initramfs hooks, as early profile loading is handled on a service-by-service basis with Upstart jobs now. -- Kees Cook Fri, 04 Dec 2009 13:22:04 -0800 apparmor (2.3.1+1403-0ubuntu30) lucid; urgency=low [ Jamie Strandboge ] * convert to using quilt - debian/control: Build-Depends on quilt - add debian/README.source - debian/rules: include /usr/share/quilt/quilt.make and adjust targets for patching * debian/patches/0001-likewise-home-tunables.patch: tunables/home: add /home/likewise-open/*/ to HOMEDIRS (LP: #274350) * Merge to upstream bzr rev 1308. - really add chromium-browser (LP: #488559) - add official google-chrome (LP: #481661) [ Kees Cook ] * parser/parser_main.c: use nanosec ctime resolution when checking cache file times. * parser/tst/caching.sh: add tests for cache use based on timestamps. -- Jamie Strandboge Fri, 04 Dec 2009 11:11:01 -0600 apparmor (2.3.1+1403-0ubuntu29) lucid; urgency=low * parser/Makefile: generate af_names.h based on bits/socket.h since linux/socket.h no longer has what we need (LP: #474751) * usr.sbin.dnsmasq: fully address LP: #445818 - more pidfile refinements - allow access to /var/run/dnsmasq - allow access to /etc/dnsmasq.d - allow dac_override so it can write its pidfile * abstractions/ubuntu-browsers: add chromium-browser -- Jamie Strandboge Wed, 04 Nov 2009 17:07:23 -0600 apparmor (2.3.1+1403-0ubuntu28) lucid; urgency=low [ Jamie Strandboge ] * update skype profile in extras. Based on work by Андрей Калинин. (LP: #226624) * abstractions/ubuntu-browsers: add opera and icecat (LP: #432778) * abstractions/ubuntu-browsers: add epiphany (epiphany-browser and epiphany-webkit were already present, but the recent changes in epiphany packaging require /usr/bin/epiphany) (LP: #472952) * usr.sbin.dnsmasq: allow pidfiles for /var/run/dnsmasq*.pid (LP: #445818) * abstractions/gnome: allow access to ~/.themes (LP: #460125) * abstractions/kde: allow access to /etc/kde4rc and /usr/bin/kde4-config (LP: #447006) [ Marc Deslauriers ] * utils/Subdomain.pm: don't skip reading profiles that are also in the cache directory (LP: #446449) * utils/Subdomain.pm: correctly parse PUxr modes * utils/Subdomain.pm: support include directories -- Jamie Strandboge Wed, 04 Nov 2009 11:02:27 -0600 apparmor (2.3.1+1403-0ubuntu27) karmic; urgency=low * utils/SubDomain.pm: handle new format "null" log entries (LP: #446524) -- Marc Deslauriers Fri, 16 Oct 2009 14:40:04 -0400 apparmor (2.3.1+1403-0ubuntu26) karmic; urgency=low * abstractions/ubuntu-browsers: add Dooble * abstractions/ubuntu-browsers: add chromium (LP: #448812) * abstractions/gnome: add read for /etc/orbitrc * abstractions/audio: add read for /etc/pulse/* for when ~/.pulse/* doesn't exist and these files are used for fallback -- Jamie Strandboge Wed, 14 Oct 2009 07:59:03 -0500 apparmor (2.3.1+1403-0ubuntu25) karmic; urgency=low * Do not use tools in /usr during initial start-up (LP: #439726). -- Kees Cook Fri, 02 Oct 2009 16:52:04 -0700 apparmor (2.3.1+1403-0ubuntu24) karmic; urgency=low * abstractions/X: allow mouse themes (LP: #438051) -- Jamie Strandboge Thu, 01 Oct 2009 16:07:25 -0500 apparmor (2.3.1+1403-0ubuntu23) karmic; urgency=low [ Kees Cook ] * Really fix quiet mode in initramfs (LP: #435285). * Handle older kernel versions when loading profiles (LP: #429872): - parser/parser_{interface,main}.c: detect kernel version and downgrade. - debian/apparmor.functions, parser/parser_main.c: keep kernel features recorded in cache directory. - parser/parser_{interface,main}.c: add --skip-kernel-load for testing. - parser/tst/caching.*: add caching tests. [ Jamie Strandboge ] * abstractions/audio: add a few more files for pulseaudio -- Kees Cook Fri, 25 Sep 2009 09:54:01 -0700 apparmor (2.3.1+1403-0ubuntu22) karmic; urgency=low * Do not run AppArmor on the LiveCD, again (LP: #131976). * More aggressively stay quiet when booting in quiet mode (LP: #435285). -- Kees Cook Wed, 23 Sep 2009 15:40:22 -0700 apparmor (2.3.1+1403-0ubuntu21) karmic; urgency=low * debian/apparmor.{init-bottom,functions,initramfs}: perform initial apparmor rule loading in initramfs. -- Kees Cook Mon, 21 Sep 2009 14:16:26 -0700 apparmor (2.3.1+1403-0ubuntu20) karmic; urgency=low * added disabled apache2 profile (FFE LP: #430812): - add profiles/apparmor.d/usr.lib.apache2.mpm-prefork.apache2: new apache2 profile - add profiles/apparmor.d/apache2.d/phpsysinfo: example profile for the phpsysinfo application - profiles/Makefile: handle the apache2.d directory - add debian/libapache2-mod-apparmor.postinst: reload apparmor after installation since we now ship a profile in this package - add debian/libapache2-mod-apparmor.preinst: disable apache2 profile if the user does not already have a profile defined - add debian/libapache2-mod-apparmor.postrm: remove disabled symlink on purge - debian/rules: move apache2 profile to the libapache2-mod-apparmor package and create apache2.d directory * utils/SubDomain.pm: handle "open" log entries (LP: #427966) * added ouid parsing support (LP: #431929): - libraries/libapparmor/testsuite/test_multi.c - libraries/libapparmor/src/{scanner.l,grammar.y,aalogparse.h, libaalogparse.c} -- Marc Deslauriers Sat, 19 Sep 2009 09:32:02 -0400 apparmor (2.3.1+1403-0ubuntu19) karmic; urgency=low [ Jamie Strandboge ] * abstractions/fonts: allow links in @{HOME}/.fontconfig/** [ Kees Cook ] * debian/apparmor.init: expect that the securityfs is mounted, and only test for the mounted filesystem against the type column when it is not found. -- Kees Cook Wed, 09 Sep 2009 11:42:07 -0700 apparmor (2.3.1+1403-0ubuntu18) karmic; urgency=low * added the following abstractions: - ubuntu-browsers: Ux transitions to graphical browsers - ubuntu-console-browsers: Ux transitions to text-mode browsers - ubuntu-console-email: Ux transitions to text-mode email clients - ubuntu-email: Ux transitions to graphical email clients - ubuntu-gnome-terminal: ix transition for gnome-terminal - ubuntu-konsole: ix transition for konsole - ubuntu-xterm: ix transition for xterm -- Jamie Strandboge Thu, 03 Sep 2009 11:57:39 -0500 apparmor (2.3.1+1403-0ubuntu17) karmic; urgency=low * abstractions/base: workaround for ecryptfs and apparmor by allowing 'owner' match for files in .Private. (LP: #359338) -- Jamie Strandboge Mon, 31 Aug 2009 15:38:54 -0500 apparmor (2.3.1+1403-0ubuntu16) karmic; urgency=low * profiles/apparmor.d/*dovecot*: add first-pass at complain-only profiles for basic dovecot operation. -- Kees Cook Wed, 26 Aug 2009 15:19:46 -0700 apparmor (2.3.1+1403-0ubuntu15) karmic; urgency=low * utils/SubDomain.pm: don't abort when an include file only contains hats (LP: #400367) -- Marc Deslauriers Wed, 26 Aug 2009 11:35:58 -0400 apparmor (2.3.1+1403-0ubuntu14) karmic; urgency=low * Pull upstream changes for 64bit capabilities (svn 1427, 1437, 1438). * Pull upstream changes for pux exec mode (svn 1439). * debian/apparmor.init: "find" -name is not brace-aware (LP: #418364). -- Kees Cook Mon, 24 Aug 2009 18:01:05 -0700 apparmor (2.3.1+1403-0ubuntu13) karmic; urgency=low [ Kees Cook ] * parser/parser_main.c: add --skip-read-cache to force reading of uncached profiles while still allowing for --write-cache to work. * parser/apparmor_parser.pod: add all missing option documentation. [ Jamie Strandboge ] * abstractions/kde: update for kde4 -- Jamie Strandboge Wed, 19 Aug 2009 12:07:06 -0500 apparmor (2.3.1+1403-0ubuntu12) karmic; urgency=low * abstractions/base: add more locale paths (LP: #413454) -- Jamie Strandboge Fri, 14 Aug 2009 07:31:03 -0500 apparmor (2.3.1+1403-0ubuntu11) karmic; urgency=low * utils/enforce: remove /etc/apparmor.d/disable/ symlink LP: #413153 * debian/rules: don't install usr.sbin.ntpd or tunables/ntpd. Can remove this when we create a new orig.tar.gz -- Jamie Strandboge Wed, 12 Aug 2009 10:04:34 -0500 apparmor (2.3.1+1403-0ubuntu10) karmic; urgency=low * remove apparmor.d/usr.sbin.ntpd and apparmor.d/tunables/ntpd since ntpd will begin shipping its own profile -- Jamie Strandboge Wed, 12 Aug 2009 10:02:53 -0500 apparmor (2.3.1+1403-0ubuntu9) karmic; urgency=low * Revert 64-bit capabilities (LP: #408773). -- Kees Cook Tue, 04 Aug 2009 11:51:27 +0100 apparmor (2.3.1+1403-0ubuntu8) karmic; urgency=low * Update to upstream subversion r1431. - change_profile can use regex (LP: #390810, #401931) * debian/apparmor.init: always clear cache on reload. -- Kees Cook Mon, 03 Aug 2009 07:46:33 -0700 apparmor (2.3.1+1403-0ubuntu7) karmic; urgency=low * profiles/apparmor.d/abstractions/base: add /proc/sys/crypto (LP: #392337). -- Kees Cook Sat, 25 Jul 2009 09:04:46 -0700 apparmor (2.3.1+1403-0ubuntu6) karmic; urgency=low [ Kees Cook ] * parser/parser_policy.c: return errors instead of exiting. * debian/apparmor.init: skip more suffixes. * parser/parser_lex.l: define file suffixes to ignore. * parser/parser_main.c: disable cache for parsing reports. * debian/apparmor.init: also remove unparsed profiles. [ Jamie Strandboge ] * update gnome abstraction for /var/run/gdm/auth*/database * utils/SubDomain.pm: parse profiles in subdirectories, not just include files (LP: #401935) -- Jamie Strandboge Mon, 20 Jul 2009 11:45:24 -0500 apparmor (2.3.1+1403-0ubuntu5) karmic; urgency=low * Always use --replace when loading profiles so that if profiles are loaded outside of the init script (e.g. dhcp3), the init script does not abort (LP: #401109). * parser/parser_main.c: more carefully create cache files. -- Kees Cook Sun, 19 Jul 2009 07:48:11 -0700 apparmor (2.3.1+1403-0ubuntu4) karmic; urgency=low * utils/SubDomain.pm: exclude new cache directory. * parser/parser_main.c: - allow OPTION_REMOVE to work again (LP: #400781). - warn about using stdin. - do not cache disabled profiles. - report cached loading if not quiet. * debian/apparmor.init: - do not depend on aa-status. - only write cache from init script. -- Kees Cook Fri, 17 Jul 2009 10:10:05 -0700 apparmor (2.3.1+1403-0ubuntu3) karmic; urgency=low * debian/apparmor.init: more cleanly handle disabled AppArmor. -- Kees Cook Fri, 17 Jul 2009 00:12:19 -0700 apparmor (2.3.1+1403-0ubuntu2) karmic; urgency=low * improve profile loading speed (LP: #382944): - parser/parser_lex.l: move include handling into flex parser. - parser/parser_main.c: - move disable/complain logic into loader. - add binary caching. - debian/apparmor.init: reduce to bare minimum. -- Kees Cook Wed, 15 Jul 2009 17:05:49 -0700 apparmor (2.3.1+1403-0ubuntu1) karmic; urgency=low [ Kees Cook ] * New upstream bundle (svn1403). * debian/apparmor.init: add specific Start/Stop dependencies (LP: #372441). * debian/control: correctly use lsb-base not sysv for Depends. [ Jamie Strandboge ] * add abstractions/launchpad-integration * abstractions/audio: add pulseaudio * add abstractions/private-files* for explicitly denying access to sensitive files. -- Kees Cook Fri, 10 Jul 2009 08:37:54 -0700 apparmor (2.3+1289-0ubuntu15) karmic; urgency=low * Depend on upstart 0.6.0 which contains upstart-compat-sysv now -- Scott James Remnant Fri, 10 Jul 2009 10:28:45 +0100 apparmor (2.3+1289-0ubuntu14) jaunty; urgency=low * abstractions/smbpass: Add *.ldb used in Samba 3.2 and above (LP: #357581) -- Thierry Carrez Wed, 08 Apr 2009 13:42:21 +0200 apparmor (2.3+1289-0ubuntu13) jaunty; urgency=low [ Kees Cook ] * abstractions/gnome: allow /proc/$pid/mounts for gvfs. * abstractions/python: clean up allowed paths (LP: #350820), thanks to Jonathan Davies. [ Jamie Strandboge ] * abstractions/user-tmp: allow 'k' for files in tmp dirs (LP: #351275) -- Jamie Strandboge Tue, 31 Mar 2009 09:57:57 -0500 apparmor (2.3+1289-0ubuntu12) jaunty; urgency=low * expand allowed library paths to handle unexpected architectures (LP: #349819). -- Kees Cook Fri, 27 Mar 2009 13:48:11 -0700 apparmor (2.3+1289-0ubuntu11) jaunty; urgency=low * fix path to winbindd_privileged/pipe in winbind abstraction (LP: #348541) -- Jamie Strandboge Fri, 27 Mar 2009 08:29:13 -0500 apparmor (2.3+1289-0ubuntu10) jaunty; urgency=low * utils/SubDomain.pm: - teach utils about rearranged syslog audit messages (LP: #340183) from upstream commit https://forgesvn1.novell.com/viewsvn/apparmor?view=rev&revision=1393 - fix corruption of profiles, from upstream commit https://forgesvn1.novell.com/viewsvn/apparmor?view=rev&revision=1354 - don't ask about networking events over and over again, from upstream commit https://forgesvn1.novell.com/viewsvn/apparmor?view=rev&revision=1296 - use apparmor logdir instead of /tmp to write debugging log -- Steve Beattie Thu, 19 Mar 2009 03:05:07 -0700 apparmor (2.3+1289-0ubuntu9) jaunty; urgency=low [ Kees Cook ] * abstractions/base: allow /proc/$pid/maps (LP: #343287). * abstractions/*: clean up lib, lib32, lib64 semantics (LP: #342200). * abstractions/nameservice: fix up paths for nscd (LP: #342198). * parser/rc.apparmor.functions, debian/apparmor.init: LSB-ify startup messages (LP: #295200). [ Steve Beattie ] * libapparmor/src/scanner.l: adjust lexer to fix matching updated audit messages (LP: #340183) from upstream commit https://forgesvn1.novell.com/viewsvn/apparmor?view=rev&revision=1389 * debian/source_apparmor.py: add a per-package apport hook (LP: #342554). -- Kees Cook Wed, 18 Mar 2009 21:18:01 -0700 apparmor (2.3+1289-0ubuntu8) jaunty; urgency=low * abstractions/ssl_keys: allow read access to all of /etc/ssl (LP: #317109) * utils/SubDomain.pm: re-add dropped patch to not process disable/ as include files, and also don't process force-complain/ (LP: #331534) -- Jamie Strandboge Thu, 12 Mar 2009 12:53:08 -0500 apparmor (2.3+1289-0ubuntu7) jaunty; urgency=low * abstractions/dbus: add machine-id * abstractions/audio: add libcanberra paths * abstractions/freedesktop.org: add user-dirs.dirs -- Jamie Strandboge Thu, 12 Feb 2009 11:28:15 -0600 apparmor (2.3+1289-0ubuntu6) jaunty; urgency=low [ Kees Cook ] * abstractions/X: add DRI paths. * parser/Makefile: blacklist AF_PHONET. [ Jamie Strandboge ] * update usr.sbin.smbd profile to write to /var/lib/samba/** and read/write to /var/run/dbus/system_bus_socket (LP: #294802) * abstractions/freedesktop.org: use /usr/share/mime/**, @{HOME}/.icons/, and @{HOME}/.recently-used.xbel* * abstractions/gnome: add gvfs remote-volume-monitors paths and printing files -- Kees Cook Mon, 22 Dec 2008 17:20:10 -0800 apparmor (2.3+1289-0ubuntu5) jaunty; urgency=low * abstractions/nameservice: allow read access to /etc/resolvconf/run/resolv.conf (LP: #286080) * adjust src/grammar.y and src/scanner.l to account for the moved type=NNNN field in 2.6.27 kernels and capture non-matching logfile input instead of printing it to stdout (LP: #271252). Patch thanks to Jesse Michael and Steve Beattie. - https://forgesvn1.novell.com/viewsvn/apparmor?view=rev&revision=1310 * add syslog test cases to testsuite. Patch thanks to Steve Beattie. - https://forgesvn1.novell.com/viewsvn/apparmor?view=rev&revision=1307 - https://forgesvn1.novell.com/viewsvn/apparmor?view=rev&revision=1308 - https://forgesvn1.novell.com/viewsvn/apparmor?view=rev&revision=1309 -- Jamie Strandboge Tue, 21 Oct 2008 09:09:58 -0500 apparmor (2.3+1289-0ubuntu4) intrepid; urgency=low * parser/rc.apparmor.functions: fix typo seen when admin changes the default location of the apparmor.d directory (LP: #280467). * abstractions/{samba,base}: clean up unneeded "m" permissions. * abstractions/perl: add missing default perl paths. -- Kees Cook Wed, 08 Oct 2008 16:42:10 -0700 apparmor (2.3+1289-0ubuntu3) intrepid; urgency=low * add locking permission to /var/log/wtmp abstraction, thanks to Martin Pitt (LP: #253328). * utils/logprof.conf: repository updated for Intrepid (LP: #258818). * profiles/apparmor.d/usr.sbin.nscd: added cache directory (LP: #144383). * parser/rc.apparmor.functions: redirect stderr (LP: #244013). * parser/Makefile: blacklist "AF_ISDN". -- Kees Cook Wed, 30 Jul 2008 09:29:03 -0700 apparmor (2.3+1289-0ubuntu2) intrepid; urgency=low [ Mathias Gug ] * debian/control: - move apparmor-profiles to a suggested package by apparmor. [ Kees Cook ] * debian/control - move libterm-readline-gnu-perl to "suggests". - drop apparmor-modules-source since it no longer exists. -- Kees Cook Wed, 02 Jul 2008 12:35:12 -0700 apparmor (2.3+1289-0ubuntu1) intrepid; urgency=low * Updated to upstream subversion v1289. - new parser requires new AppArmor kernel LSM. * debian/control: - add libapparmor-perl, and associated Depends - bump standards version to 3.7.3.0 (no changes needed) * debian/rules: - adjust "clean" rule to be more effective. -- Kees Cook Sat, 28 Jun 2008 15:38:12 -0700 apparmor (2.1+1075-0ubuntu10) intrepid; urgency=low [ Jamie Strandboge ] * added abstractions/smbpass and #include it in abstractions/authentication to allow access to /var/lib/samba/*.tdb. LP: #217787 [ Mathias Gug ] * update likewise-open authentication abstraction: allow access to privileged pipe (LP: #235646). * Update smbd profile to include access to /var/spool/samba/ (printer sharing) and utmp update (LP: #237066). * Update esound location in audio profile (LP: #229127). Thanks to Adam Mondl. * Add dnsmasq profile (LP: #148590). Thanks to John Dong. -- Mathias Gug Mon, 09 Jun 2008 18:24:09 -0400 apparmor (2.1+1075-0ubuntu9) hardy; urgency=low * parser/rc.apparmor.functions: do not abort if parser is missing, in the case of an unpurged "apparmor" init script running under SELinux. -- Kees Cook Mon, 07 Apr 2008 13:25:06 -0700 apparmor (2.1+1075-0ubuntu8) hardy; urgency=low * Sync bugfixes from upstream 8.04 branch, svn 1161. - documentation updated to reflect AppArmor 2.1 features. - minor profile updates (nscd, ntpd, opera) - util/SubDomain.pm: corrected mask merging and type detection. -- Kees Cook Wed, 02 Apr 2008 15:48:58 -0700 apparmor (2.1+1075-0ubuntu7) hardy; urgency=low * profiles/apparmor.d/abstractions/nameservice: (LP: #207912) - fix ldap path - add nsswitch "db" backend paths -- Kees Cook Thu, 27 Mar 2008 14:19:06 -0700 apparmor (2.1+1075-0ubuntu6) hardy; urgency=low [ Kees Cook ] * utils/SubDomain.pm: - fix up mask parsing to match kernel version (LP: #202920). - fix up syslog parsing regexp to match broken kernels (LP: #202888). * profiles/apparmor.d/abstractions/base: add licenses path for reading. * profiles/apparmor.d/abstractions/freedesktop.org: include /usr/local. * profiles/apparmor.d/usr.sbin.smbd: include print client abstraction. * profiles/apparmor.d/abstractions/nameservice: include missing gai.conf (LP: #202991). [ Jamie Strandboge ] * add Debian Policy compliant way to toggle complain mode (LP: #203137) - parser/rc.apparmor.functions: add '-C' to PARSER_ARGS if force-complain/ exists - utils/enforce: remove symlink in force-complain/ - debian/rules: create /etc/apparmor.d/force-complain -- Kees Cook Mon, 17 Mar 2008 10:28:23 -0700 apparmor (2.1+1075-0ubuntu5) hardy; urgency=low * profiles/apparmor.d/abstractions/python: update shared python locations. * debian/control: adjust Depends to allow sysvinit (LP: #199871). -- Kees Cook Tue, 11 Mar 2008 15:25:11 -0700 apparmor (2.1+1075-0ubuntu4) hardy; urgency=low [ Jamie Strandboge ] * removed usr.sbin.named and usr.sbin.mysqld, as these will be provided be bind9 and mysql-server-5.0, respectively. [ Mathias Gug ] * profiles/apparmor.d/abstractions/ssl_keys: add ssl_keys abstraction, to be used by profiles accessing ssl privates keys. [ Rick Clark ] * added abstraction for likewise-open. -- Mathias Gug Wed, 13 Feb 2008 19:16:12 -0500 apparmor (2.1+1075-0ubuntu3) hardy; urgency=low * profiles/apparmor.d/abstractions/fonts: add missing ~/.fonts.conf * profiles/apparmor.d/sbin.klogd: add newly needed @{PROC}/kallsyms -- Kees Cook Wed, 16 Jan 2008 14:16:18 -0800 apparmor (2.1+1075-0ubuntu2) hardy; urgency=low * utils/apparmor_status: fix module loaded test to handle built-in. -- Kees Cook Thu, 03 Jan 2008 17:24:40 -0800 apparmor (2.1+1075-0ubuntu1) hardy; urgency=low [ Mathias Gug ] * profiles/apparmor.d/abstractions/nameservice: update nameservice abstraction to support nscd setup. [ Kees Cook ] * merge with upstream trunk revision 1075. * debian/{control,apparmor.postrm,apparmor.postinst,apparmor.initramfs}: dropped module hook since module is loaded in kernel automatically now. * debian/rules: tweaked get-orig-source to use defined variables. * debian/copyright: mention "get-orig-source" build rule. * debian/{rules,control,libpam-apparmor.docs}: add libpam-apparmor now that PAM is 0.99. -- Kees Cook Thu, 03 Jan 2008 13:29:31 -0800 apparmor (2.1+993-0ubuntu3) gutsy; urgency=low [ Mathias Gug ] * Add mdns4 resolution to nameservice abstraction. (LP: #148579). * Update syslog-ng profile. (LP: #148708). * Add xen tls libraries to base abstraction. (LP: #150282). * Update cups-client abstraction: add /var/run/cups/cups.sock. (LP: #151269) [ Kees Cook ] * Adjust KDE abstractions for Ubuntu paths (LP: #148309). -- Kees Cook Fri, 12 Oct 2007 12:54:36 -0700 apparmor (2.1+993-0ubuntu2) gutsy; urgency=low [ Mathias Gug ] * debian/control: Set maintainer to Ubuntu Core Developers. * utils/SubDomain.pm, utils/logprog.conf: refactor readprofiledir() to not fail on non-existing profile directory. Fixes LP: #141128. * debian/rules: don't compress profiles in doc/extras/. * utils/SubDomain.pm: Fix regex so that aa-logprof can find audit messages in syslog files. Fixes LP: #140508. * Update usr.sbin.nscd profile. Fixes LP: #144383. [ Kees Cook ] * abstractions/gnupg: drop bad attempt at general-purpose client rule. * abstractions/fonts: adjust for new syntax, add more local fonts paths. * abstractions/nameservice: add mmap permission to some /etc files. -- Kees Cook Tue, 25 Sep 2007 10:23:29 -0700 apparmor (2.1+993-0ubuntu1) gutsy; urgency=low * new merge from upstream: * fixes to support new audit messages sent by the kernel module. * bump in minor library version for libapparmor. * debian/control: Add perl libterm-readkey-perl and librpc-xml-perl dependencies for apparmor-utils. Fixes LP: #139757, LP: #139091. * utils/SubDomain.pm: Re-enable RPC client for remote repositories. * profiles/apparmor.d/sbin.syslogd: update profile. Fixes LP: #140672, LP: #140274. -- Mathias Gug Tue, 18 Sep 2007 11:12:50 -0400 apparmor (2.1+961-0ubuntu5) gutsy; urgency=low * utils/SubDomain.pm, parser/rc.apparmor.functions: skip .dpkg-dist profiles. * debian/rules, debian/apparmor.postinst: fix postinst script failure on upgrades. Fix LP: #139683. -- Mathias Gug Fri, 14 Sep 2007 17:20:01 -0400 apparmor (2.1+961-0ubuntu4) gutsy; urgency=low [ Mathias Gug ] * debian/rules: Fix libapparmor-dev build. * apparmor-profiles: remove gnupg.moved. [ Kees Cook ] * abstractions: adjust gnome for new syntax. * abstractions: adjust aspell to add locking. -- Kees Cook Fri, 14 Sep 2007 09:34:15 -0700 apparmor (2.1+961-0ubuntu3) gutsy; urgency=low [ Mathias Gug ] * Update avahi-daemon profile: add m permission to /etc/password and /etc/group. [ Kees Cook ] * Rename libapparmor1-dev back to libapparmor-dev. -- Kees Cook Thu, 13 Sep 2007 15:44:30 -0700 apparmor (2.1+961-0ubuntu2) gutsy; urgency=low [ Mathias Gug ] * Disable html documentation: Fixes LP: #139091. * parser/Makefile, debian/rules: disable html documentation building. * debian/control: remove latex2html dependency. * profiles/apparmor.d/usr.sbin.avahi-daemon: add sys_chroot capability. Fixes LP: #139092. [ Kees Cook ] * profiles/apparmor.d/abstractions/user-tmp: adjust directory permissions for newly unmasked /tmp handling (LP: #138978). * utils/SubDomain.pm: disable remote repositories until RPC::XML MIR clears (LP: 139091). * utils/*.pod: adjust for Ubuntu paths and "aa-" prefixes (LP: #116647). * Fix upgrades to not unload profiles, which would cause programs to become unconfined: - debian/rules: don't stop apparmor on upgrades. - debian/apparmor.postinst: reload profiles after a configure. -- Kees Cook Wed, 12 Sep 2007 13:14:02 -0700 apparmor (2.1+961-0ubuntu1) gutsy; urgency=low * New upstream version. * Support resolvconf. Fix LP: #132468. * Move package maintainance to bzr: * Apply all patches directly into the tree with dpatch apply-all. * debian/patches/: remove all patches as they are applied inline now. * debian/control, debian/control.modules.in: remove dpatch from Build Depends. * debian/rules: * remove dpatch include. * remove patch and unpatch dependencies * debian/control: * Rename libapparmor-dev to libapparmor1-dev. Add Provides: and Conflict: tags. * Remove universe component in Section tag. * Remove apparmor-utils depends on bsdutils. * Update apparmor-modules Recommends to apparmor-modules-2.1. * utils/: * Add audit man page. * Fix mod_appamor library: remove rpath info. * debian/rules: remove rpath info. * debian/control: add chrpath as a build dependency. * Remove apparmor-modules-source package: * debian/conrol: remove apparmor-modules-source package. * debian/apparmor.postinst, debian/apparmor.preinst, debian/apparmor.prerm: remove error_handler function. * debian/rules: remove error_handler option from dh_installinit. * debian/apparmor-modules-_KVERS_.postinst.modules.in, debian/control.modules.in: remove control and postinst files. -- Mathias Gug Tue, 11 Sep 2007 10:44:56 -0400 apparmor (2.0.1+510.dfsg-0ubuntu25) gutsy; urgency=low * debian/rules: move tunables/ and abstractions/ in apparmor package. Fixes LP: #130114. -- Mathias Gug Mon, 06 Aug 2007 14:40:37 -0400 apparmor (2.0.1+510.dfsg-0ubuntu24) gutsy; urgency=low * Cannot Depend on apparmor-modules-* in apparmor due to germinate issues. Moved to Recommends. -- Kees Cook Mon, 23 Jul 2007 11:08:38 -0700 apparmor (2.0.1+510.dfsg-0ubuntu23) gutsy; urgency=low * debian/control: add explicit Depends on l-u-m apparmor kernel modules. -- Kees Cook Wed, 18 Jul 2007 21:07:03 -0700 apparmor (2.0.1+510.dfsg-0ubuntu22) gutsy; urgency=low * 13-subdomain.pm-skip-files.dpatch: update isSkippable function in SubDomain.pm to skip the same files as rc.apparmor.functions (used by the init script) : .dpkg-old, .dpkg-new and symlinks in disable/ sub-directory. -- Mathias Gug Thu, 12 Jul 2007 06:56:45 -0400 apparmor (2.0.1+510.dfsg-0ubuntu21) gutsy; urgency=low * 07-apparmor-init-script.dpatch, debian/rules: skip profiles that have a link in /etc/apparmor.d/disable. Update rules file : create /etc/apparmor.d/disable. -- Mathias Gug Mon, 09 Jul 2007 11:07:29 -0400 apparmor (2.0.1+510.dfsg-0ubuntu20) gutsy; urgency=low * debian/control - fix typo in XS-Vcs. - adjust apparmor-modules-source to no longer be required and document the fact that the modules come from the linux-ubuntu-modules package now. - add initramfs-tools for loading apparmor modules early. * debian/apparmor.{initramfs,postinst,prerm}, debian/rules: install initramfs hook and update-initramfs for adding armor modules for boot. -- Kees Cook Fri, 06 Jul 2007 03:41:06 -0700 apparmor (2.0.1+510.dfsg-0ubuntu19) gutsy; urgency=low * Update 11-getprocattr-api.dpatch: pass back the correct string pointer so as to not corrupt kernel memory (LP: #123081). * debian/control: add XS-Vcs for bzr branch. -- Kees Cook Tue, 03 Jul 2007 09:07:52 -0700 apparmor (2.0.1+510.dfsg-0ubuntu18) gutsy; urgency=low * 02-profile-abstractions-ubuntu.dpatch: add m permission for all libraries under /usr/lib/**, so that ssl libraries optimized for i686 can be accessed. * 09-profile-usr-sbin-mysqld.dpatch: add m permission to /etc/passwd, /etc/group. * 12-profile-samba.dpatch: add profile for smbd and nmbd daemons from samba. * 99-complain-all-profiles.dpatch: turn complain mode for smbd and nmbd profiles. -- Mathias Gug Fri, 29 Jun 2007 15:19:15 +0200 apparmor (2.0.1+510.dfsg-0ubuntu17) gutsy; urgency=low * Update 11-getprocattr-api.dpatch: match upstream more closely, check for errors. -- Kees Cook Tue, 26 Jun 2007 16:00:08 -0700 apparmor (2.0.1+510.dfsg-0ubuntu16) gutsy; urgency=low * Added 11-getprocattr-api.dpatch: update kernel module for getprocattr API change (LP: #122444). -- Kees Cook Tue, 26 Jun 2007 15:21:54 -0700 apparmor (2.0.1+510.dfsg-0ubuntu15) gutsy; urgency=low * debian/apparmor.init: do not unload apparmor module on stop, since it already defaults to capabilities-compatible fall back and we don't want to lose the started process knowledge of the module for the next load of the parser. * Added 10-namespace-header.dpatch: include namespace_sem extern, since mnt_namespace.h is missing it currently. * Updated 07-apparmor-init-script.dpatch: ignore .dpkg-old profiles. -- Kees Cook Tue, 26 Jun 2007 10:04:54 -0700 apparmor (2.0.1+510.dfsg-0ubuntu14) gutsy; urgency=low * Correct missing libapparmor1 file contents. -- Kees Cook Thu, 21 Jun 2007 08:04:42 -0700 apparmor (2.0.1+510.dfsg-0ubuntu13) gutsy; urgency=low * 02-profile-abstractions-ubuntu.dpatch: add /lib/tls/i686/cmov/lib* to base abstraction to support i686 optimized libraries from libc6-i686 package. * 09-profile-usr-sbin-mysqld.dpatch: * add profile usr.sbin.mysqld * update abstractions/mysql * debian/rules: remove extras/usr.sbin.mysqld. * 99-complain-all-profiles.dpatch: * put mysqld profile in complain mode. * put named profile in complain mode. -- Mathias Gug Wed, 20 Jun 2007 12:12:28 -0400 apparmor (2.0.1+510.dfsg-0ubuntu12) gutsy; urgency=low * Add missing dh_makeshlibs call to rules, fix up libapparmor naming. -- Kees Cook Wed, 20 Jun 2007 09:15:48 -0700 apparmor (2.0.1+510.dfsg-0ubuntu11) gutsy; urgency=low * Packaged libapparmor, libapparmor-dev, and libapache2-mod-apparmor. -- Kees Cook Mon, 18 Jun 2007 18:27:46 -0700 apparmor (2.0.1+510.dfsg-0ubuntu10) gutsy; urgency=low * 02-profile-abstractions-ubuntu.dpatch, 06-profile-usr-sbin-named.dpatch: move /dev/random into abstractions/base. * 06-profile-usr-sbin-named.dpatch: Add sys_chroot capability. * debian/rules: don't package aa-eventd and Reports.pm as they use perl modules not maintained in main. Reports.pm is only used by Yast for now. aa-eventd maintains an sqlite database of audit messages which is used by Reports.pm. If configured (not by default), aa-eventd can also send emails when AppArmor audit messages are emited. * debian/control: Add universe component to Section: header. Needed to make it work with PPA. -- Mathias Gug Fri, 15 Jun 2007 12:47:05 -0400 apparmor (2.0.1+510.dfsg-0ubuntu9) gutsy; urgency=low * 06-profile-usr-sbin-named.dpatch : Generate a new profile for /usr/sbin/named to make it work with bind9. * debian/apparmor.init, 07-apparmor-init-script.dpatch: merge ubuntu changes with the latest version from upstream. * 99-complain-all-profiles.dpatch : put all profiles into complain mode by default. Add a small script (put-all-profiles-in-complain-mode.sh) in debian/ that takes care of automatically setting all profiles into complain mode. This script should be used by the maintainer to set all profiles in complain mode before packaging them. -- Mathias Gug Wed, 6 Jun 2007 13:41:57 -0400 apparmor (2.0.1+510.dfsg-0ubuntu8) gutsy; urgency=low * Start apparmor as early as possible in the boot process : just after mountall in rcS.d. Add preinst script to remove symlinks previously installed in rc*.d/. (LP: #116624). * Sync 04-apparmor-status.dpatch with upstream apparmor_status. The previous patch has been merged in upstream. * Update klogd profile : add /var/run/klogd/klogd.pid and /var/run/klogd/kmsg to the profile. -- Mathias Gug Thu, 31 May 2007 14:26:03 -0400 apparmor (2.0.1+510.dfsg-0ubuntu7) gutsy; urgency=low * 03-profile-usr-sbin-ntpd.dpatch: udpdate profile for ntpd daemon. Add /var/lib/ntp/ntp.drift and /var/log/ntpstats/peerstats* to the profile. * 04-apparmor-status.dpatch: improve apparmor_status script. Report more detailed information. -- Mathias Gug Tue, 29 May 2007 13:05:55 -0400 apparmor (2.0.1+510.dfsg-0ubuntu6) gutsy; urgency=low * 02-profile-abstractions-ubuntu.dpatch: Update abstractions for changes specific to Gnome, Debian, and 32bit on 64bit environments. * debian/control: adjust Recommends to apparmor-modules-source (LP: #113553). * debian/apparmor.init: moved rmmod/modprobe into init script, and dropped alias to avoid confusion and move control of the LSM closer to loading the profiles and work around capability already being loaded in the initrd (LP: #113887). -- Kees Cook Thu, 17 May 2007 20:34:41 -0700 apparmor (2.0.1+510.dfsg-0ubuntu5) gutsy; urgency=low * 01-logger-path.dpatch: Fix path to logger (LP: #112147). -- Kees Cook Thu, 03 May 2007 11:59:34 -0700 apparmor (2.0.1+510.dfsg-0ubuntu4) feisty; urgency=low * debian/control: move apparmor-modules to Recommends to Avoid uninstallable situation when AppArmor modules haven't yet been compiled/installed. -- Kees Cook Wed, 11 Apr 2007 11:39:39 -0700 apparmor (2.0.1+510.dfsg-0ubuntu3) feisty; urgency=low * debian/rules, debian/apparmor.{postinst,prerm}: ignore init script failures so that they don't block package installs/upgrades/uninstalls. -- Kees Cook Wed, 11 Apr 2007 08:52:37 -0700 apparmor (2.0.1+510.dfsg-0ubuntu2) feisty; urgency=low * debian/control: add missing Depend on 'dpatch' for modules-source. -- Kees Cook Sat, 7 Apr 2007 09:35:16 -0700 apparmor (2.0.1+510.dfsg-0ubuntu1) feisty; urgency=low * Initial release, thanks to Magnus Runesson and Jesse Michael (LP: #95334). -- Kees Cook Fri, 23 Mar 2007 16:42:01 -0700 debian/libapache2-mod-apparmor.postinst0000664000000000000000000000260112775006644015375 0ustar #!/bin/sh # postinst script for libapache2-mod-apparmor # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in configure) APP_PROFILE="/etc/apparmor.d/usr.sbin.apache2" if [ -f "$APP_PROFILE" ] && aa-status --enabled 2>/dev/null; then apparmor_parser -rTW "$APP_PROFILE" || true fi # 2.8.0-0ubuntu21 no longer ships usr.lib.apache2.mpm-prefork.apache2 if dpkg --compare-versions "$2" lt-nl "2.8.0-0ubuntu21" ; then rm -f /etc/apparmor.d/disable/usr.lib.apache2.mpm-prefork.apache2 fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/notify/0000775000000000000000000000000012775006645010514 5ustar debian/notify/notify.conf0000664000000000000000000000102712775006645012673 0ustar # ------------------------------------------------------------------ # # Copyright (C) 2010 Canonical Ltd. # # This program is free software; you can redistribute it and/or # modify it under the terms of version 2 of the GNU General Public # License published by the Free Software Foundation. # # ------------------------------------------------------------------ # Set to 'yes' to enable AppArmor DENIED notifications globally show_notifications="yes" # Only people in use_group can use apparmor-notify use_group="sudo" debian/notify/apparmor-notify.desktop0000664000000000000000000000037012775006645015236 0ustar [Desktop Entry] Type=Application Name=AppArmor Notify Comment=Receive on screen notifications of AppArmor denials TryExec=/usr/bin/aa-notify Exec=/usr/bin/aa-notify -p -s 1 -w 60 StartupNotify=false NoDisplay=true X-Ubuntu-Gettext-Domain=aa-notify debian/upstream/0000775000000000000000000000000012775006644011043 5ustar debian/upstream/signing-key.asc0000664000000000000000000001041512775006644013760 0ustar -----BEGIN PGP PUBLIC KEY BLOCK----- mQINBFUwHrABEADZVFn6TF2SxrpMiknHVeUHW7l4mOjHcxtULlEOQ3yaxyNxA0iE GFWnbP7ek2cjzrfNIA1HNiS0FNsKipRAd5EfRUvJO3lrVfPBRBMLExeyA5h8vXtc fcp9zpmKAlNVkx85LtVHxch6eUZapNPwqxKJFiDCrFM/zGk4vbRODy2KO3C8XWiy gHQEW4mjPEsJw6xhyNC63LpCRol7qQu8j6rLJur7GWzSaLKgcUpDktsMJhNRPmCd Dzb4mbEsbSmWUZ0C2e4HqTs6yjkc3HCIPCsxi4Y8e55qVJRvmOvlx0vGqfUrZyXD cUQb8PX02V7sjA1DvE4PnZ8yHj1bS7/Q9x+R5ZjTMkqQ0cYXFnMb8pJ/oZucwl41 RM7Nc57J7XLJmLRv/E7OL4v9DrobIPMOLvAU+PPdYzw+mUZx0jElOo84135nR/0K EC7twaZxXVfF79iCY3OEhbHlPUH+62ucfcIdiV+TBKMhx70XJb4qDn1iDo2XW++N 8LF+7sZNLJnfJ7QfHUwVodWIXNaMsGOfknrZ4mcYbhETk2t6RpfmWUp61nVGeXgo t1k3DXH93rFyccnEkGI8Y/+zFNN2QuZUx56kq6OF4Z3bhk7tSwA1/RubDRoNEQgF 94eGrKMgCfHhwPcV6KCtigtmXbdzhFQS5hJkvGOBHhVht9KbMrs9zh4RLQARAQAB tExBcHBBcm1vciBEZXZlbG9wbWVudCBUZWFtIChBcHBBcm1vciBzaWduaW5nIGtl eSkgPGFwcGFybW9yQGxpc3RzLnVidW50dS5jb20+iQI9BBMBCgAnBQJVMB6wAhsD BQkPCZwABQsJCAcDBRUKCQgLBRYCAwEAAh4BAheAAAoJEGaJ5k49NmS7Lp4QAIS3 D070h7N/giZLUsciLedixqLW8bDzDNFLLturd9ng3x3GwEGdEzibh4TASE6fAQAR x6oW51ndgI5o7ZoNU3I0I/uLPM1B6YscmN9W2SD5oK8uQ7/K5//b8OGLq/cg1ych O2lAh5jaGAhmfHy1MS4ZPQ9zbuwARddB7ESD81P4XIRvd/XzfsB2xW+k/7IR/P3M ZQg+GZm6PxgbK6iwlVyWKj1NyTppzxCWu1yljlbq+Noi5LiucbRdG5qCrymnjgwR kTeFlvBLYP7NDUifP6JsHgxwKbmvrMmFVJTRx2QnsmGv5DA0Evyz8Bof78S4lJQJ TkfiiBmWUc6VNv3IQ56PqMQ6RlsKdaGUxXlcPekyeWKC5K6r80m8YjJNBQ+RQMlh OC7AIckqcB/wPk3/iHvuNbJ0oNd/x/BFBgCs1Wlkktah+tc1aYVPvN1MKhChKD++ RJYZE+BzR3HSgwBE2Oth7s53D+7ZZPtQoQvhxgKBLAlO7rvhlZi1G0id2BaAqris Bwj/zFztNewOFCplM4cIXN2pRthgTJYSv/lCarnHsenTZ9zqqkWj3OsFPcMeWhtI p3jyHXbGC9PtzodG51Aefmz0TqUwIvQxXQ6gOTVlGxMK64MweypYLxMOh9bQOMpS 29XKiX1dKB9ThjTJ6cDBKS7tnZ3cRxAHD3ZOGtiIiEYEEBEKAAYFAlUwIioACgkQ gTeYuayTEnF41wCfVgK6+6dvch7YdkxGYOzkyt2G/EEAoIJq94o9guRD5OWVKS6N gkjXvKQtiQIcBBABCgAGBQJVMCJMAAoJEC8Jno0AXoH0orQP/Rjx0Mdsorjfir+Y ahNk5g4y4ZH425usPRMxRARNpZeGu58RLWOmSW5Fv//I95V0GnK8vyl5YuquHBJM BRN4PR1XqHUqXdzG8zPZLG5elcqyV3cs58QSUyO+6Nbh4OY/VxqcawZYFaL5XE8N y0qo2zeFcACIgsmuPMGBgkB3LAEJQxYZab6n2uIuMnJVai2DSIO5Ql2XC4mrKZOW 2GG6vlvM/MmrKKD+gFKCoGvoea9wYYb/3Lu/DU7nARGcCYyvX2zRTuasUO95Anm5 zYxeXMvSJEq36U+xPLliTcT+bZrzf/dK93SSi/B6txYdM1KQhU0/vLQtdtDDQPFO edvHIVo+UFrve/lNYSmNEcjgd7iAGwFPe7y6dAQs3KQvE70g10KuSVQuYqSVHJ7t AC0AGHHsBcijFLzsSn9hOve8DSo/Jwjgvb1Rx1wl8RsmegATOik7FnWRsU+2OM9f /BU3sLXuKWRQFXiVHsEpRO+vKVFVtcdu7BGzuFBnLS26SNP2jKRYIWJ1ea177w82 vcjX5URSTBSQef0ABuYgzcV3CmTkKmpDmy49X+bpLQjYwX26XVh4Fm8yULTXT+Wc pyDNf4itO8VSQpzrecBBcNJnyYvKBOuV0ASs4bZ0/ghmfGNHENk18ZQHZQ0pI1vX eNk5l60Ensk0WWA/sz1732WzhTtRiQEcBBABAgAGBQJVMUw6AAoJEPMhclmdjS6X iboH/0lIt9Lqp8ZiqiihVZ1huCHieTz4vUOASPcB/Cfa6uWDBtpDdzuL0ID7liqW Gg2SiSwXukQG8QKfxIVIHPPXetsp9MFWV2L9crpXdZcUBb7CzxEkhs0o6VlPahyl KZxkz+tXQpGb1amASYUJEe6Gj+HOMQOt+p3SE2h6VeRc3Rv1CeCLFfk0EPO1P1l0 /KFBfvWPb1AyII1Mcpw8SaMgqHTorKy+UarIoYMpRoD6D8IGqcOrGUdzQNt+jNF5 vYcBTNdVCvrJ74+mT6G10xyXklWlJ4ISgT5kE1fZ+fCbMRX7kHq8WFx6UFrw7lcn 3riMaGsfFL+1TdsRGeSgE8noUHe5Ag0EVTAesAEQALOrZwOHmAYfjX0/AgaaTFit lbJWCWZc8j/ix/90CrKuv8VGRI1b5VnPD/ItV8DjNb221hF4myYUqpelKgXxyLlF 9l/V9tr3G/gjnHhYEY1xpRnN0qbu8xb+t4lEOw3Dt/rO8v1WVRS2UvyVKew5tsTI KsjygxTAnO7yiMUyJR9F+ZDQhCtgLyEWCYySSewbqBBOspJffEOYU94Bo3XVMDX2 2Gb4atwRsq8MyJLlEYb3bgubP7rsL6GYpzodG8M+Q2nqmsOaIyIuQK6fqpBALluN 07fIqUS6HF41w0DEogSm/lLLL2ARddPwN4tCa61IcdvVJhIwHqbNftv7fC2Rr4S4 LBaTdWu62k4cPQcIkwy3Fsuu2XKry/7eby/23J80FVp4XJHsgS31yIaIh7l43DxH cTcFEYQhbsAGznmucDjuaZU7qcEarxUyuIsJ5VI7sj8P716dK9xOeDvw8r32IFbt 7qBsa0ZRcum/H9u7rUelCucbgNZUnuOTpbZttItyVPwPAkNCI36mhqY26hCOoBbG vGxg81Gxzr9GjQskxcCRzTFCpKG1eXal0J0muiPyBereLcelB8NmuPM1tbTaAw0d IJHlCmYZLhSsvx7H7cNicZRmH9LExVVVtFDh09s7nJNvAN1pCQB6cDoVqPiUztKO /hOiIbot3pzpQxTUHkJVABEBAAGJAiUEGAEKAA8FAlUwHrACGwwFCQ8JnAAACgkQ ZonmTj02ZLst/A//Qz6ROHlu+LLiuvo60JSd3+oKhv8MEuRsJsesRnP/7bJRBrUh L3cGMqtTa6YP8JwwRTQXrKW0evtC0W59YSRzPUe99Gu7YfUHeus3GvVxpvR6Tsr7 jnqA3k6zb+M//UvgGwCMA+KLXC2Gkfn3Pybffcva4OeSR3xxRNohb5ME8bbA3YI4 n4+DJ31IBqqlUWY7QKguFaLHIrjY4lNubXZLJ5SrZWVVf6/5LauqXrhFkkj0pyc3 /fqRYCAx0O4KlrxcSEk/YPELxBwXJ24/v9l1glk1a6KfLpU/4cpuU/oiadzrGPMd dJBq4OynmFS7HP5otoAlJLXIEDbeV92F/5h+7iu4wYUgJ0dcCRFcG3YkUhWyS3dw v+0Gs0SQOLQkboXNgBL2AskjK+UmUSWBdcXQ5mXrSSOHbnjFEMQflDz+ykEN3PDQ WQdLeE9aMzewNJJm5f1gBkPPDTBAYzqyXjL4FfwjYl6uEX1IhLrTo0BpP7TqQ4fn BrhLnW7pc35R1ehdrpdKj9+qFUe3/ky7UD3SAyQDrmOLRf5e79iijdSLVPHnzi2q 0ckWcNBrjAluaMHu7OpumSTvEoUgjW+AtrJLwyQW+D6WeaO+Cv+97SGgdmdUJLOZ 32RmAaQpB9NoYUhlFzbgPji1wgvUrbQH5yyRGqGl57sQZptruxrN2lWTcDQ= =eXBA -----END PGP PUBLIC KEY BLOCK----- debian/libapparmor-perl.install0000775000000000000000000000020412775006645014043 0ustar #!/usr/bin/perl -w use Config; # expand the perl binary module directory at build time print substr($Config{vendorarch}, 1) . "\n"; debian/apport/0000775000000000000000000000000012775006645010511 5ustar debian/apport/source_apparmor.py0000664000000000000000000000551112775006645014266 0ustar '''apport package hook for apparmor (c) 2009-2014 Canonical Ltd. Author: Steve Beattie Jamie Strandboge License: GPLv2 ''' from apport.hookutils import (attach_file, attach_file_if_exists, packaging, command_output, root_command_output) import os import re import codecs def stringify(s): '''Converts a byte array into a unicode string''' return codecs.latin_1_decode(s)[0] def recent_kernlog(pattern): '''Extract recent messages from kern.log or message which match a regex. pattern should be a "re" object. ''' lines = '' if os.path.exists('/var/log/kern.log'): file = '/var/log/kern.log' elif os.path.exists('/var/log/messages'): file = '/var/log/messages' else: return lines with open(file, 'rb') as f: for l in f.readlines(): line = stringify(l) if pattern.search(line): lines += line return lines def recent_syslog(pattern): '''Extract recent messages from syslog which match a regex. pattern should be a "re" object. ''' lines = '' if os.path.exists('/var/log/syslog'): file = '/var/log/syslog' else: return lines with open(file, 'rb') as f: for l in f.readlines(): line = stringify(l) if pattern.search(line): lines += line return lines def add_info(report, ui): attach_file(report, '/proc/version_signature', 'ProcVersionSignature') attach_file(report, '/proc/cmdline', 'ProcKernelCmdline') sec_re = re.compile('audit\(|apparmor|selinux|security', re.IGNORECASE) report['KernLog'] = recent_kernlog(sec_re) # DBus messages are reported to syslog dbus_sec_re = re.compile('dbus.* apparmor', re.IGNORECASE) report['Syslog'] = recent_syslog(dbus_sec_re) packages = ['apparmor', 'apparmor-utils', 'libapparmor1', 'libapparmor-dev', 'libapparmor-perl', 'apparmor-utils', 'apparmor-docs', 'apparmor-profiles', 'apparmor-easyprof', 'python3-apparmor', 'python-apparmor', 'libpam-apparmor', 'libapache2-mod-apparmor', 'python3-libapparmor', 'python-libapparmor', 'auditd', 'libaudit0'] versions = '' for package in packages: try: version = packaging.get_version(package) except ValueError: version = 'N/A' if version is None: version = 'N/A' versions += '%s %s\n' % (package, version) report['ApparmorPackages'] = versions # These need to be run as root report['ApparmorStatusOutput'] = root_command_output(['/usr/sbin/apparmor_status']) report['PstreeP'] = command_output(['/usr/bin/pstree', '-p']) attach_file_if_exists(report, '/var/log/audit/audit.log', 'audit.log') debian/libapache2-mod-apparmor.manpages0000664000000000000000000000005512775006645015307 0ustar debian/tmp/usr/share/man/man8/mod_apparmor.8 debian/apparmor-profiles.postinst0000664000000000000000000000405513062363606014450 0ustar #!/bin/sh # postinst script for apparmor-profiles # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. case "$1" in configure) if [ ! -e /etc/apparmor.d/abstractions/ubuntu-browsers.d/chromium-browser ]; then cp /usr/share/apparmor-profiles/abstractions/ubuntu-browsers.d/chromium-browser /etc/apparmor.d/abstractions/ubuntu-browsers.d || true fi ;; esac #DEBHELPER# # If dh_apparmor did not exist, rebuild the local files manually if [ "$1" = "configure" ]; then for profile in $(dpkg -L apparmor-profiles | egrep '^/etc/apparmor.d/[^/]+$') do APP_PROFILE="$profile" if [ -f "$APP_PROFILE" ]; then # Add the local/ include PROFILE_NAME=$(basename "$profile") LOCAL_APP_PROFILE=/etc/apparmor.d/local/"$PROFILE_NAME" test -e "$LOCAL_APP_PROFILE" || { tmp=`mktemp` cat < "$tmp" # Site-specific additions and overrides for $PROFILE_NAME. # For more details, please see /etc/apparmor.d/local/README. EOM mkdir `dirname $LOCAL_APP_PROFILE` 2>/dev/null || true mv -f "$tmp" "$LOCAL_APP_PROFILE" chmod 644 "$LOCAL_APP_PROFILE" } fi done fi case "$1" in configure) invoke-rc.d apparmor reload || true ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac exit 0 debian/control0000664000000000000000000001744313062363606010611 0ustar Source: apparmor Section: admin Priority: extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian AppArmor Team Uploaders: Holger Levsen , intrigeri , Kees Cook Build-Depends: debhelper (>= 9.20120322~), po-debconf, dpkg-dev (>= 1.16.1~), autotools-dev, libtool, automake, autoconf, chrpath, flex, bison, dejagnu, swig, bzip2, apache2-dev, dh-apache2, libpam-dev, texlive-latex-base, texlive-latex-recommended, python-all-dev, python, python3-all-dev, python3, perl (>= 5.8.0), liblocale-gettext-perl, pkg-config Standards-Version: 3.9.6 Homepage: http://apparmor.net/ Vcs-Bzr: https://code.launchpad.net/~ubuntu-core-dev/apparmor/master Package: apparmor Architecture: any Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}, libapparmor-perl, lsb-base, debconf, initramfs-tools | linux-initramfs-tool [linux-any] Breaks: libapache2-mod-apparmor (<< 2.5.1-0ubuntu3), apparmor-utils (<< 2.8.0-0ubuntu28), libvirt-bin (<< 1.2.2-0ubuntu9~), lightdm (<< 1.9.14-0ubuntu2~), lxc (<< 1.0.2-0ubuntu2~), apparmor-easyprof-ubuntu (<< 1.1.14) Replaces: apparmor-parser, libapache2-mod-apparmor (<< 2.5.1-0ubuntu3), apparmor-utils (<< 2.8.0-0ubuntu28) Suggests: apparmor-profiles, apparmor-profiles-extra, apparmor-docs, apparmor-utils Description: user-space parser utility for AppArmor This provides the system initialization scripts needed to use the AppArmor Mandatory Access Control system, including the AppArmor Parser which is required to convert AppArmor text profiles into machine-readable policies that are loaded into the kernel for use with the AppArmor Linux Security Module. Package: apparmor-utils Architecture: any Depends: apparmor (>= 2.6.1-4ubuntu1), libapparmor-perl, python3-apparmor (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}, ${python3:Depends} Suggests: apparmor-docs, vim-addon-manager Description: utilities for controlling AppArmor This provides the utilities to operate on AppArmor profiles. Profiles can be created, updated, enforced, set to complain mode, and disabled with tools such as aa-genprof, aa-enforce, aa-complain and aa-disabled. Package: apparmor-profiles Architecture: all Depends: apparmor (>= 2.8.96~2535-0ubuntu1~), ${misc:Depends} Description: profiles for AppArmor Security policies This provides various AppArmor profiles that have not been shipped by the packages they provide confinement for. By default, they ship in complain mode so that users can test and choose which are desired. Package: apparmor-docs Section: doc Architecture: all Depends: ${misc:Depends} Description: documentation for AppArmor This package provides some technical documentation for the AppArmor Mandatory Access Control system. Currently this is only a single PDF covering basic operation, written some time ago. Package: libapparmor-dev Section: libdevel Architecture: any Multi-Arch: same Depends: libapparmor1 (= ${binary:Version}), ${misc:Depends} Breaks: libapparmor1 ( << 2.8.95~2395-0ubuntu1 ), apparmor-docs ( << 2.8.95~2395-0ubuntu1 ) Replaces: libapparmor1 ( << 2.8.95~2395-0ubuntu1 ), apparmor-docs ( << 2.8.95~2395-0ubuntu1 ) Description: AppArmor development libraries and header files This package provides the development libraries and header files needed to link against the AppArmor changehat and log parsing functions. Also includes the manpages for library functions. Package: libapparmor1 Section: libs Architecture: any Multi-Arch: same Depends: ${shlibs:Depends}, ${misc:Depends} Description: changehat AppArmor library This package provides the shared library used for making use of the AppArmor profile and changehat functionality, as well as common log parsing routines. Package: libapparmor-perl Section: perl Architecture: any Depends: ${perl:Depends}, ${shlibs:Depends}, ${misc:Depends} Description: AppArmor library Perl bindings This provides the Perl module that contains the language bindings for the AppArmor library, libapparmor, which were autogenerated via SWIG. Package: libapache2-mod-apparmor Pre-Depends: ${misc:Pre-Depends} Section: libs Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: changehat AppArmor library as an Apache module This provides the Apache module needed to declare various differing confinement policies when running virtual hosts in the webserver by using the changehat abilities exposed through libapparmor. Package: libpam-apparmor Section: libs Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: changehat AppArmor library as a PAM module This provides the PAM module needed to declare various differing confinement policies when starting PAM sessions by using the changehat abilities exposed through libapparmor. Package: apparmor-notify Architecture: all Depends: libapparmor-perl, ${perl:Depends}, ${misc:Depends} Suggests: libnotify-bin Description: AppArmor notification system This package provides a utility to display AppArmor denial messages via desktop notifications. The utility can also be used to generate summary reports. Package: python-libapparmor Section: python Architecture: any Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends} XS-Python-Version: ${python:Versions} Description: AppArmor library Python bindings This provides the Python module that contains the language bindings for the AppArmor library, libapparmor, which were autogenerated via SWIG. Package: python3-libapparmor Section: python Architecture: any Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends} XS-Python-Version: ${python3:Versions} Description: AppArmor library Python3 bindings This provides the Python3 module that contains the language bindings for the AppArmor library, libapparmor, which were autogenerated via SWIG. Package: python-apparmor Section: python Architecture: any Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}, python-libapparmor (>= ${source:Upstream-Version}), python-pkg-resources Breaks: apparmor-utils ( << 2.8.95~2385-0ubuntu1 ) Replaces: apparmor-utils ( << 2.8.95~2385-0ubuntu1 ) XS-Python-Version: ${python:Versions} Description: AppArmor Python utility library This provides the Python modules that implement the higher-level AppArmor applications. Package: python3-apparmor Section: python Architecture: any Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends}, python3-libapparmor (>= ${source:Upstream-Version}), python3-pkg-resources Breaks: apparmor-easyprof ( << 2.8.95~2385-0ubuntu1 ), apparmor-utils ( << 2.8.95~2385-0ubuntu1 ) Replaces: apparmor-easyprof ( << 2.8.95~2385-0ubuntu1 ), apparmor-utils ( << 2.8.95~2385-0ubuntu1 ) XS-Python-Version: ${python3:Versions} Description: AppArmor Python3 utility library This provides the Python3 modules that implement the higher-level AppArmor applications. Package: dh-apparmor Section: devel Architecture: all Multi-Arch: foreign Depends: ${perl:Depends}, ${misc:Depends} Suggests: apparmor-easyprof Breaks: debhelper (<< 9.20120115ubuntu3) Replaces: debhelper (<< 9.20120115ubuntu3) Description: AppArmor debhelper routines This provides the debhelper tools used to install and migrate AppArmor profiles. This is normally used from package maintainer scripts during install and removal. Package: apparmor-easyprof Section: admin Architecture: all Multi-Arch: foreign Depends: ${python3:Depends}, ${misc:Depends}, python3-apparmor Breaks: apparmor-utils (<< 2.8.0-0ubuntu14) Replaces: apparmor-utils (<< 2.8.0-0ubuntu14) Description: AppArmor easyprof profiling tool This provides the aa-easyprof utility which is an easy to use interface for AppArmor policy generation. aa-easyprof supports the use of templates and policy groups to quickly profile an application. debian/apparmor-docs.docs0000664000000000000000000000002312775006645012620 0ustar parser/techdoc.pdf debian/apparmor-profiles.install0000664000000000000000000001547213062363606014240 0ustar debian/profiles/chromium-browser usr/share/apparmor-profiles/abstractions/ubuntu-browsers.d/ etc/apparmor.d/apache2.d/phpsysinfo etc/apparmor.d/bin.ping etc/apparmor.d/program-chunks/postfix-common etc/apparmor.d/sbin.klogd etc/apparmor.d/sbin.syslogd etc/apparmor.d/sbin.syslog-ng etc/apparmor.d/usr.bin.chromium-browser etc/apparmor.d/usr.lib.dovecot.anvil etc/apparmor.d/usr.lib.dovecot.auth etc/apparmor.d/usr.lib.dovecot.config etc/apparmor.d/usr.lib.dovecot.deliver etc/apparmor.d/usr.lib.dovecot.dict etc/apparmor.d/usr.lib.dovecot.dovecot-auth etc/apparmor.d/usr.lib.dovecot.dovecot-lda etc/apparmor.d/usr.lib.dovecot.imap etc/apparmor.d/usr.lib.dovecot.imap-login etc/apparmor.d/usr.lib.dovecot.lmtp etc/apparmor.d/usr.lib.dovecot.log etc/apparmor.d/usr.lib.dovecot.managesieve etc/apparmor.d/usr.lib.dovecot.managesieve-login etc/apparmor.d/usr.lib.dovecot.pop3 etc/apparmor.d/usr.lib.dovecot.pop3-login etc/apparmor.d/usr.lib.dovecot.ssl-params etc/apparmor.d/usr.sbin.avahi-daemon etc/apparmor.d/usr.sbin.dnsmasq etc/apparmor.d/usr.sbin.dovecot etc/apparmor.d/usr.sbin.identd etc/apparmor.d/usr.sbin.mdnsd etc/apparmor.d/usr.sbin.nmbd etc/apparmor.d/usr.sbin.nscd etc/apparmor.d/usr.sbin.smbd etc/apparmor.d/usr.sbin.traceroute usr/share/doc/apparmor-profiles/extras/README usr/share/doc/apparmor-profiles/extras/bin.netstat usr/share/doc/apparmor-profiles/extras/etc.cron.daily.logrotate usr/share/doc/apparmor-profiles/extras/etc.cron.daily.slocate.cron usr/share/doc/apparmor-profiles/extras/etc.cron.daily.tmpwatch usr/share/doc/apparmor-profiles/extras/sbin.dhclient usr/share/doc/apparmor-profiles/extras/sbin.dhcpcd usr/share/doc/apparmor-profiles/extras/sbin.portmap usr/share/doc/apparmor-profiles/extras/sbin.resmgrd usr/share/doc/apparmor-profiles/extras/sbin.rpc.lockd usr/share/doc/apparmor-profiles/extras/sbin.rpc.statd usr/share/doc/apparmor-profiles/extras/usr.NX.bin.nxclient usr/share/doc/apparmor-profiles/extras/usr.bin.acroread usr/share/doc/apparmor-profiles/extras/usr.bin.apropos usr/share/doc/apparmor-profiles/extras/usr.bin.evolution-2.10 usr/share/doc/apparmor-profiles/extras/usr.bin.fam usr/share/doc/apparmor-profiles/extras/usr.bin.freshclam usr/share/doc/apparmor-profiles/extras/usr.bin.gaim usr/share/doc/apparmor-profiles/extras/usr.bin.man usr/share/doc/apparmor-profiles/extras/usr.bin.mlmmj-bounce usr/share/doc/apparmor-profiles/extras/usr.bin.mlmmj-maintd usr/share/doc/apparmor-profiles/extras/usr.bin.mlmmj-make-ml.sh usr/share/doc/apparmor-profiles/extras/usr.bin.mlmmj-process usr/share/doc/apparmor-profiles/extras/usr.bin.mlmmj-recieve usr/share/doc/apparmor-profiles/extras/usr.bin.mlmmj-send usr/share/doc/apparmor-profiles/extras/usr.bin.mlmmj-sub usr/share/doc/apparmor-profiles/extras/usr.bin.mlmmj-unsub usr/share/doc/apparmor-profiles/extras/usr.bin.opera usr/share/doc/apparmor-profiles/extras/usr.bin.passwd usr/share/doc/apparmor-profiles/extras/usr.bin.procmail usr/share/doc/apparmor-profiles/extras/usr.bin.skype usr/share/doc/apparmor-profiles/extras/usr.bin.spamc usr/share/doc/apparmor-profiles/extras/usr.bin.svnserve usr/share/doc/apparmor-profiles/extras/usr.bin.wireshark usr/share/doc/apparmor-profiles/extras/usr.bin.xfs usr/share/doc/apparmor-profiles/extras/usr.lib.GConf.2.gconfd-2 usr/share/doc/apparmor-profiles/extras/usr.lib.bonobo.bonobo-activation-server usr/share/doc/apparmor-profiles/extras/usr.lib.evolution-data-server.evolution-data-server-1.10 usr/share/doc/apparmor-profiles/extras/usr.lib.firefox.firefox usr/share/doc/apparmor-profiles/extras/usr.lib.firefox.firefox.sh usr/share/doc/apparmor-profiles/extras/usr.lib.firefox.mozilla-xremote-client usr/share/doc/apparmor-profiles/extras/usr.lib.man-db.man usr/share/doc/apparmor-profiles/extras/usr.lib.postfix.anvil usr/share/doc/apparmor-profiles/extras/usr.lib.postfix.bounce usr/share/doc/apparmor-profiles/extras/usr.lib.postfix.cleanup usr/share/doc/apparmor-profiles/extras/usr.lib.postfix.discard usr/share/doc/apparmor-profiles/extras/usr.lib.postfix.error usr/share/doc/apparmor-profiles/extras/usr.lib.postfix.flush usr/share/doc/apparmor-profiles/extras/usr.lib.postfix.lmtp usr/share/doc/apparmor-profiles/extras/usr.lib.postfix.local usr/share/doc/apparmor-profiles/extras/usr.lib.postfix.master usr/share/doc/apparmor-profiles/extras/usr.lib.postfix.nqmgr usr/share/doc/apparmor-profiles/extras/usr.lib.postfix.oqmgr usr/share/doc/apparmor-profiles/extras/usr.lib.postfix.pickup usr/share/doc/apparmor-profiles/extras/usr.lib.postfix.pipe usr/share/doc/apparmor-profiles/extras/usr.lib.postfix.proxymap usr/share/doc/apparmor-profiles/extras/usr.lib.postfix.qmgr usr/share/doc/apparmor-profiles/extras/usr.lib.postfix.qmqpd usr/share/doc/apparmor-profiles/extras/usr.lib.postfix.scache usr/share/doc/apparmor-profiles/extras/usr.lib.postfix.showq usr/share/doc/apparmor-profiles/extras/usr.lib.postfix.smtp usr/share/doc/apparmor-profiles/extras/usr.lib.postfix.smtpd usr/share/doc/apparmor-profiles/extras/usr.lib.postfix.spawn usr/share/doc/apparmor-profiles/extras/usr.lib.postfix.tlsmgr usr/share/doc/apparmor-profiles/extras/usr.lib.postfix.trivial-rewrite usr/share/doc/apparmor-profiles/extras/usr.lib.postfix.verify usr/share/doc/apparmor-profiles/extras/usr.lib.postfix.virtual usr/share/doc/apparmor-profiles/extras/usr.lib.RealPlayer10.realplay usr/share/doc/apparmor-profiles/extras/usr.lib64.GConf.2.gconfd-2 usr/share/doc/apparmor-profiles/extras/usr.sbin.cupsd usr/share/doc/apparmor-profiles/extras/usr.sbin.dhcpd usr/share/doc/apparmor-profiles/extras/usr.sbin.httpd2-prefork usr/share/doc/apparmor-profiles/extras/usr.sbin.imapd usr/share/doc/apparmor-profiles/extras/usr.sbin.in.fingerd usr/share/doc/apparmor-profiles/extras/usr.sbin.in.ftpd usr/share/doc/apparmor-profiles/extras/usr.sbin.in.ntalkd usr/share/doc/apparmor-profiles/extras/usr.sbin.ipop2d usr/share/doc/apparmor-profiles/extras/usr.sbin.ipop3d usr/share/doc/apparmor-profiles/extras/usr.sbin.lighttpd usr/share/doc/apparmor-profiles/extras/usr.sbin.nmbd usr/share/doc/apparmor-profiles/extras/usr.sbin.oidentd usr/share/doc/apparmor-profiles/extras/usr.sbin.popper usr/share/doc/apparmor-profiles/extras/usr.sbin.postalias usr/share/doc/apparmor-profiles/extras/usr.sbin.postdrop usr/share/doc/apparmor-profiles/extras/usr.sbin.postmap usr/share/doc/apparmor-profiles/extras/usr.sbin.postqueue usr/share/doc/apparmor-profiles/extras/usr.sbin.sendmail usr/share/doc/apparmor-profiles/extras/usr.sbin.sendmail.postfix usr/share/doc/apparmor-profiles/extras/usr.sbin.sendmail.sendmail usr/share/doc/apparmor-profiles/extras/usr.sbin.smbd usr/share/doc/apparmor-profiles/extras/usr.sbin.spamd usr/share/doc/apparmor-profiles/extras/usr.sbin.squid usr/share/doc/apparmor-profiles/extras/usr.sbin.sshd usr/share/doc/apparmor-profiles/extras/usr.sbin.useradd usr/share/doc/apparmor-profiles/extras/usr.sbin.userdel usr/share/doc/apparmor-profiles/extras/usr.sbin.vsftpd usr/share/doc/apparmor-profiles/extras/usr.sbin.xinetd debian/libpam-apparmor.docs0000664000000000000000000000003612775006645013140 0ustar changehat/pam_apparmor/README debian/libapparmor1.symbols0000664000000000000000000000524612775006645013216 0ustar libapparmor.so.1 libapparmor1 #MINVER# * Build-Depends-Package: libapparmor-dev APPARMOR_1.0@APPARMOR_1.0 2.6~devel APPARMOR_1.1@APPARMOR_1.1 2.6~devel APPARMOR_2.10@APPARMOR_2.10 2.10 APPARMOR_2.11@APPARMOR_2.11 2.10.95 APPARMOR_2.9@APPARMOR_2.9 2.8.94-0ubuntu1 IMMUNIX_1.0@IMMUNIX_1.0 2.6~devel PRIVATE@PRIVATE 2.10 _aa_autoclose@PRIVATE 2.10 _aa_autofclose@PRIVATE 2.10 _aa_autofree@PRIVATE 2.10 _aa_dirat_for_each@PRIVATE 2.10 _aa_is_blacklisted@PRIVATE 2.10 aa_change_hat@APPARMOR_1.1 2.6~devel aa_change_hat_vargs@APPARMOR_1.1 2.6~devel aa_change_hatv@APPARMOR_1.1 2.6~devel aa_change_onexec@APPARMOR_1.1 2.6~devel aa_change_profile@APPARMOR_1.1 2.6~devel aa_features_is_equal@APPARMOR_2.10 2.10 aa_features_new@APPARMOR_2.10 2.10 aa_features_new_from_kernel@APPARMOR_2.10 2.10 aa_features_new_from_string@APPARMOR_2.10 2.10 aa_features_ref@APPARMOR_2.10 2.10 aa_features_supports@APPARMOR_2.10 2.10 aa_features_unref@APPARMOR_2.10 2.10 aa_features_write_to_file@APPARMOR_2.10 2.10 aa_find_mountpoint@APPARMOR_1.1 2.7.0~beta1+bzr1772 aa_getcon@APPARMOR_1.1 2.7.0~beta1+bzr1772 aa_getpeercon@APPARMOR_1.1 2.7.0~beta1+bzr1772 aa_getpeercon_raw@APPARMOR_1.1 2.7.0~beta1+bzr1772 aa_getprocattr@APPARMOR_1.1 2.7.0~beta1+bzr1772 aa_getprocattr_raw@APPARMOR_1.1 2.7.0~beta1+bzr1772 aa_gettaskcon@APPARMOR_1.1 2.7.0~beta1+bzr1772 aa_is_enabled@APPARMOR_1.1 2.7.0~beta1+bzr1772 aa_kernel_interface_load_policy@APPARMOR_2.10 2.10 aa_kernel_interface_load_policy_from_fd@APPARMOR_2.10 2.10 aa_kernel_interface_load_policy_from_file@APPARMOR_2.10 2.10 aa_kernel_interface_new@APPARMOR_2.10 2.10 aa_kernel_interface_ref@APPARMOR_2.10 2.10 aa_kernel_interface_remove_policy@APPARMOR_2.10 2.10 aa_kernel_interface_replace_policy@APPARMOR_2.10 2.10 aa_kernel_interface_replace_policy_from_fd@APPARMOR_2.10 2.10 aa_kernel_interface_replace_policy_from_file@APPARMOR_2.10 2.10 aa_kernel_interface_unref@APPARMOR_2.10 2.10 aa_kernel_interface_write_policy@APPARMOR_2.10 2.10 aa_policy_cache_new@APPARMOR_2.10 2.10 aa_policy_cache_ref@APPARMOR_2.10 2.10 aa_policy_cache_remove@APPARMOR_2.10 2.10 aa_policy_cache_replace_all@APPARMOR_2.10 2.10 aa_policy_cache_unref@APPARMOR_2.10 2.10 aa_query_file_path@APPARMOR_2.10 2.10 aa_query_file_path_len@APPARMOR_2.10 2.10 aa_query_label@APPARMOR_1.1 2.8.94-0ubuntu1 aa_query_label@APPARMOR_2.9 2.8.94-0ubuntu1 aa_query_link_path@APPARMOR_2.10 2.10 aa_query_link_path_len@APPARMOR_2.10 2.10 aa_splitcon@APPARMOR_2.10 2.10 aa_stack_onexec@APPARMOR_2.11 2.10.95 aa_stack_profile@APPARMOR_2.11 2.10.95 change_hat@APPARMOR_1.0 2.6~devel change_hat@IMMUNIX_1.0 2.6~devel free_record@APPARMOR_1.0 2.6~devel parse_record@APPARMOR_1.0 2.6~devel debian/profiles/0000775000000000000000000000000012775006645011027 5ustar debian/profiles/chromium-browser0000664000000000000000000000125612775006645014262 0ustar # This file is updated currently not managed by the package but in the future # will be overwritten on upgrades. # # For site-specific adjustments, please see: # /etc/apparmor.d/local/usr.bin.chromium-browser #include #include #include #include #include #include #include #include #include debian/apparmor-utils.manpages0000664000000000000000000000104612775006644013700 0ustar debian/tmp/usr/share/man/man8/aa-complain.8 debian/tmp/usr/share/man/man8/aa-decode.8 debian/tmp/usr/share/man/man8/aa-genprof.8 debian/tmp/usr/share/man/man8/aa-audit.8 debian/tmp/usr/share/man/man8/aa-logprof.8 debian/tmp/usr/share/man/man8/aa-autodep.8 debian/tmp/usr/share/man/man8/aa-unconfined.8 debian/tmp/usr/share/man/man8/aa-enforce.8 debian/tmp/usr/share/man/man8/aa-disable.8 debian/tmp/usr/share/man/man8/aa-cleanprof.8 debian/tmp/usr/share/man/man8/aa-mergeprof.8 debian/tmp/usr/share/man/man5/logprof.conf.5 debian/aa-update-browser.8 debian/lib/0000775000000000000000000000000012775006645007752 5ustar debian/lib/apparmor/0000775000000000000000000000000013062363606011564 5ustar debian/lib/apparmor/functions0000664000000000000000000001305413062363606013522 0ustar # /lib/apparmor/functions for Debian -*- shell-script -*- # ---------------------------------------------------------------------- # Copyright (c) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 # NOVELL (All rights reserved) # Copyright (c) 2008-2010 Canonical, Ltd. # # This program is free software; you can redistribute it and/or # modify it under the terms of version 2 of the GNU General Public # License published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, contact Novell, Inc. # ---------------------------------------------------------------------- # Authors: # Kees Cook PROFILES="/etc/apparmor.d" PROFILES_CACHE="$PROFILES/cache" PROFILES_VAR="/var/lib/apparmor/profiles" PROFILES_SNAPPY="/var/lib/snapd/apparmor/profiles" PROFILES_CACHE_VAR="/var/cache/apparmor" PARSER="/sbin/apparmor_parser" SECURITYFS="/sys/kernel/security" export AA_SFS="$SECURITYFS/apparmor" # Suppress warnings when booting in quiet mode quiet_arg="" [ "${QUIET:-no}" = yes ] && quiet_arg="-q" [ "${quiet:-n}" = y ] && quiet_arg="-q" foreach_configured_profile() { rc_all="0" for pdir in "$PROFILES" "$PROFILES_VAR" "$PROFILES_SNAPPY" ; do if [ ! -d "$pdir" ]; then continue fi num=`find "$pdir" -type f ! -name '*.md5sums' | wc -l` if [ "$num" = "0" ]; then continue fi cache_dir="$PROFILES_CACHE" if [ -d "$PROFILES_CACHE_VAR" ] && [ "$pdir" = "$PROFILES_VAR" ] || [ "$pdir" = "$PROFILES_SNAPPY" ]; then cache_dir="$PROFILES_CACHE_VAR" fi cache_args="--cache-loc=$cache_dir" if [ ! -d "$cache_dir" ]; then cache_args= fi # LP: #1383858 - expr tree simplification is too slow for # Touch policy on ARM, so disable it for now cache_extra_args= if [ -d "$PROFILES_CACHE_VAR" ] && [ "$pdir" = "$PROFILES_VAR" ] || [ "$pdir" = "$PROFILES_SNAPPY" ]; then cache_extra_args="-O no-expr-simplify" fi # If need to compile everything, then use -n1 with xargs to # take advantage of -P. When cache files are in use, omit -n1 # since it is considerably faster on moderately sized profile # sets to give the parser all the profiles to load at once n1_args= num=`find "$cache_dir" -type f ! -name '.features' | wc -l` if [ "$num" = "0" ]; then n1_args="-n1" fi (ls -1 "$pdir" | egrep -v '(\.dpkg-(new|old|dist|bak)|~)$' | \ while read profile; do if [ -f "$pdir"/"$profile" ]; then echo "$pdir"/"$profile" fi done) | \ xargs $n1_args -d"\n" -P$(getconf _NPROCESSORS_ONLN) "$PARSER" "$@" $cache_args $cache_extra_args -- || { rc_all="$?" # FIXME: when the parser properly handles broken # profiles (LP: #1377338), remove this if statement. # For now, if the xargs returns with error, just run # through everything with -n1. (This could be broken # out and refactored, but this is temporary so make it # easy to understand and revert) if [ "$rc_all" != "0" ]; then (ls -1 "$pdir" | \ egrep -v '(\.dpkg-(new|old|dist|bak)|~)$' | \ while read profile; do if [ -f "$pdir"/"$profile" ]; then echo "$pdir"/"$profile" fi done) | \ xargs -n1 -d"\n" -P$(getconf _NPROCESSORS_ONLN) "$PARSER" "$@" $cache_args $cache_extra_args -- || { rc_all="$?" } fi } done return $rc_all } load_configured_profiles() { clear_cache_if_outdated foreach_configured_profile $quiet_arg --write-cache --replace } load_configured_profiles_without_caching() { foreach_configured_profile $quiet_arg --replace } recache_profiles() { clear_cache foreach_configured_profile $quiet_arg --write-cache --skip-kernel-load } configured_profile_names() { foreach_configured_profile $quiet_arg -N 2>/dev/null | LC_COLLATE=C sort | grep -v '//' } running_profile_names() { # Output a sorted list of loaded profiles, skipping libvirt's # dynamically generated files cat "$AA_SFS"/profiles | sed -e "s/ (\(enforce\|complain\))$//" | egrep -v '^libvirt-[0-9a-f\-]+$' | LC_COLLATE=C sort | grep -v '//' } unload_profile() { echo -n "$1" > "$AA_SFS"/.remove } clear_cache() { clear_cache_system clear_cache_var } clear_cache_system() { find "$PROFILES_CACHE" -maxdepth 1 -type f -print0 | xargs -0 rm -f -- } clear_cache_var() { find "$PROFILES_CACHE_VAR" -maxdepth 1 -type f -print0 | xargs -0 rm -f -- } read_features_dir() { for f in `ls -AU "$1"` ; do if [ -f "$1/$f" ] ; then read -r KF < "$1/$f" || true echo -n "$f {$KF } " elif [ -d "$1/$f" ] ; then echo -n "$f {" KF=`read_features_dir "$1/$f"` || true echo -n "$KF} " fi done } clear_cache_if_outdated() { if [ -r "$PROFILES_CACHE"/.features ]; then if [ -d "$AA_SFS"/features ]; then KERN_FEATURES=`read_features_dir "$AA_SFS"/features` else read -r KERN_FEATURES < "$AA_SFS"/features fi CACHE_FEATURES=`tr '\n' ' ' < "$PROFILES_CACHE"/.features` if [ "$KERN_FEATURES" != "$CACHE_FEATURES" ]; then clear_cache fi fi } unload_obsolete_profiles() { # Currently we must re-parse all the profiles to get policy names. :( aa_configured=$(mktemp -t aa-XXXXXX) configured_profile_names > "$aa_configured" || true aa_loaded=$(mktemp -t aa-XXXXXX) running_profile_names > "$aa_loaded" || true LC_COLLATE=C comm -2 -3 "$aa_loaded" "$aa_configured" | while read profile ; do unload_profile "$profile" done rm -f "$aa_configured" "$aa_loaded" } debian/apparmor.manpages0000664000000000000000000000067713062074707012546 0ustar debian/tmp/usr/share/man/man5/subdomain.conf.5 debian/tmp/usr/share/man/man5/apparmor.vim.5 debian/tmp/usr/share/man/man5/apparmor.d.5 debian/tmp/usr/share/man/man8/apparmor_parser.8 debian/tmp/usr/share/man/man7/apparmor.7 debian/tmp/usr/share/man/man8/aa-enabled.8 debian/tmp/usr/share/man/man8/aa-exec.8 debian/tmp/usr/share/man/man8/aa-remove-unknown.8 debian/tmp/usr/share/man/man8/aa-status.8 debian/tmp/usr/share/man/man8/apparmor_status.8 debian/put-all-profiles-in-complain-mode.sh0000664000000000000000000000102012775006645016056 0ustar #!/bin/sh PROFILE_DIR="./etc/apparmor.d" for f in ${PROFILE_DIR}/* do [ ! -f "$f" ] && continue if egrep -q 'flags=\(.*\) {' "$f"; then # Deal with existing flags, but need to account for multiple # profiles in one file and not all of them having the same # flags. grep -q 'flags=(complain)' "$f" && continue sed -i -e 's/flags=(\(.*\)) {$/flags=(complain,\1) {/' -e 's/ {$/ flags=(complain) {/' -e 's/) flags=(complain) {/) {/' "$f" else # No existing flags sed -i 's/ {$/ flags=(complain) {/' "$f" fi done debian/apparmor-notify.maintscript0000664000000000000000000000011012775006645014602 0ustar rm_conffile /etc/X11/Xsession.d/90apparmor-notify 2.8.95~2430-0ubuntu3~ debian/python3-apparmor.lintian-overrides0000664000000000000000000000015412775006645016007 0ustar # There's not much more to say about it python3-apparmor binary: extended-description-is-probably-too-short debian/apparmor-utils.install0000664000000000000000000000067412775006645013562 0ustar debian/aa-update-browser /usr/sbin/ debian/vim-apparmor.yaml /usr/share/vim/registry/ usr/share/apparmor/apparmor.vim /usr/share/vim/addons/syntax/ etc/apparmor/logprof.conf etc/apparmor/severity.db usr/sbin/aa-autodep usr/sbin/aa-complain usr/sbin/aa-decode usr/sbin/aa-genprof usr/sbin/aa-audit usr/sbin/aa-logprof usr/sbin/aa-cleanprof usr/sbin/aa-mergeprof usr/sbin/aa-autodep usr/sbin/aa-unconfined usr/sbin/aa-enforce usr/sbin/aa-disable debian/dh-apparmor.install0000664000000000000000000000025112775006645013004 0ustar debian/debhelper/dh_apparmor usr/bin debian/debhelper/postinst-apparmor usr/share/debhelper/autoscripts debian/debhelper/postrm-apparmor usr/share/debhelper/autoscripts debian/apparmor-utils.dirs0000664000000000000000000000007512775006645013050 0ustar /etc/apparmor /usr/bin /usr/share/apparmor /var/log/apparmor debian/libapache2-mod-apparmor.dirs0000664000000000000000000000003212775006645014450 0ustar /etc/apparmor.d/apache2.d debian/libapparmor-dev.install0000664000000000000000000000016312775006645013660 0ustar /lib/*/libapparmor.a /lib/*/libapparmor.la usr/lib/*/libapparmor.so usr/lib/*/pkgconfig/libapparmor* usr/include/* debian/rules0000775000000000000000000001700113062363606010254 0ustar #!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow export DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) export DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) export PERL_VENDORARCH := $(shell perl -MConfig -e 'print substr($$Config{vendorarch},1)' ) export PYTHON=/usr/bin/python3 export PYTHON_VERSION=3 export PYTHON_VERSIONS=python3 %: dh $@ --with=python2,python3,apache2 override_dh_auto_configure: cd libraries/libapparmor && sh ./autogen.sh dh_auto_configure -D libraries/libapparmor -- --with-perl --libdir /lib/$(DEB_HOST_MULTIARCH) override_dh_auto_build: # Create the empty file that was meant to be created by # r3498-r3499-ignore-net-events-that-look-like-file-events.patch. # Quilt does not support creating new empty files. touch libraries/libapparmor/testsuite/test_multi/testcase_network_send_receive.err # Build perl dh_auto_build -D libraries/libapparmor # Build pythons set -e && for py in $(shell pyversions -s) $(shell py3versions -s) ; do \ cp -a $(CURDIR)/libraries/libapparmor $(CURDIR)/libraries/libapparmor.$$py && \ PYTHON=/usr/bin/$$py dh_auto_configure \ -D libraries/libapparmor.$$py -- --with-python && \ PYTHON=/usr/bin/$$py dh_auto_build \ -D libraries/libapparmor.$$py; \ done # Don't run '$(MAKE) check' because of too many perl dependencies # and various apparmor files installed on the system # Build pythons cd utils && $(MAKE) for py in $(shell pyversions -s) $(shell py3versions -s) ; do \ cp -a $(CURDIR)/utils $(CURDIR)/utils.$$py && \ (cd utils.$$py && PYTHON=/usr/bin/$$py $(MAKE)) ; \ done ifneq (,$(filter $(DEB_HOST_ARCH_OS), kfreebsd knetbsd hurd )) cd binutils && $(MAKE) indep cd parser && $(MAKE) indep else cd binutils && $(MAKE) V=1 cd parser && $(MAKE) V=1 endif cd profiles && $(MAKE) cd profiles-14.04 && $(MAKE) override_dh_auto_test: ifeq (,$(filter $(DEB_HOST_ARCH_OS), kfreebsd knetbsd hurd )) dh_auto_test -Dbinutils -- V=1 dh_auto_test -Dparser -- V=1 endif dh_auto_test -Dlibraries/libapparmor -- V=1 set -e && for py in $(shell pyversions -s) $(shell py3versions -s) ; do \ PYTHON=/usr/bin/$$py dh_auto_test \ -D libraries/libapparmor.$$py -- PYTHON=/usr/bin/$$py; \ done override_dh_auto_clean: # Clean up from a Makefile.PL rebuild. cd libraries/libapparmor/swig/perl && if test -f Makefile.perl; then \ $(MAKE) -fMakefile.perl realclean; \ fi # Clean up from an autogen'd build. cd $(CURDIR)/libraries/libapparmor && \ [ ! -f Makefile ] || $(MAKE) distclean # Clean up rest of build. set -e && for i in binutils utils parser profiles profiles-14.04 changehat/mod_apparmor \ changehat/pam_apparmor ; do \ [ ! -f $$i/Makefile ] || $(MAKE) -C $$i clean; \ rm -f $$i/common; \ done # Remove the python build dirs rm -rf $(CURDIR)/libraries/libapparmor.python* rm -rf $(CURDIR)/utils.python* # Try to clean up from an autogen'd build cd libraries/libapparmor && [ ! -f Makefile ] || $(MAKE) distclean # Remove generated debhelper documentation. rm -f $(CURDIR)/debian/debhelper/dh_apparmor.1 # Remove autoconf build cruft. rm -f $(CURDIR)/libraries/libapparmor/test-driver override_dh_auto_install: # Utils cd utils && $(MAKE) \ DESTDIR=$(CURDIR)/debian/tmp \ install set -e && for py in $(shell pyversions -s) $(shell py3versions -s) ; do \ (cd utils.$$py && PYTHON=/usr/bin/$$py $(MAKE) \ DESTDIR=$(CURDIR)/debian/tmp \ install) ; \ done # Parser ifneq (,$(filter $(DEB_HOST_ARCH_OS), kfreebsd knetbsd hurd )) cd binutils && $(MAKE) \ DESTDIR=$(CURDIR)/debian/tmp \ install-indep install -D -m 755 $(CURDIR)/debian/non-linux/apparmor_parser \ $(CURDIR)/debian/tmp/sbin/apparmor_parser cd parser && $(MAKE) \ DESTDIR=$(CURDIR)/debian/tmp \ install-indep else cd binutils && $(MAKE) \ DESTDIR=$(CURDIR)/debian/tmp \ install cd parser && $(MAKE) \ DESTDIR=$(CURDIR)/debian/tmp \ install endif # Changehat via libapparmor cd libraries/libapparmor && $(MAKE) \ DESTDIR=$(CURDIR)/debian/tmp \ install # fixup rpath for libapparmor-perl find $(CURDIR)/debian/tmp/$(PERL_VENDORARCH) -name '*.so' | xargs chrpath --delete # Install python swig modules set -e && for py in $(shell pyversions -s) $(shell py3versions -s); do \ PYTHON=/usr/bin/$$py \ $(MAKE) -C libraries/libapparmor.$$py \ DESTDIR=$(CURDIR)/debian/tmp install; \ done # Changehat via mod_apparmor cd changehat/mod_apparmor && $(MAKE) \ DESTDIR=$(CURDIR)/debian/tmp \ install # Fix rpath in mod_apparmor.so chrpath -d $(CURDIR)/debian/tmp/usr/lib/apache2/modules/mod_apparmor.so # Changehat via libpam-apparmor cd changehat/pam_apparmor && $(MAKE) \ DESTDIR=$(CURDIR)/debian/tmp \ install # Fix rpath in pam_apparmor.so chrpath -d $(CURDIR)/debian/tmp/lib/security/pam_apparmor.so # Profiles # We'd like to keep site.local from being a conffile rm ./profiles-14.04/apparmor.d/tunables/xdg-user-dirs.d/site.local cd profiles-14.04 && $(MAKE) \ DESTDIR=$(CURDIR)/debian/tmp \ EXTRAS_DEST=$(CURDIR)/debian/tmp/usr/share/doc/apparmor-profiles/extras \ install # set all profiles in apparmor-profiles to complain mode cd $(CURDIR)/debian/tmp && sh $(CURDIR)/debian/put-all-profiles-in-complain-mode.sh # Snap abstractions (the profiles will not be used) # We'd like to keep site.local from being a conffile rm ./profiles/apparmor.d/tunables/xdg-user-dirs.d/site.local cd profiles && $(MAKE) \ DESTDIR=$(CURDIR)/debian/tmp/snap \ EXTRAS_DEST=$(CURDIR)/debian/tmp/snap/usr/share/doc/apparmor-profiles/extras \ install # set all profiles in apparmor-profiles to complain mode cd $(CURDIR)/debian/tmp/snap && sh $(CURDIR)/debian/put-all-profiles-in-complain-mode.sh # Build debhelper documentation. pod2man -c Debhelper -r "$(DEB_VERSION)" $(CURDIR)/debian/debhelper/dh_apparmor $(CURDIR)/debian/debhelper/dh_apparmor.1 # Create unversioned link in /usr to the shared library MY_DSO=$$(basename $$(readlink $(CURDIR)/debian/tmp/lib/$(DEB_HOST_MULTIARCH)/libapparmor.so)); \ ln -sf /lib/$(DEB_HOST_MULTIARCH)/$${MY_DSO} \ $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libapparmor.so override_dh_installinit: dh_installinit --update-rcd-params='start 37 S .' --no-restart-on-upgrade --error-handler=true override_dh_compress: dh_compress -Xextras override_dh_perl: dh_perl -p libapparmor-perl -d dh_perl --no-package=libapparmor-perl override_dh_apache2: dh_apache2 --noenable override_dh_install: set -e && for profile in $(shell grep ^etc/apparmor.d/ $(CURDIR)/debian/apparmor-profiles.install | \ cut -d/ -f3- | grep -v /); do \ DH_AUTOSCRIPTDIR=debian/debhelper/ perl debian/debhelper/dh_apparmor --profile-name=$$profile -papparmor-profiles; \ done sed -i -e 's,usr/lib/perl5,$(PERL_VENDORARCH),g' \ $(CURDIR)/debian/tmp/etc/apparmor/logprof.conf \ $(CURDIR)/debian/tmp/etc/apparmor/severity.db dh_install VERSION_SEP=+ VERSION=$(shell dpkg-parsechangelog | grep ^Version | cut -d$(VERSION_SEP) -f1 | cut -d\ -f2) BZR_RELEASE=$(shell dpkg-parsechangelog | grep ^Version | cut -d$(VERSION_SEP) -f2 | cut -d. -f1 | cut -d- -f1 | sed -e 's/bzr//') ORIG_FILE=$(CURDIR)/../apparmor_$(VERSION)$(VERSION_SEP)bzr$(BZR_RELEASE).orig.tar.gz BZR_CO_DIR=$(CURDIR)/apparmor-$(VERSION)$(VERSION_SEP)bzr$(BZR_RELEASE) get-orig-source: test ! -e $(ORIG_FILE) test ! -e $(BZR_CO_DIR) bzr checkout --lightweight -r $(BZR_RELEASE) lp:~apparmor-dev/apparmor/master $(BZR_CO_DIR) tar czf $(ORIG_FILE) -C `dirname $(BZR_CO_DIR)` --exclude .bzr `basename $(BZR_CO_DIR)` rm -rf $(BZR_CO_DIR) debian/libapparmor-dev.manpages0000664000000000000000000000073112775006645014006 0ustar debian/tmp/usr/share/man/man2/aa_change_hat.2 debian/tmp/usr/share/man/man2/aa_change_profile.2 debian/tmp/usr/share/man/man2/aa_find_mountpoint.2 debian/tmp/usr/share/man/man2/aa_getcon.2 debian/tmp/usr/share/man/man2/aa_query_label.2 debian/tmp/usr/share/man/man2/aa_stack_profile.2 debian/tmp/usr/share/man/man3/aa_features.3 debian/tmp/usr/share/man/man3/aa_kernel_interface.3 debian/tmp/usr/share/man/man3/aa_policy_cache.3 debian/tmp/usr/share/man/man3/aa_splitcon.3 debian/apparmor.dirs0000664000000000000000000000041712775006645011712 0ustar /etc/apparmor.d/cache /etc/apparmor.d/local /etc/apparmor.d/disable /etc/apparmor.d/force-complain /etc/apparmor.d/tunables/home.d /etc/apparmor.d/tunables/multiarch.d /etc/apparmor.d/tunables/xdg-user-dirs.d /lib/apparmor/ /var/cache/apparmor /var/lib/apparmor/profiles debian/python3-libapparmor.install0000664000000000000000000000005412775006644014504 0ustar usr/lib/python3*/dist-packages/LibAppArmor* debian/python-libapparmor.install0000664000000000000000000000005412775006645014422 0ustar usr/lib/python2*/dist-packages/LibAppArmor* debian/apparmor-notify.manpages0000664000000000000000000000005212775006645014045 0ustar debian/tmp/usr/share/man/man8/aa-notify.8 debian/patches/0000775000000000000000000000000013353237323010623 5ustar debian/patches/r3488-r3489-fix-racy-onexec-test.patch0000664000000000000000000004276312775006644017222 0ustar Description: tests: Fix onexec.sh races by using the transition test program . The onexec.sh test has periodically exhibited unexplicable failures that are possibly due to race conditions when onexec.sh is verifying the /proc/PID/attr/{current,exec} values of the process under test. This patch attempts to solve the flaky test failures by removing the need for IPC to coordinate between the test script and the test program. . The old onexec test program is removed and the transition test program is used instead. This allows for the test script to tell the transition test program what its current and exec procattr labels should be via command line options. . Since IPC is no longer needed, the signal:ALL allow rule can be dropped from the test profile. A new allow rule is needed to grant reading of /proc/*/attr/{current,exec} since transition must verify the contents of these files. . Signed-off-by: Tyler Hicks Acked-by: Seth Arnold Origin: upstream, https://bazaar.launchpad.net/~apparmor-dev/apparmor/master/revision/3488 Origin: upstream, https://bazaar.launchpad.net/~apparmor-dev/apparmor/master/revision/3489 Author: Tyler Hicks Last-Update: 2016-06-25 === modified file 'tests/regression/apparmor/Makefile' --- old/tests/regression/apparmor/Makefile 2016-05-28 16:58:41 +0000 +++ new/tests/regression/apparmor/Makefile 2016-06-25 15:25:28 +0000 @@ -73,7 +73,6 @@ at_secure.c \ introspect.c \ changeprofile.c \ - onexec.c \ changehat.c \ changehat_fork.c \ changehat_misc.c \ === removed file 'tests/regression/apparmor/onexec.c' --- old/tests/regression/apparmor/onexec.c 2016-03-19 08:35:42 +0000 +++ new/tests/regression/apparmor/onexec.c 1970-01-01 00:00:00 +0000 @@ -1,63 +0,0 @@ -/* - * Copyright (C) 2002-2005 Novell/SUSE - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation, version 2 of the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include "changehat.h" - -int main(int argc, char *argv[]) -{ - int rc = 0; - - extern char **environ; - - if (argc < 3){ - fprintf(stderr, "usage: %s profile executable args\n", - argv[0]); - return 1; - } - - /* change profile if profile name != nochange */ - if (strcmp(argv[1], "nochange") != 0){ - rc = aa_change_onexec(argv[1]); - if (rc == -1){ - fprintf(stderr, "FAIL: change_onexec %s failed - %s\n", - argv[1], strerror(errno)); - exit(errno); - } - } - - /* stop after onexec and wait to for continue before exec so - * caller can introspect task */ - rc = kill(getpid(), SIGSTOP); - if (rc == -1){ - fprintf(stderr, "FAIL: signal to self failed - %s\n", - strerror(errno)); - exit(errno); - } - - (void)execve(argv[2], &argv[2], environ); - /* exec failed, kill outselves to flag parent */ - - rc = errno; - - fprintf(stderr, "FAIL: exec to '%s' failed\n", argv[2]); - - return rc; -} === modified file 'tests/regression/apparmor/onexec.sh' --- old/tests/regression/apparmor/onexec.sh 2016-03-19 08:37:46 +0000 +++ new/tests/regression/apparmor/onexec.sh 2016-06-25 15:25:28 +0000 @@ -18,6 +18,7 @@ . $bin/prologue.inc +settest transition file=$tmpdir/file subfile=$tmpdir/file2 okperm=rw @@ -29,63 +30,11 @@ subtest2="$pwd//sub2" subtest3="$pwd//sub3" -onexec="/proc/*/attr/exec" +exec_w="/proc/*/attr/exec:w" +attrs_r="/proc/*/attr/{current,exec}:r" touch $file $subfile -check_exec() -{ - local rc - local actual - local desc="$1" - local pid="$2" - local expected="$3" - actual=`cat /proc/${pid}/attr/exec 2>/dev/null` - rc=$? - - # /proc/${pid}/attr/exec returns invalid argument if onexec has not been called - if [ $rc -ne 0 ] ; then - if [ "${expected}" == "nochange" ] ; then - return 0 - fi - echo "ONEXEC (${desc}) - exec transition not set" - return $rc - fi - if [ "${actual% (*)}" != "${expected}" ] ; then - echo "ONEXEC (${desc}) - check exec '${actual% (*)}' != expected '${expected}'" - return 1 - fi - - return 0 -} - -check_current() -{ - local rc - local actual - local desc="$1" - local pid="$2" - local expected="$3" - actual=`cat /proc/${pid}/attr/current 2>/dev/null` - rc=$? - - # /proc/${pid}/attr/current return enoent if the onexec process already exited due to error - if [ $rc -ne 0 ] ; then - # These assume a check has already been done to see if the - # task is still around - echo -n "ONEXEC - check current ($1): " - cat /proc/${pid}/attr/current - return $rc - fi - - if [ "${actual% (*)}" != "${expected}" ] ; then - echo "ONEXEC - check current (${desc}) '${actual% (*)}' != expected '${expected}'" - return 1 - fi - - return 0 -} - do_test() { local desc="$1" @@ -94,34 +43,12 @@ local res="$4" shift 4 - #ignore prologue.inc error trapping that catches our subfn return values - - runtestbg "ONEXEC $desc ($prof -> $target_prof)" $res $target_prof "$@" - # check that transition does not happen before exec, and that transition - # is set - - # give the onexec process a chance to run - sleep 0.05 - - # check that task hasn't exited because change_onexec failed - if ! [ -d "/proc/${_pid}" ] ; then - checktestfg - return - fi - - if ! check_current "${desc}" $_pid $prof ; then - checktestfg - return - fi - - if ! check_exec "${desc}" $_pid $target_prof ; then - checktestfg - return - fi - - kill -CONT $_pid - - checktestbg + desc="ONEXEC $desc ($prof -> $target_prof)" + if [ "$target_prof" == "nochange" ] ; then + runchecktest "$desc" $res -l "$prof" -- "$@" + else + runchecktest "$desc" $res -O "$target_prof" -l "$prof" -L "$target_prof" -- "$@" + fi } @@ -146,59 +73,55 @@ #------ -# NOTE: test program pauses for the driver script to catch up by sending -# and recieving SIGSTOP/SIGCONT, so the onexec program needs access to -# signals (this is not a script to test signal mediation) - # ONEXEC from CONFINED - don't change profile, open can't exec -genprofile 'change_profile->':$bin/rw $onexec:w signal:ALL -do_test "no px perm" $bin/onexec nochange fail $bin/open $file +genprofile 'change_profile->':$bin/rw $exec_w $attrs_r +do_test "no px perm" $test nochange fail $bin/open $file # ONEXEC from CONFINED - don't change profile, open is run unconfined -genprofile 'change_profile->':$bin/rw $bin/open:rux $onexec:w signal:ALL -do_test "nochange rux" $bin/onexec nochange pass $bin/open $file - -# ONEXEC from CONFINED - don't change profile, open is run confined without necessary perms -genprofile 'change_profile->':$bin/rw $onexec:w signal:ALL -- image=$bin/open $file:rw -do_test "nochange px - no px perm" $bin/onexec nochange fail $bin/open $file - -# ONEXEC from CONFINED - don't change profile, open is run confined without necessary perms -genprofile 'change_profile->':$bin/rw $bin/open:rpx $onexec:w signal:ALL -- image=$bin/open -do_test "nochange px - no file perm" $bin/onexec nochange fail $bin/open $file +genprofile 'change_profile->':$bin/rw $bin/open:rux $exec_w $attrs_r +do_test "nochange rux" $test nochange pass $bin/open $file + +# ONEXEC from CONFINED - don't change profile, open is run confined without necessary perms +genprofile 'change_profile->':$bin/rw $exec_w $attrs_r -- image=$bin/open $file:rw +do_test "nochange px - no px perm" $test nochange fail $bin/open $file + +# ONEXEC from CONFINED - don't change profile, open is run confined without necessary perms +genprofile 'change_profile->':$bin/rw $bin/open:rpx $exec_w $attrs_r -- image=$bin/open +do_test "nochange px - no file perm" $test nochange fail $bin/open $file # ONEXEC from CONFINED - target does NOT exist -genprofile 'change_profile->':$bin/open $onexec:w signal:ALL -- image=$bin/rw $bin/open:rix $file:rw -- image=$bin/open -do_test "noexist px" $bin/onexec noexist fail $bin/open $file +genprofile 'change_profile->':$bin/open $exec_w $attrs_r -- image=$bin/rw $bin/open:rix $file:rw -- image=$bin/open +do_test "noexist px" $test noexist fail $bin/open $file # ONEXEC from CONFINED - change to rw profile, no exec profile to override -genprofile 'change_profile->':$bin/rw $onexec:w signal:ALL -- image=$bin/rw $bin/open:rix $file:rw -do_test "change profile - override rix" $bin/onexec $bin/rw pass $bin/open $file +genprofile 'change_profile->':$bin/rw $exec_w $attrs_r -- image=$bin/rw $bin/open:rix $file:rw +do_test "change profile - override rix" $test $bin/rw pass $bin/open $file -# ONEXEC from CONFINED - change to rw profile, no exec profile to override, no explicit access to /proc/*/attr/exec -genprofile 'change_profile->':$bin/rw signal:ALL -- image=$bin/rw $bin/open:rix $file:rw -do_test "change profile - no onexec:w" $bin/onexec $bin/rw pass $bin/open $file +# ONEXEC from CONFINED - change to rw profile, no exec profile to override, no explicit write access to /proc/*/attr/exec +genprofile 'change_profile->':$bin/rw $attrs_r -- image=$bin/rw $bin/open:rix $file:rw +do_test "change profile - no exec_w" $test $bin/rw pass $bin/open $file # ONEXEC from CONFINED - don't change profile, make sure exec profile is applied -genprofile 'change_profile->':$bin/rw $onexec:w $bin/open:rpx signal:ALL -- image=$bin/rw $bin/open:rix $file:rw -- image=$bin/open $file:rw -do_test "nochange px" $bin/onexec nochange pass $bin/open $file +genprofile 'change_profile->':$bin/rw $exec_w $attrs_r $bin/open:rpx -- image=$bin/rw $bin/open:rix $file:rw -- image=$bin/open $file:rw +do_test "nochange px" $test nochange pass $bin/open $file # ONEXEC from CONFINED - change to rw profile, override regular exec profile, exec profile doesn't have perms -genprofile 'change_profile->':$bin/rw $onexec:w signal:ALL -- image=$bin/rw $bin/open:rix $file:rw -- image=$bin/open -do_test "override px" $bin/onexec $bin/rw pass $bin/open $file +genprofile 'change_profile->':$bin/rw $exec_w $attrs_r -- image=$bin/rw $bin/open:rix $file:rw -- image=$bin/open +do_test "override px" $test $bin/rw pass $bin/open $file # ONEXEC from - change to rw profile, override regular exec profile, exec profile has perms, rw doesn't -genprofile 'change_profile->':$bin/rw $onexec:w signal:ALL -- image=$bin/rw $bin/open:rix -- image=$bin/open $file:rw -do_test "override px" $bin/onexec $bin/rw fail $bin/open $file +genprofile 'change_profile->':$bin/rw $exec_w $attrs_r -- image=$bin/rw $bin/open:rix -- image=$bin/open $file:rw +do_test "override px" $test $bin/rw fail $bin/open $file # ONEXEC from COFINED - change to rw profile via glob rule, override exec profile, exec profile doesn't have perms -genprofile 'change_profile->':/** $onexec:w signal:ALL -- image=$bin/rw $bin/open:rix $file:rw -- image=$bin/open -do_test "glob override px" $bin/onexec $bin/rw pass $bin/open $file +genprofile 'change_profile->':/** $exec_w $attrs_r -- image=$bin/rw $bin/open:rix $file:rw -- image=$bin/open +do_test "glob override px" $test $bin/rw pass $bin/open $file # ONEXEC from COFINED - change to exec profile via glob rule, override exec profile, exec profile doesn't have perms -genprofile 'change_profile->':/** $onexec:w signal:ALL -- image=$bin/rw $bin/open:rix $file:rw -- image=$bin/open -do_test "glob override px" $bin/onexec $bin/open fail $bin/open $file +genprofile 'change_profile->':/** $exec_w $attrs_r -- image=$bin/rw $bin/open:rix $file:rw -- image=$bin/open +do_test "glob override px" $test $bin/open fail $bin/open $file # ONEXEC from COFINED - change to exec profile via glob rule, override exec profile, exec profile has perms -genprofile 'change_profile->':/** $onexec:w signal:ALL -- image=$bin/rw $bin/open:rix $file:rw -- image=$bin/open $file:rw -do_test "glob override px" $bin/onexec $bin/rw pass $bin/open $file +genprofile 'change_profile->':/** $exec_w $attrs_r -- image=$bin/rw $bin/open:rix $file:rw -- image=$bin/open $file:rw +do_test "glob override px" $test $bin/rw pass $bin/open $file === modified file 'tests/regression/apparmor/transition.c' --- old/tests/regression/apparmor/transition.c 2016-05-28 16:58:41 +0000 +++ new/tests/regression/apparmor/transition.c 2016-06-25 15:24:36 +0000 @@ -139,12 +139,16 @@ /** * Verifies that the current confinement context matches the expected context. * + * @attr is the file in /proc/self/attr/ that you want to verify. It is passed + * directly to aa_getprocattr(2). + * * Either @expected_label or @expected_mode can be NULL if their values should * not be verified. If a NULL mode is expected, as what happens when an * unconfined process calls aa_getcon(2), then @expected_mode should be equal * to NO_MODE. */ -static void verify_confinement_context(const char *expected_label, +static void verify_confinement_context(const char *attr, + const char *expected_label, const char *expected_mode) { char *label, *mode; @@ -152,10 +156,10 @@ bool null_expected_mode = expected_mode ? strcmp(NO_MODE, expected_mode) == 0 : false; - rc = aa_getcon(&label, &mode); + rc = aa_getprocattr(getpid(), attr, &label, &mode); if (rc < 0) { int err = errno; - fprintf(stderr, "FAIL - aa_getcon: %m"); + fprintf(stderr, "FAIL - aa_getprocattr (%s): %m", attr); exit(err); } @@ -177,8 +181,8 @@ } if (!compound_labels_equal(&cl, &expected_cl)) { - fprintf(stderr, "FAIL - label \"%s\" != expected_label \"%s\"\n", - label, expected_label); + fprintf(stderr, "FAIL - %s label \"%s\" != expected_label \"%s\"\n", + attr, label, expected_label); rc = EINVAL; goto err; } @@ -187,8 +191,8 @@ if (expected_mode && ((!mode && !null_expected_mode) || (mode && strcmp(mode, expected_mode)))) { - fprintf(stderr, "FAIL - mode \"%s\" != expected_mode \"%s\"\n", - mode, expected_mode); + fprintf(stderr, "FAIL - %s mode \"%s\" != expected_mode \"%s\"\n", + attr, mode, expected_mode); rc = EINVAL; goto err; } @@ -220,6 +224,18 @@ exit(EINVAL); } +static void verify_current(const char *expected_label, + const char *expected_mode) +{ + verify_confinement_context("current", expected_label, expected_mode); +} + +static void verify_exec(const char *expected_label, + const char *expected_mode) +{ + verify_confinement_context("exec", expected_label, expected_mode); +} + static void handle_transition(int transition, const char *target) { const char *msg; @@ -278,24 +294,28 @@ static void usage(const char *prog) { fprintf(stderr, - "%s: [-O