-
Notifications
You must be signed in to change notification settings - Fork 200
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
Add lens to handle Deb822 formatted Apt sources: /etc/apt/sources.d/*.sources #297
Comments
Is Deb822 based on RFC822 proper? Should there be a |
On 09/14/2015 03:09 PM, Raphaël Pinson wrote:
I think it makes sense to have a common base for Debctrl and On the question of whether Deb822 is RFC822, I asked on #debian-apt@OTFC
Hope this helps. Sunil |
Thanks, that does help, as there doesn't seem to be any real specification for Deb822. |
We are using this lens in FreedomBox to add/remove "tor+" prefix to Apt sources URIs. Original commit: https://salsa.debian.org/freedombox-team/freedombox/-/commit/cd21c7f247135828e63379cc6d32a8edcb53a582 Closes: hercules-team#297. Signed-off-by: James Valleroy <[email protected]>
Apt supports a new format for describing its sources. This format is based on RFC822 and is know as Deb822. An example from the man page sources.list(5) is as follows:
Augeas should implement a new lens (perhaps sharing a common base with
debctrl
lens) that can parse this new format. Users, at their choice, are allowed to pick any of the old or new formats. This means that to be able to reliably modify sources list, programs must understand both the formats.Motivation: Attackers may observe systems downloading a particular security update and realize that is vulnerable and attack it before the security update is applied. Jacob Applebaum's talk at Debconf discusses this.
apt-transport-tor
allows downloading packages anonymously via the Tor anonymity network. This makes this kind of attacks much more difficult.apt-transport-tor
is available for Debian as a package. To enable it, one has to update all the URLs in sources.list to look liketor+http://
instead ofhttp://
. This can't be done reliably if Augeas can parse only one of the two known file formats.Further notes on Deb822: The current version of Apt supports both formats in the same files. It interprets the file as one format or the other using a configuration setting. This is a bit of a problem for Augeas as it parses files based on path/name. The Apt developers have changed this behavior in Apt 1.1 which is available in Debian
experimental
. In Apt 1.1:/etc/apt/sources.list
will always be old style format./etc/apt/sources.list.d/*.list
will always be old format./etc/apt/sources.list.d/*.sources
will always be new format files.The text was updated successfully, but these errors were encountered: