Package Details: apparmor-profiles 2.12.0-2

Git Clone URL: https://aur.archlinux.org/apparmor.git (read-only)
Package Base: apparmor
Description: AppArmor sample pre-made profiles
Upstream URL: http://wiki.apparmor.net/index.php/Main_Page
Keywords: hardening linux LSM MAC security
Licenses: GPL
Submitter: Harvie
Maintainer: edh
Last Packager: edh
Votes: 99
Popularity: 1.446121
First Submitted: 2010-10-28 14:55
Last Updated: 2018-01-17 20:40

Latest Comments

egrupled commented on 2018-01-17 21:05

Great job, thank you!

edh commented on 2018-01-17 20:41

@egrupled Seems like a reasonable suggestion. Done.

egrupled commented on 2018-01-17 13:06

I propose to replace apparmor.service with https://build.opensuse.org/package/view_file/openSUSE:Factory/apparmor/apparmor.service?expand=1

And apparmor_load.sh + apparmor_unload.sh with https://build.opensuse.org/package/view_file/openSUSE:Factory/apparmor/apparmor.systemd?expand=1

Plus add aa-teardown https://build.opensuse.org/package/view_file/openSUSE:Factory/apparmor/aa-teardown?expand=1

That would need following PKGBUILD changes:

package_apparmor-utils() {
    pkgdesc='AppArmor userspace utilities'
    depends=('perl' 'perl-locale-gettext' 'perl-term-readkey' 'perl-file-tail' 'perl-rpc-xml' 'python')

    cd "${srcdir}/${pkgbase}-${_majorver}"
    make -C utils DESTDIR="${pkgdir}" BINDIR="${pkgdir}/usr/bin" install
    install -D -m755 "${srcdir}/apparmor.systemd" "${pkgdir}/usr/lib/apparmor/apparmor.systemd"
    install -D -m755 "${srcdir}/aa-teardown" "${pkgdir}/usr/bin/aa-teardown"
    install -D -m644 "${srcdir}/apparmor.service" "${pkgdir}/usr/lib/systemd/system/apparmor.service"
}

edh commented on 2018-01-15 18:40

@SonOfANoMomGoat Thanks for the information!

It seems like @towo and initially you as well confused a failing test in a different packages (a dependency of apparmor-libapparmor) with an error in this package. Just for completeness sake, here is the referenced link for the upstream bug ticket which is mentioned in the discussion of the package (perl-rpc-xml) which actually yields this error.

SonOfANoMomGoat commented on 2018-01-15 09:21

Temporary fix to the failing test issue seems to be to edit /etc/hosts and comment out any IPv6 localhost lines. '#::1 localhost.localdomain localhost'

SonOfANoMomGoat commented on 2018-01-15 09:11

Test t/40 is failing on the call as the test is calling for an IPv6 localhost address on line 4 of the codeblock and that doesn't match the IPv4 localhost address expected on line 5 in the match condition. I have the same issue.

Edit: This is trying to build the apparmor-libapparmor package.

Edit2: https://aur.archlinux.org/packages/perl-rpc-xml/ is the problem, they have the same issue.

edh commented on 2018-01-08 17:14

@towo Could you please elaborate a little more. AppArmor is building and working just fine for me.

towo commented on 2018-01-08 10:22

Should probably be bumped again, the tests are currently failing:

t/40_server.t ................... 1/91 
#   Failed test 'RPC::XML::Server::url method (set)'
#   at t/40_server.t line 188.
#                   'http://[::1]:46683/'
#     doesn't match '(?^:http://(127[.]0[.]0[.]1|localhost[.]localdomain|localhost|localhost):46683)'
t/40_server.t ................... 35/91 Use of uninitialized value in subroutine entry at t/40_server.t line 276.
t/40_server.t ................... 41/91 Not an ARRAY reference at t/40_server.t line 333.
# Looks like your test exited with 255 just after 43.
    ^Cmake: *** [Makefile:960: test_dynamic] Interrupt

edh commented on 2017-10-26 18:10

I am very sorry that it took me some time to bump the version. I forgot to create one of my usual alerts which would have notified me of a new release :|

michaelkempff commented on 2017-10-18 09:23

It's very clear now, thanks a lot!

All comments