-
-
Notifications
You must be signed in to change notification settings - Fork 183
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
Correct installation method #67
Comments
Yes, unfortunately there is no way to install the project locally in a clean manner at this time (I inherited maintenance from the original author, and I'm still working on it). This is being tracked in issue #46 (which may be dependent on #47). I'll be fixing these as soon as I can.
They should be in a folder named "policies" relative to where ssh-audit.py is. In other words, if you have /folder1/folder2/ssh-audit.py, then they should be in /folder1/folder2/policies/. Once issue #46 is closed, there will probably be a better solution.
Not for installation. That's used only for testing.
Nope. Only ssh-audit.py and the contents of the policies/ directory are needed.
This would require that the policies folder be in /usr/bin/policies/. Personally, I wouldn't be a fan of that. Instead, perhaps add a temporary Bash alias until #46 is resolved? This would work in the short term: |
@jtesta - Thanks, Joe. I'll just package to EDIT: a wrapper is more generic than an alias, credit to reprograph, see: https://aur.archlinux.org/packages/ssh-audit/#comment-768022 |
In Alpine Linux I patched the code so the policy configurations reside in |
@mpolanski - Send a PR to @jtesta |
@mpolanski @graysky I'm actually considering getting rid of the built-in
policy files entirely in favor of including the data in a Python struct.
This would make life easier for package maintainers (of which I am one
too: for PyPI, Snap, and Windows). And re-organizing the project (#46 &
#47) would fix the rest of the issues we all have. I hope to have that
done within the next month.
…On 9/30/20 2:29 PM, graysky wrote:
@mpolanski <https://github.com/mpolanski> - Send a PR to @jtesta
<https://github.com/jtesta>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#67 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAWYA6YYEZI3APNBNEGHEDTSIN2JHANCNFSM4R5PLMMA>.
--
Joseph S. Testa II
Founder & Principal Security Consultant
Positron Security
|
@graysky2 My patch would break using policy files when ssh-audit is not system-wide installed, so I only patched it for Alpine. |
What is the correct method to package this without using
pip3
?Manual installation? Where should policies go? Is
tox.ini
needed? Other files needed? Down the road, aMakefile
would be nice or a setup script of some kind.The text was updated successfully, but these errors were encountered: