Summary: | resolv.conf created with incorrect label if /etc/resolv.conf is a symlink to /run/resolv.conf | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Dustin C. Hatch <dustin> |
Component: | SELinux | Assignee: | SE Linux Bugs <selinux> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Dustin C. Hatch
2014-01-11 02:42:56 UTC
With SwifT's help, I created the following policy to correct the issue: policy_module(localpolicy, 1.0) gen_require(` type dhcpc_t; type var_run_t; type net_conf_t; ') filetrans_pattern(dhcpc_t, var_run_t, net_conf_t, file, "resolv.conf"); filetrans_pattern(dhcpc_t, var_run_t, net_conf_t, file, "ntp.conf"); Since most people don't have the /etc/resolv.conf -> /run/resolv.conf symlink, we deemed it not necessary to add to Gentoo's default policy. Leaving it here, though, for future reference. |