-
Notifications
You must be signed in to change notification settings - Fork 687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[0.12.0] AppArmor deny messages for lsb-release on upgrade #4161
Comments
The most conservative choice here seems to be to move the |
Had a brief conversation with @conorsch about why this happened now (since we've historically updated AppArmor profiles successfully this way in the past, using this same package). 0.12.0-rc2:
0.11.1:
Since this is a regression/change in behavior introduced by packaging logic, it might be more prudent to modify the build logic to exclude AppArmor profiles from being marked as conffiles so that we are sure that they are overwritten automatically at each update. |
This is because we are using compat version > 3 in debhelper (see https://github.com/freedomofpress/securedrop/pull/4080/files#diff-8c5798708e1b04b0140c0e5c2c9a2030R1):
We could perhaps change the compatibility mode or override this behavior in the |
We can't drop below 5, lest we lose the ubstvars support which is the whole reason we migrated to debhelper.
That's a possibility, see example approach here (search for "purge the automatically generated DEBIAN/conffiles"). To avoid a regression, we want to ensure that we do not mark any files as Seems like the most straightforward path is to write to a non-etc location like |
The path @conorsch took seems to be one possible path, though I think this is a straight packaging problem. |
Ah, yes! @emkll's solution is quite concise, and notably doesn't require yet-more postinst madness. In that respect, it should prove more maintainable over time. As long as we're careful to include regression tests, I'm happy with to go with that solution. |
Description
There are AppArmor deny messages when a user navigates to the journalist interface when upgrading to 0.12.0-rc2. from 0.11.1
Steps to Reproduce
Expected Behavior
AppArmor profile should allow Apache to read the current release
Actual Behavior
AppArmor profile denies read access to the file
Comments
It appears that securedrop-app-code package does not overwrite the existing apache2 configuration, as there are two configs in
/etc/apparmor.d/
:This is likely due to
Dpkg::Options::=--force-confold
in/etc/cron-apt/action.d/5-security
The text was updated successfully, but these errors were encountered: