Skip to content

Make log directory writeable #49

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

michaelweiser
Copy link

The log directory being read-only requires stunnel to have
CAP_DAC_OVERRIDE which in times of systemd is not necessarily the case
even when running as root. Typical errors are:

stunnel[1234]: Cannot open log file: /var/log/stunnel/service.log

The audit framework reports in such a case:

type=AVC ... avc: denied { dac_override } for pid=1234 comm="stunnel"
capability=1 ... tclass=capability

Making the directory writeable for owner root solves the problem.

The log directory being read-only requires stunnel to have
CAP_DAC_OVERRIDE which in times of systemd is not necessarily the case
even when running as root. Typical errors are:

stunnel[1234]: Cannot open log file: /var/log/stunnel/service.log

The audit framework reports in such a case:

type=AVC ... avc: denied { dac_override } for pid=1234 comm="stunnel"
capability=1 ... tclass=capability

Making the directory writeable for owner root solves the problem.
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.

1 participant