After installing apparmor-2.10 and apparmor-profiles-2.10, and while running a kernel with the AppArmor patches included, attempting to run `apparmor_parser -a /etc/apparmor.d/` to load the default profiles results in an error: apparmor_parser: Unable to add "/usr/sbin/nmbd". Unknown error (9): Bad file descriptor If /etc/apparmor.d/usr.sbin.nmbd is disabled, another profile fails with the same error, and so on. I'm using the hardened kernel 4.3.3.
Created attachment 424886 [details] emerge --info
Note that this only happens if the whole directory is passed. Passing profiles file by file to apparmor_parser works correctly.
I can reproduce, but I'm not aware of anything Gentoo-specific that would cause it (maybe upstream would have a better idea?).
This is fixed for me in 2.10.1