-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Packaging questions #159
Comments
I assume you mean the interactive mode/shell of Bash by "the interactive mode". (It should be noted that there is also "the interactive mode of
As far as I can tell, Maybe we can have an explicit check for the interactive shell at the beginning of
I personally don't think it is a good idea to put the loader in Honestly, the The script
Such a check should always be performed. In addition, the check for the Bash version is needed because |
Thank you for the detailed rundown. It will help a lot for the reviewers.
That would be fantastic. Indeed I thought that this had two modes for interactive and non-interactive (and indeed "interactive mode/shell of Bash"). I would probably have went with a random approach reading the stackexchange, but if you know of good POSIX ways to do such a check, or if it can be incorporate inside the script without patching, that would help a lot.
Indeed it's a double-edged sword. We will try to make it as secure as possible and I am pinging some more experienced people for advice as well. I think one good reference is I think that some configuration should be done at installation, because we want to provide a good out-of-the-box experience for people installing
Yes, but not all packages are upstreamed to RHEL. Particularly these ones I think will only live in EPEL.
Great suggestion. There is indeed precedence for that with
For that we have tools, e.g. we can put
Indeed, we were considering 2 aspects, the Again, thank you so much for your comments, it helps a lot 🙂 |
A commonly used way compatible with POSIX is
#160, (though I'm not sure if it would be merged. The
Could you also take care of Atuin's |
Thanks 🙏. I can ask whoever picks up the package for review to also chime in on the PR and at least give some feedback then. @juhp gave me great comments on the Fedora-devel, but not sure how free they are.
On the packaging side? Sure, I can cook something up. But maybe also worth figuring out a convention upstream, e.g. similar checks for root and overrides. |
Hi, I am trying to package this project for Fedora. Besides the issue of cutting a release (#157), I have a more general question about the scope of this project.
Is it ok to say that
bash-preexec.sh
is designed to be able to run outside of the interactive mode as well? I am asking because for the Fedora packaging I want to add this to the/etc/profile.d
, but for security concerns I want to gate it to only be sourced if it's in an interactive environment. If necessary this gating could be disabled by overwriting the file that tests for interactive mode in/etc/profile.d
, but that would be an explicit command requiringsudo
. What do you think about this approach?@akinomyoga is it ok to ask for your opinion as well?
The text was updated successfully, but these errors were encountered: