[packagekit] DownloadPackages and uid

Richard Hughes hughsient at gmail.com
Mon Aug 18 07:58:51 PDT 2008


On Mon, 2008-08-18 at 12:40 +0100, Richard Hughes wrote:
> This way the server downloads to /var/cache/PackageKit, and then the
> client copies out of this directory so that the ownership and SELinux
> contexts are preserved, and we don't need to be so security paranoid
> with the directory permissions checks.

Something like the attached:

 backends/dummy/pk-backend-dummy.c  |   20 ++++++++++++-
 backends/yum/helpers/yumBackend.py |    6 ++++
 libpackagekit/pk-client.c          |   39 ++++++++++++++++++++++++--
 src/Makefile.am                    |    3 ++
 src/pk-backend.c                   |    3 +-
 src/pk-engine.c                    |   55 +++++++++++++++++++++++++++++++++++++
 src/pk-interface-transaction.xml   |    9 ------
 src/pk-transaction.c               |   50 +++++++++++----------------------
 src/pk-transaction.h               |    1 
 9 files changed, 139 insertions(+), 47 deletions(-)

I guess I'll merge this after the release -- it seems a bit 11th hour to
do it now. Reviews appreciated.

Richard.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pk-fix-download-packages.patch
Type: text/x-patch
Size: 12522 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20080818/655cba24/attachment-0004.bin>


More information about the PackageKit mailing list