bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to solve file lock problem with /etc/sudoers


From: Samuel Thibault
Subject: Re: Trying to solve file lock problem with /etc/sudoers
Date: Wed, 12 Mar 2014 01:00:49 +0100
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

Hello,

Peter Baumgarten, le Tue 11 Mar 2014 16:04:04 -0500, a écrit :
> I looked through the
> bugzilla list and did not know which bug I should tackle, but I was
> annoyed that I could not shutdown as a normal user because of the visudo
> problem, so I thought why not tackle that bug?

That's exactly the way I recommend: tackle a bug you actually care for
:)

Concerning that precise bug, I believe it should be quite easy:
debian/patches/use-flock-on-hurd.diff is really supposed to make
./configure switch to flock instead of the known-not-to-work lockf,
and that doesn't seem to be having effect: the buildd log shows that
./configure still believes lockf is available. You should check what
happens in the configure script, and fix the use-flock-on-hurd.diff
patch accordingly.  The second part would be fixing lockf in glibc
in the simple case used by sudo, which is locking the whole file.
It should be a matter of calling some lseek() inside fcntl() in
glibc/sysdeps/mach/hurd/fcntl.c and check whether it happens to be 0,
instead of just returning errno=ENOTSUP in the SEEK_CUR case.

Samuel



reply via email to

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