[Top][All Lists]

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

Re: libtrivfs broken?

From: Richard Braun
Subject: Re: libtrivfs broken?
Date: Mon, 19 Feb 2007 23:13:05 +0100
User-agent: Mutt/1.5.9i

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+
> bing@clubber:/tmp/bing$ settrans -ac yoyo /hurd/hello --contents="yoyo"
> bing@clubber:/tmp/bing$ cat yoyo
> yoyobing@clubber:/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 :

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

reply via email to

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