[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Could svn check permissions?

From: Marc Singer <elf_at_buici.com>
Date: 2003-09-04 20:47:13 CEST

I was thinking of a function along the lines of this. The identifiers
are made to explain the idea.

  {none,r/o,rw} <= AccessToDBDirectory (user-handle, repository-path)

The routine would cull the user's identity and match it against the
directory/file permissions in the repository. The easiest check would
be for all files and directories. The downside of that approach is
that any file, even one not associated with the DB, that is r/o would
block all write access.

I believe it is reasonable to determine an optimal set of files and
directories that must have r/w access for the user to be able to write
the database.

On Thu, Sep 04, 2003 at 08:35:34PM +0200, e.huelsmann@gmx.net wrote:
> I actually tried starting this, but I don't know where I should stick the
> code...
>
> I figured that a good place to start would be to look where the database
> context is created. Only: which files to check the permissions of?
>
> bye,

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Sep 4 20:48:01 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.