Done in git master. That didn’t fix it. This issue is only happening when upgrading pacakge security-misc. Cannot reproduce with sudo apt install --reinstall security-misc
. Only only reproduce through sudo apt dist-upgrade
when there is an upgrade for security-misc
.
To reproduce could you please download a version of security-misc?
(This is required because apt cannot write to user home.)
cd /tmp
apt dowload security-misc
Maybe move to home folder.
Then produce a newer version. Or I produce a newer version. Then downgrade / upgrade among them? Not yet tested. Can apt install from file? I usually used dpkg. But perhaps for debugging we’ll just make the APT profile match DPKG?
Are you sure that line
/{,usr/,usr/local/}lib{,32,64}/** rwmixlk,
matches
/usr/lib/security-misc/pam_tally2-info.dpkg-tmp
?
apparmor=“DENIED” operation=“link” info=“link not subset of target” error=-13 profile=“/usr/bin/apt-get” name=“/usr/lib/security-misc/pam_tally2-info.dpkg-tmp” pid=1523 comm=“dpkg” requested_mask=“x” denied_mask=“x” fsuid=0 ouid=0 target=“/usr/lib/security-misc/pam_tally2-info”
Trying to wrap my head around it. I always got confused by AppArmor. Maybe now it’s time to ask.
profile=“/usr/bin/apt-get”
Alright so it can only be fixed in that profile. That’s the profile causting the error.
operation=“link”
Why operation link?
info=“link not subset of target”
Does looking at the apparmor source around that link help?
comm=“dpkg”
It’s APT which called DPKG. While it’s the APT profile, it’s DPKG attempting to run this operation. Doesn’t get us any closer.
denied_mask=“x”
Execute? apparmor profile apt-get missing flag x
for line /{,usr/,usr/local/}lib{,32,64}/** rwmixlk,
? But that line already includes x
. Maybe it’s some other line that is triggering this?
name=“/usr/lib/security-misc/pam_tally2-info.dpkg-tmp”
target=“/usr/lib/security-misc/pam_tally2-info”
I am confused by name vs target. What means name, what means target?
Why is it only happening for /usr/lib/security-misc/pam_tally2-info
but not for /usr/lib/security-misc/pam-abort-on-locked-password
? Neither file changed on disk. Only other parts of security-misc changed. Yet, only pam_tally2-info is throwing the error. Which indicates that the issue is not in apt-get apparmor profile but elsewhere?