Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 529572 - sec-policy/apparmor-profiles - add dbus-accessibility profile
Summary: sec-policy/apparmor-profiles - add dbus-accessibility profile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Michael Palimaka (kensington)
URL:
Whiteboard:
Keywords:
Depends on: 529834
Blocks:
  Show dependency tree
 
Reported: 2014-11-16 19:48 UTC by Superfox il Volpone
Modified: 2014-12-05 14:22 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Superfox il Volpone 2014-11-16 19:48:29 UTC
Hello, 
there is a missing/invalid dependency related to dbus-accessibility when using AppArmor 2.8.4 with Lightdm 1.8.5.
It seems the same bug http://bugs.gentoo.org/494426, as identified by kensington (http://forums.gentoo.org/viewtopic-t-1003742.html).

Repro (always):
1. On a system with both AppArmor (http://wiki.gentoo.org/wiki/AppArmor) and Lightdm, install the libraries sec-policy/apparmor-profiles and sys-apps/apparmor-utils
2. Trying to load the profiles, it fires an error that the dependency abstractions/dbus-accessibility is missing. For instance:

[root@sebastian] /usr/local/bin: aa-genprof git-crypt
Can't include file abstractions/dbus-accessibility: No such file or directory at /usr/lib64/perl5/vendor_perl/5.18.2/Immunix/AppArmor.pm line 6222.
   Immunix::AppArmor::get_include_data('abstractions/dbus-accessibility') called at /usr/lib64/perl5/vendor_perl/5.18.2/Immunix/AppArmor.pm line 6237
   Immunix::AppArmor::loadinclude('abstractions/dbus-accessibility') called at /usr/lib64/perl5/vendor_perl/5.18.2/Immunix/AppArmor.pm line 5343
   eval {...} called at /usr/lib64/perl5/vendor_perl/5.18.2/Immunix/AppArmor.pm line 5343
   Immunix::AppArmor::parse_profile_data('# vim:syntax=apparmor\x{a}# Profile for restricting lightdm guest...', 'abstractions/lightdm', 1) called at /usr/lib64/perl5/vendor_perl/5.18.2/Immunix/AppArmor.pm line 6238
   Immunix::AppArmor::loadinclude('abstractions/lightdm') called at /usr/lib64/perl5/vendor_perl/5.18.2/Immunix/AppArmor.pm line 5343
   eval {...} called at /usr/lib64/perl5/vendor_perl/5.18.2/Immunix/AppArmor.pm line 5343
   Immunix::AppArmor::parse_profile_data('# vim:syntax=apparmor\x{a}# Profile abstraction for restricting c...', 'abstractions/lightdm_chromium-browser', 1) called at /usr/lib64/perl5/vendor_perl/5.18.2/Immunix/AppArmor.pm line 6238
   Immunix::AppArmor::loadinclude('abstractions/lightdm_chromium-browser') called at /usr/lib64/perl5/vendor_perl/5.18.2/Immunix/AppArmor.pm line 6386
   eval {...} called at /usr/lib64/perl5/vendor_perl/5.18.2/Immunix/AppArmor.pm line 6386
   Immunix::AppArmor::loadincludes() called at /usr/sbin/aa-genprof line 117

Indeed the file is not present in /etc/apparmor.d/abstractions.
Output from emerge --info:

Portage 2.2.8-r2 (default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.9.2, glibc-2.19-r1, 3.16.5-gentoo x86_64)
=================================================================
System uname: Linux-3.16.5-gentoo-x86_64-AMD_FX-tm-8350_Eight-Core_Processor-with-gentoo-2.2
KiB Mem:    16335496 total,  14483480 free
KiB Swap:    7843332 total,   7843332 free
Timestamp of tree: Tue, 11 Nov 2014 18:45:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.7, 3.3.5-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3, 4.9.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=native -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O3 -pipe -march=native -mtune=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.heanet.ie/pub/gentoo/ ftp://ftp.heanet.ie/pub/gentoo/ rsync://ftp.heanet.ie/pub/gentoo/"
LANG="en_IE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync11.de.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 avx berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli colord cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv introspection ipv6 jpeg lcms ldap libnotify libsecret mad mmx mng modules mp3 mp4 mpeg multilib nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 readline sdl session socialweb spell sse sse2 ssl ssse3 startup-notification svg systemd tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fglrx" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Michael Palimaka (kensington) gentoo-dev 2014-11-18 07:47:34 UTC
This is definitely bug #494426.

Markos, any thoughts about stabilising a newer version which has the fix?
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2014-11-18 18:44:33 UTC
please open a stabilization bug for 1.10.X
Comment 3 Michael Palimaka (kensington) gentoo-dev 2014-12-05 14:22:18 UTC
Newer version of lightdm with the bogus profile removed is now stable. Thanks!