bug-hurd
[Top][All Lists]
Advanced

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

Re: [PATCH] New function (libfshelp) fshelp_cancontrol


From: Neal H Walfield
Subject: Re: [PATCH] New function (libfshelp) fshelp_cancontrol
Date: Fri, 20 Apr 2001 20:04:29 +0200
User-agent: Mutt/1.3.15i

> e.g. diskfs_S_file_chown would look like this:
> 
>      err = fshelp_isroot (&diskfs_underlying_stat, cred->user);
>      if (!err)
>      {
>        err = fshelp_isowner (&np->dn_stat, cred->user);
>        if (!err
>          && ((uid != (uid_t) -1
>               && !idvec_contains (cred->user->uids, uid))
>              || (gid != (gid_t) -1
>                  && !idvec_contains (cred->user->gids, gid))))
>        err = EPERM;
>      }
>      if (!err)
>         ... do it ...

It has occured to me: should suid binaries on a user mounted file system
be run as the owner of the filesystem?

Attachment: pgpMsr0De7j_8.pgp
Description: PGP signature


reply via email to

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