[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:09:22 +0200 |
User-agent: |
KMail/1.11.4 (Linux/2.6.29.5-191.fc11.x86_64; KDE/4.2.4; x86_64; ; ) |
On Tue July 14 2009 14:02:36 Kamil Dudka wrote:
> 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:
Oops, once again:
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:
openat(AT_FDCWD, "m4", O_RDONLY) = 4
fstat(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fcntl(4, F_GETFL) = 0x8000 (flags O_RDONLY|
O_LARGEFILE)
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
fcntl(4, F_DUPFD, 3) = 5
getdents(4, /* 14 entries */, 4096) = 456
getdents(4, /* 0 entries */, 4096) = 0
close(4) = 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
- [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, 2009/07/14
- Re: [PATCH 1/2] find: add SELinux support,
Kamil Dudka <=
- 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