Package Details: apparmor-utils 2.13.0-2

Git Clone URL: https://aur.archlinux.org/apparmor.git (read-only)
Package Base: apparmor
Description: AppArmor userspace utilities
Upstream URL: https://launchpad.net/apparmor
Keywords: hardening linux LSM MAC security
Licenses: GPL
Submitter: Harvie
Maintainer: edh
Last Packager: edh
Votes: 98
Popularity: 0.202059
First Submitted: 2010-10-28 14:55
Last Updated: 2018-04-16 18:33

Latest Comments

edh commented on 2018-04-23 08:50

@sipaktli I can not reproduce the error you are experiencing. However your comment is also somewhat laconic. Please better describe what you have tried and at what stage the process failed. Btw. the comment section has markdown support. Hence you can properly format any text messages and log output.

sipaktli commented on 2018-04-23 04:34

Failed test 'RPC::XML::Server::url method (set)'
at t/40_server.t line 188.
'http://[::1]:40483/'
doesn't match '(?^:http://(127[.]0[.]0[.]1|myhostname|myhostname[.]domain|localhost|localhost[.]localdomain|myhostname[.]domain|myhostname|localhost[.]localdomain):40483)'

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.

edh commented on 2018-02-08 19:01

@svadkos Done, thanks!

svadkos commented on 2018-02-08 18:52

Please, add 'backup' to apparmor-parser and apparmor-utils for files located in /etc/apparmor/.

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.

All comments