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

fix: permissions on /var/log/amazon directory #162

Merged
merged 1 commit into from
Feb 20, 2024
Merged

Conversation

ddneilson
Copy link
Contributor

What was the problem/requirement? (What/Why)

It's been reported that when the worker-agent installer, running as root, creates /var/log/amazon/deadline that the agent was unable to write its own logs to that directory when running as a non-root user.

What was the solution? (How)

Add go+rx to /var/log/amazon -- this is the solution reported to work by the reporting customer.

What is the impact of this change?

The installer should be closer to working as-is without hacks.

How was this change tested?

It's a straightforward application of the solution found by the customer. We don't currently have direct tests for the installer, unfortunately.

Was this change documented?

N/A

Is this a breaking change?

No

@ddneilson ddneilson requested a review from a team as a code owner February 16, 2024 20:45
Problem:
It's been reported that when the worker-agent installer, running as
root, creates `/var/log/amazon/deadline` that the agent was unable
to write its own logs to that directory when running as a non-root
user.

Solution:
Add go+rx to `/var/log/amazon` -- this is the solution reported to work
by the reporting customer.

Signed-off-by: Daniel Neilson <53624638+ddneilson@users.noreply.github.com>
@ddneilson ddneilson merged commit 1acfffc into mainline Feb 20, 2024
9 checks passed
@ddneilson ddneilson deleted the ddneilson/21264 branch February 20, 2024 17:35
gmchale79 pushed a commit that referenced this pull request Mar 11, 2024
Problem:
It's been reported that when the worker-agent installer, running as
root, creates `/var/log/amazon/deadline` that the agent was unable
to write its own logs to that directory when running as a non-root
user.

Solution:
Add go+rx to `/var/log/amazon` -- this is the solution reported to work
by the reporting customer.

Signed-off-by: Daniel Neilson <53624638+ddneilson@users.noreply.github.com>
Signed-off-by: Graeme McHale <gmchale@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants