Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
I am getting following AVC's:
type=AVC msg=audit(1363303699.629:5): avc: denied { read write } for pid=1394 comm="openvpn" name="ip_persist.dat" dev=dm-5 ino=146 scontext=system_u:system_r:openvpn_t:s0 tcontext=unconfined_u:object_r:var_lib_t:s0 tclass=file
Several points about this:
- yes, directory /var/lib/openvpn is not standard openvpn distrp package directory (is not included within openvpn rpm)
- but this directory makes only sense for me for storing data to which openvpn daemon should be able to both read and write.
In current situation there is no directory suited for storing permanent varied data - i.e. persistent IP pools for OpenVPN clients (openvpn parameter "ifconfig-pool-persist"), user-specific configurations (openvpn parameter "client-config-dir"). Same situation can be aplied once you want to run openvpn in chrooted environment (openvpn parameter "chroot") - it should be pointed to directory with all necessary variable content (IP pools,...). Directory /var/run/openvpn is just not good point for those purposes.
Version-Release number of selected component (if applicable):
openvpn-2.2.2-1.el6.x86_64
selinux-policy-targeted-3.7.19-195.el6_4.3.noarch
Additional notes:
- this bug can be treaded as continuing from Bug #469284.
- look on comment #4: https://bugzilla.redhat.com/show_bug.cgi?id=469284#c4 from David - here is exact recommendation to which I wanted to focus here. We are missing openvpn directory for permanent OpenVPN data.
thanks
It looks more as openvpn bug for now. We have the following labeling
/etc/openvpn(/.*)? gen_context(system_u:object_r:openvpn_etc_t,s0)
/etc/openvpn/ipp.txt -- gen_context(system_u:object_r:openvpn_etc_rw_t,s0)
/etc/rc\.d/init\.d/openvpn -- gen_context(system_u:object_r:openvpn_initrc_exec_t,s0)
/usr/sbin/openvpn -- gen_context(system_u:object_r:openvpn_exec_t,s0)
/var/log/openvpn.* gen_context(system_u:object_r:openvpn_var_log_t,s0)
/var/run/openvpn(/.*)? gen_context(system_u:object_r:openvpn_var_run_t,s0)
So if a new dir is needed then it needs to be added to RPM payload and we will need to add labeling.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
http://rhn.redhat.com/errata/RHBA-2013-1598.html
Description of problem: I am getting following AVC's: type=AVC msg=audit(1363303699.629:5): avc: denied { read write } for pid=1394 comm="openvpn" name="ip_persist.dat" dev=dm-5 ino=146 scontext=system_u:system_r:openvpn_t:s0 tcontext=unconfined_u:object_r:var_lib_t:s0 tclass=file Several points about this: - yes, directory /var/lib/openvpn is not standard openvpn distrp package directory (is not included within openvpn rpm) - but this directory makes only sense for me for storing data to which openvpn daemon should be able to both read and write. In current situation there is no directory suited for storing permanent varied data - i.e. persistent IP pools for OpenVPN clients (openvpn parameter "ifconfig-pool-persist"), user-specific configurations (openvpn parameter "client-config-dir"). Same situation can be aplied once you want to run openvpn in chrooted environment (openvpn parameter "chroot") - it should be pointed to directory with all necessary variable content (IP pools,...). Directory /var/run/openvpn is just not good point for those purposes. Version-Release number of selected component (if applicable): openvpn-2.2.2-1.el6.x86_64 selinux-policy-targeted-3.7.19-195.el6_4.3.noarch Additional notes: - this bug can be treaded as continuing from Bug #469284. - look on comment #4: https://bugzilla.redhat.com/show_bug.cgi?id=469284#c4 from David - here is exact recommendation to which I wanted to focus here. We are missing openvpn directory for permanent OpenVPN data. thanks