On Mon, Feb 19, 2007 at 04:58:24PM -0500, Ben Asselstine wrote:
> Hello,
> 
> I ran across this behaviour recently.  It works if I do the same as
> the root user.  Is anyone else having this problem?
> 
> v+
> [EMAIL PROTECTED]:/tmp/bing$ settrans -ac yoyo /hurd/hello --contents="yoyo"
> [EMAIL PROTECTED]:/tmp/bing$ cat yoyo
> [EMAIL PROTECTED]:/tmp/bing$ fsysopts yoyo --contents="yaya"
> fsysopts: yoyo: Operation not permitted

I had this problem when working on the BPF translator, and was wanting to
look deeper before reporting, then I forgot :-(.

The faulty code is in hurd/libtrivfs/file-getcontrol.c :

kern_return_t
trivfs_S_file_getcontrol (struct trivfs_protid *cred,
...
{
...
  if (!cred->isroot)
    return EPERM;
...
}

If you check the source of fsysopts, you'll notice a call to
file_getcontrol(), which is probably what fails.

-- 
Richard Braun

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Bug-hurd mailing list
Bug-hurd@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-hurd

Reply via email to