FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

 
 
LinkBack Thread Tools
 
Old 05-05-2012, 09:13 AM
Allan McRae
 
Default Package file validation using mtree data

This patchset still has a bit of polish needed (there are a few TODOs
scattered throughout). But it is now working quite well, so I think a
bit of a review would be useful.

The following fields are checked for each file:
Directory: uid, gid, mode
File: uid, gid, mode, size, (m)time
Symbolic Link: uid, gid, mode, link, (m)time

The main issus so far is that libarchive does not read any checksums
from the mtree file. I will approach the libarchive devs to see how
we can improve this situation.

Allan McRae (8):
makepkg: add mtree file into package
Extract .MTREE file into local package database
Add internal functions for reading mtree file from local db
Add public functions for accessing mtree data
Move check function into its own file
Separate checking a files existence into a function
Basic running of pacman -Qkk to check mtree files
Perform full checking of files with -Qkk

lib/libalpm/add.c | 5 +
lib/libalpm/alpm.h | 12 ++
lib/libalpm/be_local.c | 57 ++++++++++
lib/libalpm/package.c | 44 ++++++++
lib/libalpm/package.h | 8 ++
scripts/makepkg.sh.in | 10 +-
src/pacman/Makefile.am | 1 +
src/pacman/check.c | 285 ++++++++++++++++++++++++++++++++++++++++++++++++
src/pacman/check.h | 30 +++++
src/pacman/pacman.c | 2 +-
src/pacman/query.c | 62 +----------
11 files changed, 457 insertions(+), 59 deletions(-)
create mode 100644 src/pacman/check.c
create mode 100644 src/pacman/check.h

--
1.7.10.1
 

Thread Tools




All times are GMT. The time now is 08:09 AM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org