summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire-item.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* | pkgAcqArchive::QueueNext(): change owner/permission of DestFileMichael Vogt2014-10-081-1/+1
| | | | | | | | | | The code was using FinalFile before but we only test the existance of DestFile so we use that instead.
* | Send "Fail-Reason: MaximumSizeExceeded" from the methodMichael Vogt2014-10-071-1/+5
| | | | | | | | | | Communicate the fail reason from the methods to the parent and Rename() failed files.
* | Add new Acquire::MaxReleaseFileSize=10*1000*1000 optionMichael Vogt2014-10-071-27/+26
| | | | | | | | | | | | | | | | This option controls the maximum size of Release/Release.gpg/InRelease files. The rational is that we do not know the size of these files in advance and we want to protect against a denial of service attack where someone sends us endless amounts of data until the disk is full (we do know the size all other files (Packages/Sources/debs)).
* | Merge remote-tracking branch 'upstream/debian/experimental' into ↵Michael Vogt2014-10-071-169/+297
|\ \ | | | | | | | | | | | | | | | | | | feature/acq-trans Conflicts: apt-pkg/acquire-item.cc
| * | support parsing of all hashes for pdiffDavid Kalnischkies2014-09-301-139/+271
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fileformat of a pdiff index stores currently only SHA1 hashes. With this change, we look for all other hashes we support as well and take what we get, so that we can work after the release of jessie to get right of SHA1 if we want to. Note that the completely patched file is and was checked against the hashes collected from the Release file, so this transition isn't mission critical.
* | | UpperCase some functions for consistencyMichael Vogt2014-10-071-25/+25
| | | | | | | | | | | | | | | | | | | | | | | | changeOwnerAndPermissionOfFile->ChangeOwnerAndPermissionOfFile preparePartialFile->GetPartialFileName preparePartialFileFromURI->GetPartialFileNameFromURI Git-Dch: ignore
* | | display errortext for all Err as well as Ign logsDavid Kalnischkies2014-10-071-41/+36
| | | | | | | | | | | | | | | | | | | | | consistently using Item::Failed in all specializec classes helps setting up some information bits otherwise unset, so some errors had an empty reason as an error. Ign is upgraded to display the error message we ignored to further help in understanding what happens.
* | | use _apt:root only for partial directoriesDavid Kalnischkies2014-10-071-54/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using a different user for calling methods is intended to protect us from methods running amok (via remotely exploited bugs) by limiting what can be done by them. By using root:root for the final directories and just have the files in partial writeable by the methods we enhance this in sofar as a method can't modify already verified data in its parent directory anymore. As a side effect, this also clears most of the problems you could have if the final directories are shared without user-sharing or if these directories disappear as they are now again root owned and only the partial directories contain _apt owned files (usually none if apt isn't running) and the directory itself is autocreated with the right permissions.
* | | fixup foldmarkers in acquire-item.ccDavid Kalnischkies2014-10-071-91/+51
| | | | | | | | | | | | Git-Dch: Ignore
* | | fix warningsMichael Vogt2014-10-061-3/+3
| | |
* | | rename StopAuthentication -> CheckStopAuthentication and make it protectedMichael Vogt2014-10-061-4/+7
| | |
* | | rename AuthDone() -> CheckAuthDone()Michael Vogt2014-10-061-5/+3
| | |
* | | cleanup pkgAcq*::Failed()Michael Vogt2014-10-061-62/+51
| | |
* | | add missing TransactionStageCopy() in pkgAcqDiffIndex::Done()Michael Vogt2014-10-061-12/+5
| | |
* | | Rework pkgAcqMeta{Index,Sig,ClearSig}::Done() for readabilityMichael Vogt2014-10-061-180/+92
| | | | | | | | | | | | | | | | | | Move common code out but do not use subclassing for ::Done to make it easier to understand what each class is doing when its done
* | | fix incorrect docstrings for ↵Michael Vogt2014-10-061-2/+2
| | | | | | | | | | | | AcqMetaBase::TransactionStageRemoval/AcqMetaBase::TransactionStageCopy
* | | add new "SetActiveSubprocess()Michael Vogt2014-10-061-46/+19
| | |
* | | really do not download Release if InRelease does not verifyMichael Vogt2014-10-031-20/+24
| | |
* | | cleanup around pkgAcqMetaSig and improved testsMichael Vogt2014-10-021-47/+44
| | |
* | | add a bunch of docstrings etcMichael Vogt2014-10-021-12/+36
| | |
* | | fix crashMichael Vogt2014-10-021-8/+12
| | |
* | | donkults fixesMichael Vogt2014-10-021-37/+28
| | |
* | | Cleanup pkgAcqIndexMichael Vogt2014-10-021-110/+138
| | |
* | | refactor and add pkgAcqIndex::ValidateFile()Michael Vogt2014-10-011-21/+34
| | |
* | | fix leftover files from Acquire::GzipIndexMichael Vogt2014-10-011-1/+1
| | |
* | | hack around test-apt-update-unauth failureMichael Vogt2014-10-011-0/+9
| | |
* | | update test/integration/test-releasefile-verificationMichael Vogt2014-10-011-9/+9
| | |
* | | Use Acquire::Allow{InsecureRepositories,DowngradeToInsecureRepositories}Michael Vogt2014-10-011-11/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The configuration key Acquire::AllowInsecureRepositories controls if apt allows loading of unsigned repositories at all. The configuration Acquire::AllowDowngradeToInsecureRepositories controls if a signed repository can ever become unsigned. This should really never be needed but we provide it to avoid having to mess around in /var/lib/apt/lists if there is a use-case for this (which I can't think of right now).
* | | add verify for the .diff/Index download and add FIXME for ↵Michael Vogt2014-10-011-0/+19
| | | | | | | | | | | | pkgAcqIndexDiffs/pkgAcqMergeDiffs
* | | cleanupMichael Vogt2014-09-291-17/+32
| | |
* | | fix DestFile extMichael Vogt2014-09-291-1/+1
| | |
* | | refactorMichael Vogt2014-09-291-10/+11
| | |
* | | Adjust DestFile in ReverifyAfterIMS() to not include compr ExtensionMichael Vogt2014-09-291-0/+7
| | |
* | | Merge remote-tracking branch 'upstream/debian/experimental' into ↵Michael Vogt2014-09-291-11/+72
|\| | | | | | | | | | | | | | | | | | | | | | | | | | feature/acq-trans Conflicts: apt-pkg/acquire-item.cc apt-pkg/acquire-item.h methods/gpgv.cc
| * | Merge branch 'debian/sid' into debian/experimentalMichael Vogt2014-09-291-14/+27
| |\| | | | | | | | | | | | | Conflicts: apt-pkg/acquire-item.cc
| | * Merge remote-tracking branch 'donkult/feature/generalize-gzipindex' into ↵Michael Vogt2014-09-261-15/+29
| | |\ | | | | | | | | | | | | debian/sid
| | | * generalize Acquire::GzipIndexMichael Vogt2014-09-211-15/+29
| | | |
| * | | replace c-string Mode with c++-string ActiveSubprocessDavid Kalnischkies2014-09-281-3/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A long-lasting FIXME in the acquire code points out the problem that we e.g. for decompressors assign c-string representations of c++-strings to the Mode variable, which e.g. cppcheck points out as very bad. In practice, nothing major happens as the c++-strings do not run out of scope until Mode would do, but that is bad style and fragile, so the obvious proper fix is to use a c++ string for storage to begin with. The slight complications stems from the fact that progress reporting code in frontends potentially uses Mode and compares it with NULL, which can't be done with std::string, so instead of just changing the type we introduce a new variable and deprecate the old one. Git-Dch: Ignore
| * | | Remove check for "Translation-" from pkgAcqIndex::Custom600Headers()Michael Vogt2014-09-251-4/+1
| | | | | | | | | | | | | | | | | | | | This unneeded because pkgAcqIndexTrans has its own Custom600Headers() method.
| * | | fix testsMichael Vogt2014-09-231-1/+1
| | | |
* | | | test fixesMichael Vogt2014-09-261-20/+21
| | | |
* | | | Do not allow going from authenticated to unauthenticated repoMichael Vogt2014-09-261-15/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also rework the way we load the Release file, so it only after Release.gpg verified the Release file. The rational is that we never want to load untrusted data into our parsers. Only stuff verified with gpg or by its hashes get loaded. To load untrusted data you now need to use apt-get update --allow-unauthenticated.
* | | | Print warning for unauthenticated repositoriesMichael Vogt2014-09-261-0/+4
| | | |
* | | | Do not download Packages/Sources files on I-M-S hit of the Release fileMichael Vogt2014-09-261-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | With this branch we know that the data in the lists directory is always what the release file says, so if the Release file is unchanged, then there is no need to queue the download of the other indexfiles as they will be unchanged too (or broken :)
* | | | make pdiff transactional (but at the cost of a CopyFile()Michael Vogt2014-09-231-29/+72
| | | |
* | | | cleanup, fix test-apt-update-unauth as the behavior of apt changedMichael Vogt2014-09-231-3/+6
| | | |
* | | | cleanupMichael Vogt2014-09-231-19/+11
| | | |
* | | | fix one broken testMichael Vogt2014-09-231-4/+3
| | | |
* | | | Merge remote-tracking branch 'upstream/debian/experimental' into ↵Michael Vogt2014-09-231-19/+52
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | feature/acq-trans Conflicts: apt-pkg/acquire-item.cc apt-pkg/acquire-item.h methods/copy.cc test/integration/test-hashsum-verification
| * | | Merge branch 'debian/sid' into debian/experimentalMichael Vogt2014-09-231-29/+83
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: apt-pkg/acquire-item.cc apt-pkg/acquire-item.h apt-pkg/cachefilter.h configure.ac debian/changelog