Hello, Looks OK now, thanks for the patch
Cheers, Laurent Bigonville Le Fri, 22 May 2015 15:39:40 +0200, Guillem Jover <[email protected]> a écrit : > Hi! > > On Fri, 2015-05-22 at 13:53:47 +0200, Laurent Bigonville wrote: > > Le Thu, 21 May 2015 21:55:39 +0200, Laurent Bigonville a écrit : > > > Le Thu, 21 May 2015 21:15:50 +0200, Guillem Jover a écrit : > > > > Right, could you try the attached patch to see if it works on a > > > > SE Linux system? > > > > > > The patch is indeed working properly for dpkg-statoverride. > > > > > > I guess a similar patch should be added for dpkg itself. > > > I guess the same kind of bit operation should be done in the > > tarobject() function in the following code? > > > > if (nifd->namenode->statoverride) > > st = nifd->namenode->statoverride; > > else > > st = &ti->stat; > > Right, here's an updated version. I've checked the libselinux code and > I think I'll also remove the check for an empty mode & S_IFMT, because > the file lookup function (libselinux/src/label_file.c:lookup) seems to > cope fine in that case too. And it is probably better to succeed, than > to be less specific, or not ending up marking the files at all. > > Thanks, > Guillem -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

