[26266] in Athena Bugs

home help back first fref pref prev next nref lref last post

Re: linux [9.3.16]: athlsync

daemon@ATHENA.MIT.EDU (Jonathon Weiss)
Tue Dec 28 17:09:54 2004

Message-Id: <200412282209.iBSM9Bgq013437@the-other-woman.mit.edu>
From: Jonathon Weiss <jweiss@mit.edu>
To: Greg Hudson <ghudson@mit.edu>
In-reply-to: Your message of "Tue, 28 Dec 2004 12:34:33 EST."
             <1104255272.15714.108.camel@egyptian-gods.mit.edu> 
Date: Tue, 28 Dec 2004 17:09:11 -0500
cc: Jonathon Weiss <jweiss@mit.edu>
cc: bugs@mit.edu
Errors-To: bugs-bounces@mit.edu

> On Mon, 2004-12-27 at 17:51, Jonathon Weiss wrote:
> > 	athlsync carefully corrects for cases where someone accidently
> > 	leaves offf the r or x permissions for group or other users,
> > 	because they don't matter in AFS.  However, it does not strip
> > 	the write bit if it is accidently left on for group/other users.
> 
> Hm.  It certainly tries to:
> 
>         static mode_t adjust_mode(mode_t mode)
>         {
>           mode_t rmask = S_IRGRP | S_IROTH;
>           mode_t xmask = (mode & S_IXUSR) ? (S_IXGRP | S_IXOTH) : 0;
>           mode_t wmask = ~(S_IWGRP | S_IWOTH);
>         
>           return (mode | rmask | xmask) & wmask;
>         }
> 
> What locker did you notice the problem with, so that I don't have to
> create a locker for testing purposes?
> 

Hmmm, looks like the problem only exists for the top level directory,
so perhaps I mis-diagnosed the problem.

the-other-woman:/var/athena/local: find . -type l -prune -o -perm -020 -ls -o -perm -002 -ls
909466    1 drwxrwxrwx   6 root     root          512 Dec  4 03:30 ./ooffice_v1.1.2
909151    1 drwxrwxrwx   4 root     root          512 Dec 28 03:31 ./acro_v5.0.10

	Jonathon


home help back first fref pref prev next nref lref last post