bug-findutils
[Top][All Lists]
Advanced

[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

Attachment: strace-debian
Description: Text document

Attachment: strace-fedora
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]