<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">On Sun, Apr 29, 2018, 3:32 PM Christian Mauderer <<a href="mailto:list@c-mauderer.de">list@c-mauderer.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am 28.04.2018 um 21:45 schrieb Gedare Bloom:<br>
> On Thu, Apr 26, 2018 at 7:52 PM, Joel Sherrill <<a href="mailto:joel@rtems.org" target="_blank" rel="noreferrer">joel@rtems.org</a>> wrote:<br>
>> Hi<br>
>><br>
>> Teaching the class this week, i have noticed that randomly some<br>
>> files are executable. I was going to change this but then realized<br>
>> that we should all agree on what the permissions on the files and<br>
>> directories in the tree(s) should be.<br>
>><br>
>> I lean to either:<br>
>><br>
>> + 664 for files and 775 for directories<br>
>><br>
>> But could be talked into tighter permissions for group and world.<br>
>> Whatever we do, it should be consistent and added to the Coding<br>
>> Conventions.<br>
>><br>
> <br>
> Your proposal is sensible to me.<br>
<br>
Hello Joel,<br>
<br>
I wouldn't really have a problem with these. But I think the more usual<br>
ones would be 644 and 755.<br>
<br>
If I create a new file using `touch somefile` in a directory with 775, I<br>
still get a 644 file (at least on my Linux machine - I'm not sure<br>
whether it is configuration dependant). I think that we will get a lot<br>
of patches with "wrong" permissions if we use 664 and 775. So maybe it<br>
would be good to have some reasons for using these wider group permissions.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">The command you are thinking of is umask to set your default file permissions. </div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
The only setup that I could think of where such rights might could be<br>
useful is one where one user updates the code while some other user (for<br>
example a build bot) has to run a bootstrap to build the tree. But I'm<br>
quite sure that even for that case, there are some better solutions<br>
(e.g. one working tree that only pushes to a build bot tree).<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">If all commits go through a git or patch tester server, i would assume that we are getting the permissions set by the patch submitter.</div><div dir="auto"><br></div><div dir="auto">I suspect (no investigation) that we could have a git check that ensures specific permissions based on the file extension.</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Any special reasons, use cases or experiences where the 664 and 775<br>
would be superior to 644 and 755?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">No. I just remember historically using those on real multi-user devel machines so everyone on a team could share source.</div><div dir="auto"><br></div><div dir="auto">I think we all agree it should be standardized. That's a good step.</div><div dir="auto"><br></div><div dir="auto">I will look at git, GNU recommendations and a few packages to see what they do. Then make a proposal which might include ways to try to keep this standardized.</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Best regards<br>
<br>
Christian Mauderer<br>
<br>
> <br>
>> Thoughts<br>
>><br>
>> _______________________________________________<br>
>> devel mailing list<br>
>> <a href="mailto:devel@rtems.org" target="_blank" rel="noreferrer">devel@rtems.org</a><br>
>> <a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
> _______________________________________________<br>
> devel mailing list<br>
> <a href="mailto:devel@rtems.org" target="_blank" rel="noreferrer">devel@rtems.org</a><br>
> <a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
> <br>
</blockquote></div></div></div>