[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/2] find: add SELinux support
From: |
Kamil Dudka |
Subject: |
Re: [PATCH 1/2] find: add SELinux support |
Date: |
Tue, 14 Jul 2009 14:02:36 +0200 |
User-agent: |
KMail/1.11.4 (Linux/2.6.29.5-191.fc11.x86_64; KDE/4.2.4; x86_64; ; ) |
Hello,
On Mon July 13 2009 17:48:15 Kamil Dudka wrote:
> As time permits I will keep on trying to zero in this.
attached are strace outputs from Fedora and Debian. I can see one suspicious
place in that - this is the first main difference between Fedora and Debian:
Fedora strace:
open("m4", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 5
fcntl(5, F_GETFD) = 0x1 (flags FD_CLOEXEC)
fchdir(5) = 0
getdents(5, /* 14 entries */, 32768) = 456
getdents(5, /* 0 entries */, 32768) = 0
close(5) = 0
Debian strace:
open("m4", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 5
fcntl(5, F_GETFD) = 0x1 (flags FD_CLOEXEC)
fchdir(5) = 0
getdents(5, /* 14 entries */, 32768) = 456
getdents(5, /* 0 entries */, 32768) = 0
close(5) = 0
In other words on Debian find does not change the working directory before
calling lgetxattr syscall. That's why lgetxattr does not see the file and
returns ENOENT (No such file or directory).
Does anybody here guess what's going on? (before I investigate it further)
Kamil
strace-debian
Description: Text document
strace-fedora
Description: Text document
- [PATCH 1/2] find: add SELinux support, James Youngman, 2009/07/11
- [PATCH 2/2] Bugfixes to the handling of %Z in the Red Hat SELinux patch., James Youngman, 2009/07/11
- Re: [PATCH 1/2] find: add SELinux support, Kamil Dudka, 2009/07/11
- Message not available
- Re: [PATCH 1/2] find: add SELinux support, Kamil Dudka, 2009/07/13
- Re: [PATCH 1/2] find: add SELinux support,
Kamil Dudka <=
- Re: [PATCH 1/2] find: add SELinux support, Kamil Dudka, 2009/07/14
- Re: [PATCH 1/2] find: add SELinux support, Eric Blake, 2009/07/14
- Re: [PATCH 1/2] find: add SELinux support, Kamil Dudka, 2009/07/20
- Re: [PATCH 1/2] find: add SELinux support, Kamil Dudka, 2009/07/20
- Re: [PATCH 1/2] find: add SELinux support, Jim Meyering, 2009/07/30