wrt inotify problem

simo idra at samba.org
Tue Apr 10 16:17:58 GMT 2007


On Tue, 2007-04-10 at 18:14 +0200, Volker Lendecke wrote:
> On Tue, Apr 10, 2007 at 12:03:31PM -0400, simo wrote:
> > > Is there a specific errno that this gives?
> > 
> > Yes sorry, as pasted on IRC:
> > <idra> vl, ioctl(28, FIONREAD, [0])                = -1 EACCES
> > (Permission denied)
> 
> Ok, this is really broken. SELinux allows us to set up
> everything necessary for inotify but then when something
> happens gives us an access denied? Very weird. Trying to
> find a fix.

Yes I think this is what happens, I will have a fixed policy tomorrow
hopefully.

> Can you get me a full strace leading up to this error?

This is the loop from one ioctl to the next, I can reproduce a full
session strace if you need it.

stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
time(NULL)                              = 1176220085
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
send(29, "<27>Apr 10 11:48:05 smbd[4071]: "..., 100, MSG_NOSIGNAL) = 100
geteuid32()                             = 16777221
write(15, "[2007/04/10 11:48:05, 0] smbd/no"..., 68) = 68
time(NULL)                              = 1176220085
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
send(29, "<27>Apr 10 11:48:05 smbd[4071]: "..., 58, MSG_NOSIGNAL) = 58
geteuid32()                             = 16777221
write(15, "  No data on inotify fd?!\n", 26) = 26
gettimeofday({1176220085, 153495}, NULL) = 0
select(29, [5 23 28], [], NULL, {60, 0}) = 2 (in [23 28], left {60, 0})
ioctl(28, FIONREAD, [0])                = -1 EACCES (Permission denied)

-- 
Simo Sorce
Samba Team GPL Compliance Officer
email: idra at samba.org
http://samba.org



More information about the samba-technical mailing list