Skip to content

Clear execbits on internally used perl scripts - #6516

Closed
bernd-edlinger wants to merge 1 commit into
openssl:OpenSSL_1_1_1-stablefrom
bernd-edlinger:clear_execbits_on_internally_used_perl_scripts
Closed

bernd-edlinger wants to merge 1 commit into
openssl:OpenSSL_1_1_1-stablefrom
bernd-edlinger:clear_execbits_on_internally_used_perl_scripts

Conversation

@bernd-edlinger

Copy link
Copy Markdown
Member

No description provided.

@bernd-edlinger bernd-edlinger added branch: master Applies to master branch branch: 1.1.1 Applies to OpenSSL_1_1_1-stable branch (EOL) labels Jun 18, 2018
@levitte

levitte commented Jun 19, 2018

Copy link
Copy Markdown
Member

Mind telling us why?

@bernd-edlinger

Copy link
Copy Markdown
Member Author

Just for consistency. Most scripts don't have the exec bit set.

@dot-asm

dot-asm commented Jun 19, 2018

Copy link
Copy Markdown
Contributor

Just in case for reference, these are not all executable internal scripts. Also for reference, the reason for why some perlasm scripts are executable some are not is incidental. When developing I customarily execute them manually, since they are not in Makefile yet. Initially I also pipe output to corresponding *-xlate. Yes, one can say that one can as well invoke perl manually and pass script name as argument. Programming is exercise in concentration, assembly programming is several times that, and then question would be if there is actual need to test it, concentration, with "one-can-do-this-instead"? In the essence it means that I for one can't guarantee that next script won't be presented for review as non-executable, or that any of *-xlate won't change mode in the process. In other words if that kind of consistency is desired, then please watch for access bits in future requests.

@bernd-edlinger

Copy link
Copy Markdown
Member Author

Well, it is nothing important. I just thought, sometimes if something is executable it might
be accidentally executed, just by accidentally forgetting typing "vi" for instance..
It may be quite possible that these scripts do no harm even if executed.

@dot-asm

dot-asm commented Jun 19, 2018

Copy link
Copy Markdown
Contributor

Just in case it wasn't clear, it's not like I object, I'm only saying that if this kind of thing is desired, then I for one would need help with it later on. As for what the perlasm scripts do, with no arguments they either print things on standard output or fail with "nonsense at line X" message.

@mattcaswell mattcaswell added this to the Assessed milestone Jul 13, 2018
@bernd-edlinger
bernd-edlinger force-pushed the clear_execbits_on_internally_used_perl_scripts branch from b87fd68 to 8d6b9db Compare May 16, 2020 09:55
@bernd-edlinger
bernd-edlinger changed the base branch from master to OpenSSL_1_1_1-stable May 16, 2020 12:01
@bernd-edlinger bernd-edlinger removed the branch: master Applies to master branch label May 16, 2020
@levitte

levitte commented May 22, 2020

Copy link
Copy Markdown
Member

I'm not sure I see this as useful... you could as well go the other way and set the exec bit on all perl scripts where this makes sense (it does not make sense on modules - i.e. .pm files - or on perl scripts that we know are only used via perl's require and similar).

I'll let someone else judge...

@bernd-edlinger

Copy link
Copy Markdown
Member Author

I do just not like to invoke scripts by accident.
So it is just useful for my own security.

@t8m t8m removed this from the Assessed milestone May 18, 2021
@t8m t8m added the triaged: refactor The issue/pr requests/implements refactoring label May 18, 2021
@t8m

t8m commented May 18, 2021

Copy link
Copy Markdown
Member

Unless it is actually dangerous to invoke these scripts by accident, and I do not think it is, I think this should be closed as this is not a real bug fix.

Some cleanup of the exec bits of .pl scripts that are not supposed to be executed directly on master branch might be acceptable.

@t8m t8m added triaged: cleanup The issue/pr deals with cleanup of comments/docs not altering code significantly and removed triaged: refactor The issue/pr requests/implements refactoring labels Jul 23, 2021
@t8m t8m closed this Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

branch: 1.1.1 Applies to OpenSSL_1_1_1-stable branch (EOL) triaged: cleanup The issue/pr deals with cleanup of comments/docs not altering code significantly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants