From: Michael Tremer <michael.tremer@ipfire.org>
To: Adolf Belka <adolf.belka@ipfire.org>
Cc: "IPFire: Development-List" <development@lists.ipfire.org>
Subject: Re: cgi-bin files being executable in patch submissions
Date: Mon, 10 Mar 2025 11:33:10 +0000 [thread overview]
Message-ID: <215E0605-7524-4279-A7D1-109B844DFFD0@ipfire.org> (raw)
In-Reply-To: <37382d96-90ea-42b5-8249-ce43c92e0a39@ipfire.org>
Hello,
I suppose they have been executable for a long time. Usually that happens when copying them around on an actual test system because there, the scripts will all be executable.
It should not hurt us too much, but I wanted to avoid that anyone accidentally executes the scripts on their build system.
-Michael
> On 10 Mar 2025, at 11:28, Adolf Belka <adolf.belka@ipfire.org> wrote:
>
> Hi All,
>
> I noticed the following patch in the IPFire git repo
>
> https://git.ipfire.org/?p=ipfire-2.x.git;a=commit;h=fe32e52d27943909e8de96c1e525f8049179dc2f
>
> To remove the executable bits from a couple of cgi files.
>
> I looked in my git repo and those are shown as executable but I also noted that vpnmain.cgi is also with 755 instead of 644 in my directory
>
> I know I was just working on vpnmain so I am not sure if this has been occurring because I go and do some editing on a file and after testing it out on a machine in my testbed I copy the edited file to the cgi-bin directory to do the commit and patch submission.
>
> I use the same editor for doing all changes to the lfs files and all of those are 644 so it is not clear that it is something I am doing but I may have had some accident at some time with permissions without realising.
>
> I was just wondering if it was worth having a check in the build program, or a special tools program, that would check that the permissions are correct for files in certain directories and correct them if not. That way we should make sure any accidents don't get propagated through.
>
>
> Regards,
>
> Adolf.
>
>
prev parent reply other threads:[~2025-03-10 11:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-10 11:28 Adolf Belka
2025-03-10 11:32 ` Adolf Belka
2025-03-10 11:33 ` Michael Tremer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=215E0605-7524-4279-A7D1-109B844DFFD0@ipfire.org \
--to=michael.tremer@ipfire.org \
--cc=adolf.belka@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox