Bug 308981
Summary: | openvpn-status.log can't be made writable. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tomasz Torcz <tomek> |
Component: | selinux-policy | Assignee: | Daniel Walsh <dwalsh> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 7 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 48 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-11-06 16:41:19 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Tomasz Torcz
2007-09-27 13:36:07 UTC
Strange in rawhide these log files are being written to /var/log/openvpn/* Which is labeled openvn_log_t which the domain can write to. If you change the context of the log file to openvpn_log_t, it should work. # semanage fcontext -a -t openvpn_log_t /var/log/openvpn-status.log # restorecon /var/log/openvpn-status.log Is this a standard openvpn package from fedora? I will add context for this in selinux-policy-2.6.4-48.fc7 # LC_ALL=C semanage fcontext -a -t openvpn_log_t /var/log/openvpn-status.log libsepol.context_from_record: type openvpn_log_t is not defined libsepol.context_from_record: could not create context structure libsemanage.validate_handler: invalid context system_u:object_r:openvpn_log_t:s0 specified for /var/log/openvpn-status.log [all files] libsemanage.dbase_llist_iterate: could not iterate over records /usr/sbin/semanage: Could not add file context for /var/log/openvpn-status.log # rpm -q openvpn openvpn-2.1-0.19.rc4.fc7 # rpm -q selinux-policy selinux-policy-2.6.4-48.fc7 Sorry my mistake. Should have been openvpn_var_log_t # semanage fcontext -a -t openvpn_var_log_t /var/log/openvpn-status.log # restorecon /var/log/openvpn-status.log It works now. No emails from sealertd since yesterday. Thank you. |