Skip to content
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

Possible missing rule for ssh -> java #628

Closed
io7m opened this issue Jul 27, 2023 · 2 comments
Closed

Possible missing rule for ssh -> java #628

io7m opened this issue Jul 27, 2023 · 2 comments
Labels
stale Issue/PR has not had any recent activity.

Comments

@io7m
Copy link

io7m commented Jul 27, 2023

Hello!

Apologies if this is not a bug. I'm not entirely clear on what constitutes a policy issue and what constitutes something that should just be fixed locally with audit2allow. I'm running on Debian Bookworm 12.1, and the policy version seems to be 2:2.20221101-9 according to dpkg.

If I have a confined user user_u logged in via SSH, they're unable to execute /usr/bin/java. The specific audit message is:

type=AVC msg=audit(1690449095.045:5358): avc:  denied  { use } for  pid=37681 comm="java" path="/dev/pts/2" dev="devpts" ino=5 scontext=user_u:user_r:java_t:s0 tcontext=system_u:system_r:sshd_t:s0 tclass=fd permissive=0

The suggested audit2allow rule is:

#============= java_t ==============
# src="java_t" tgt="sshd_t" class="fd", perms="use"
# comm="java" exe="" path=""
allow java_t sshd_t:fd use;

The use case here is a Jenkins agent; the Jenkins server logs into a machine over SSH and executes a Java agent that's then used to accept commands from the server to check out and build code.

@github-actions
Copy link

This issue has not had any recent activity. It will be closed in 7 days if it makes no further progress.

@github-actions github-actions bot added the stale Issue/PR has not had any recent activity. label Sep 26, 2023
@github-actions
Copy link

github-actions bot commented Oct 3, 2023

Closing stale PR.

@github-actions github-actions bot closed this as completed Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Issue/PR has not had any recent activity.
Projects
None yet
Development

No branches or pull requests

1 participant