[cvsnt] no ouput from cvs lsacl in 2.0.58d on linux

Mike Wake mike.wake at thales-tts.com
Tue Nov 16 11:45:38 GMT 2004


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


I figured that this log did not contain enough info about whats going on 
  and hunting around the code I found the AllowTrace keyword and set 
that =1 in my /etc/cvsnt/Pserver file.
ie AllowTrace=1

So the log is now much more informative about what is going on server 
side. But there is still no output from cvs lsacl


Here is some more info

I removed the existing /home/cvsuser/CVSREPOS/Blah/CVSROOT/CVS/fileattr.xml
and typed
cvs chacl -u mwake -a read,write,create,tag,control

and the following was created.

<?xml version="1.0" encoding="UTF-8"?>
<fileattr>
   <directory>
     <acl user="mwake">
       <control />
       <create />
       <read />
       <tag />
       <write />
     </acl>
   </directory>
</fileattr>

Here is the server side result of "cvs -t -t -t lsacl loginfo"

S -> server_main started
S -> ParseInfo(/home/cvsuser/CVSREPOS/Blah/CVSROOT/precommand, /Blah, ALL)
S -> Name_Repository(.,.)
S -> Name_Repository((null),)
S -> open_directory(/home/cvsuser/CVSREPOS/Blah/CVSROOT,(null),(null))
S -> RCS_parse(.directory_history,/home/cvsuser/CVSREPOS/Blah/CVSROOT)
S -> rcsbuf_open(/home/cvsuser/CVSREPOS/Blah/CVSROOT/.directory_history,v,0)
S -> rcsbuf_open failed
S -> 
rcsbuf_open(/home/cvsuser/CVSREPOS/Blah/CVSROOT/Attic/.directory_history,v,0)
S -> rcsbuf_open failed
S -> No mapping file in this directory.
S -> Name_Repository((null),)
S -> map_repository(/home/cvsuser/CVSREPOS/Blah/CVSROOT)
S -> Loading modules2 from /home/cvsuser/CVSREPOS/Blah/CVSROOT/modules2
S -> lookup_module2(CVSROOT,1)
S -> Repository = /home/cvsuser/CVSREPOS/Blah/CVSROOT
S -> Mapped repository = /home/cvsuser/CVSREPOS/Blah/CVSROOT
S -> verify_access /home/cvsuser/CVSREPOS/Blah/CVSROOT,,(null)
S -> verify_perm(/home/cvsuser/CVSREPOS/Blah/CVSROOT,read,(null),(null))
S -> verify_owner(/home/cvsuser/CVSREPOS/Blah/CVSROOT)
S -> Checking admin file /home/cvsuser/CVSREPOS/Blah/CVSROOT/admin for 
user mwake
S -> add_valid_group(admin)
S -> add_valid_group(Domain Users)
S -> add_valid_group(CVS_Access)
S -> cache_directory_permissions(/home/cvsuser/CVSREPOS/Blah/CVSROOT)
S -> fileattr_read(/home/cvsuser/CVSREPOS/Blah/CVSROOT)
S -> fileattr_read(/home/cvsuser/CVSREPOS/Blah)
S -> user_state = 0, group_state = 0
S -> no match at this level
S -> user_state = 0, group_state = 0
S -> no match at this level
S -> fileattr_startdir(/home/cvsuser/CVSREPOS/Blah/CVSROOT)
S -> map_filename(/home/cvsuser/CVSREPOS/Blah/CVSROOT,loginfo)
S -> map_repository(/home/cvsuser/CVSREPOS/Blah/CVSROOT/loginfo)
S -> lookup_module2(CVSROOT/loginfo,2)
S -> RCS_parse(loginfo,/home/cvsuser/CVSREPOS/Blah/CVSROOT)
S -> rcsbuf_open(/home/cvsuser/CVSREPOS/Blah/CVSROOT/loginfo,v,0)
S -> Seek to position 0
S -> rcsbuf_fill(0x8111094,(nil),(nil),(nil))
S -> verify_access ,/home/cvsuser/CVSREPOS/Blah/CVSROOT,(null)
S -> verify_perm(/home/cvsuser/CVSREPOS/Blah/CVSROOT,read,(null),(null))
S -> verify_owner(/home/cvsuser/CVSREPOS/Blah/CVSROOT)
S -> cache_directory_permissions(/home/cvsuser/CVSREPOS/Blah/CVSROOT)
S -> user_state = 0, group_state = 0
S -> no match at this level
S -> user_state = 0, group_state = 0
S -> no match at this level
S -> fileattr_find(file[@name=F'%s']/acl)
S -> fileattr_read(/home/cvsuser/CVSREPOS/Blah/CVSROOT)
S -> fileattr_write()
S -> fileattr_free()
S -> close_directory()
S -> ParseInfo(/home/cvsuser/CVSREPOS/Blah/CVSROOT/postcommand, CVSROOT, 
ALL)

Mike Wake wrote:
> Hi All,Tony,
> 
> I am testing out the new ACL stuff with v2.0.58d on linux.
> 
> If I checkout something,
> ie  "cvs -d :sspi:me at here:/Blah co CVSROOT"
> 
> that I previously had an ACL setup
> on and type "cvs lsacl ." no output is received.
> 
> ie From Memory the old setup was something like this
> owner: me
>   me: rwc
>   default:n
> 
> There is a new CVS/fileattr.xml in the CVSROOT directory in the 
> Repository that reflects this, in the new xml format.
> ie
> <?xml version="1.0" encoding="UTF-8"?>
> <fileattr>
>   <directory>
>     <acl>
>       <create deny="1" />
>       <read deny="1" />
>       <tag deny="1" />
>       <write deny="1" />
>     </acl>
>     <acl user="me">
>       <create />
>       <read />
>       <tag />
>       <write />
>     </acl>
>     <owner>me</owner>
>   </directory>
> </fileattr>
> 
> 
> If I use WinCVS 1.3.21.1
> Client: Concurrent Versions System (CVSNT) 2.0.51d (client/server)
> Server: Concurrent Versions System (CVSNT) 2.0.58d (client/server)
> 
> I get the same results.
> 
> here is the result of cvs -t -t -t lsacl
>   -> Tracelevel set to 3.  PID is 5528
>   -> Session ID is 15984198f6d3651a
>   -> Loading protocol /usr/local/lib/cvsnt/sspi_protocol
>   -> main loop with CVSROOT=:sspi:me at here:/Blah
>   -> Config file name /home/me/.cvs/cvspass
>   -> Server codepage is ANSI_X3.4-1968
>   -> Client codepage is ISO-8859-1
>   -> Server->Client codepage translation is disabled.  Use -l to enable
>   -> Server version is CVSNT 2.0.58d
>   -> Client version is CVSNT 2.0.58d
>   -> Requesting server cvsignore
>   -> wrap_add(*.gif -kb, 0, 0)
>   -> wrap_add(*.pdf -kb, 0, 0)
>   -> wrap_add(*.bmp -kb, 0, 0)
>   -> wrap_add(*.jpg -kb, 0, 0)
>   -> wrap_add(*.jpeg -kb, 0, 0)
>   -> wrap_add(*.png -kb, 0, 0)
>   -> wrap_add(*.exe -kb, 0, 0)
>   -> wrap_add(*.dll -kb, 0, 0)
>   -> wrap_add(*.so -kb, 0, 0)
>   -> wrap_add(*.a -kb, 0, 0)
>   -> wrap_add(*.pdb -kb, 0, 0)
>   -> wrap_add(*.lib -kb, 0, 0)
>   -> wrap_add(*.o -kb, 0, 0)
>   -> wrap_add(*.res -kb, 0, 0)
>   -> wrap_add(*.class -kb, 0, 0)
>   -> wrap_add(*.ogg -kb, 0, 0)
>   -> wrap_add(*.mp3 -kb, 0, 0)
>   -> Requesting server cvswrappers
>   -> wrap_add(*.gif -k 'B', 0, 1)
>   -> wrap_add(*.pdf -k 'B', 0, 1)
>    -> wrap_add(*.doc -k 'B', 0, 1)
>   -> wrap_add(*.exe -k 'B', 0, 1)
>   -> wrap_add(*.xls -k 'B', 0, 1)
>   -> wrap_add(*.ppt -k 'B', 0, 1)
>   -> Requesting server cvsrc (read-cvsrc2)
>   -> Parsing global cvsrc started
>   -> Parsing global cvsrc finished
>   -> Name_Repository((null),)
>   -> Repository = /Blah/CVSROOT
>   -> Mapped repository = /Blah/CVSROOT
>   -> open_directory(/Blah/CVSROOT,(null),(null))
>   -> Name_Repository(.,.)
>   -> Name_Repository((null),)
>   -> Repository = /Blah/CVSROOT
>   -> Mapped repository = /Blah/CVSROOT
>   -> close_directory()
> 
> 
> Have I missed something in the upgrade/configuration etc?
> 
> Cheers
> Mikew
> 
> 
> _______________________________________________
> cvsnt mailing list
> cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook
> http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt https://www.march-hare.com/cvspro/en.asp#downcvs



More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook